Dynadot โ€” .com Registration $8.99

A CSS question...

Spaceship Spaceship
Watch

monty

Established Member
Impact
3
Hey y'all

For the CSS expert around here, this should be an easy one!

A have a small image on some page and when the curser passes over it, a bigger image should display in a <div> tag somewhere else on the page. Inside the <div> tag, I've already put the img element but without source, when the mouse passes the first one, a source gets set for the <img> and all should be well.

The problem is that Opera shows the placeholder for this picture all the time which doesn't look nice!

Any suggestions would be greatly appriciated!

-monty
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable DomainsUnstoppable Domains
heya! :)

I think that you should have the div like this:

Code:
<div id="imageViewer" style="visibility: hidden"><img src="http://mywebsite.com/image.gif" /></div>

and then for the thumbnail image have this code:

Code:
<img src="http://mywebsite.com/thumbnail.gif" onMouseOver="document.getElementById('imageViewer').style.visibility='visible'" onMouseOut="document.getElementById('imageViewer').style.visibility='hidden'" />

That will show and hide the DIV with the image in it.

Hope this helps! :)
Tom
 
0
•••
It sure does Tom, tnx a million!

rep added!

-monty
 
0
•••
My pleasure! ;)
 
0
•••
Appraise.net
Unstoppable Domains
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back