[jQuery] Re: Can I use jQuery to superimpose one image over part of another?

2008-03-05 Thread [EMAIL PROTECTED]
That was easy! Thanks, - Dave On Mar 4, 8:35 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote: > Ah, I get it. yeah. you want to add the image via jQuery? Well, keep   > the css, but now do this: > > $(document).ready(function() { >    $('').appendTo('#imageDisplay'); > > }); > > --Karl > ___

[jQuery] Re: Can I use jQuery to superimpose one image over part of another?

2008-03-04 Thread Karl Swedberg
Ah, I get it. yeah. you want to add the image via jQuery? Well, keep the css, but now do this: $(document).ready(function() { $('').appendTo('#imageDisplay'); }); --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 4, 2008, at 6:59 PM, [EMAIL PROT

[jQuery] Re: Can I use jQuery to superimpose one image over part of another?

2008-03-04 Thread [EMAIL PROTECTED]
Hi Karl, Thanks for the reply but when the page initially loads, there is no "image3" in the DIV so wouldn't I have to add it to the DOM somehow? - Dave On Mar 3, 9:03 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote: > Hi Dave, > > You could easily make this happen with CSS alo

[jQuery] Re: Can I use jQuery to superimpose one image over part of another?

2008-03-03 Thread Karl Swedberg
Hi Dave, You could easily make this happen with CSS alone, or am I missing something? #imageDisplay { position: relative; width: 200px; overflow: hidden; } #image3 { /* give it whatever id you want */ position: absolute; left: 100px; } --Karl _