Reply
Can this be done
Old 05-08-2007, 02:23 PM Can this be done
Novice Talker

Posts: 10
I had originally posted this in the Javascript forum but thought a CSS guru may be able to help.

Basically I have a thumbnail viewer and when a thumbnail is mouseover the larger image appears in a <div id="container></div>.....This is simple enough and works fine.

Now within this <div id="container"></div> the script unloads the enlarged image and loads a new one on mouseover which is where I am having trouble.

I am trying to overlay 1 of 3 transparent images over this container to alter a specific part of the image. Is there anyway I can do this in CSS so that the overlay doesn't unload if a new thumbnail is selected ?

Here is what I have tried.....

CSS CODE
Code:
#container {
        background-image: url('images/image.jpg');
        position: relative;        
        width: 400px;
        height: 363px;
        top: 0;
        left:0;
        z-index; 10; 
          }
#container img.1 {
        position: absolute;
        width: 400px;
        height: 363px;
        top: 0;
        left:0;
        z-index; 11;
}
And <div> tag area

Code:
<div id="container">
<img src="images/transparent.gif" class="1">
</div>
Now this works on the initial image but will not work on a mouseovered image. It also unloads if I have it on the initial image and then mouseover a thumbnail.

Any tips ?

Last edited by atlantic : 05-08-2007 at 02:24 PM.
atlantic is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 05-08-2007, 02:38 PM Re: Can this be done
LadynRed's Avatar
Super Moderator

Posts: 6,718
Location: Tennessee
CSS cannot do the 'unloading' of the image, you can only do that with scripting.

Are the mouseover areas in different places on the image, sort of like an image map ?
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-08-2007, 02:48 PM Re: Can this be done
Novice Talker

Posts: 10
OK let's start again.....

This blending slideshow is doing all the loading and unloading of full images within the <div id="container"></div> with scripting.

Now without altering any of that scripting is it possible to have a transparent gif overlay this container and remain there even when the slideshow is working ?
atlantic is offline
Reply With Quote
View Public Profile
 
Old 05-08-2007, 03:16 PM Re: Can this be done
LadynRed's Avatar
Super Moderator

Posts: 6,718
Location: Tennessee
I think that's going to be really tricky. Check out how LightBox works, you'll see the transparent 'curtain' that opens, but the photos are above it. You might be able to modify it so that it is above your slideshow.

http://ahavriluk.home.comcast.net/lightboxEx/doc/
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-08-2007, 03:26 PM Re: Can this be done
Novice Talker

Posts: 10
Tricky !! I guess it's tricky.....to think about laying a transparent image over that container seems easy enough but the functions within that container are the whole problem.

I have used lightbox before but I don't think it would work either as I would need to be able to toggle my slides and again.

On this same type of concept, it would probably be easier for me to just position this transparent.gif using margin-top and margin-left rather than placing it in the container.
atlantic is offline
Reply With Quote
View Public Profile
 
Old 05-08-2007, 05:49 PM Re: Can this be done
Novice Talker

Posts: 10
Finally figured it out .....will post in a bit. Thanks !
atlantic is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Can this be done
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12986 seconds with 12 queries