NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page A CSS question...

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 05-20-2006, 02:58 AM THREAD STARTER               #1 (permalink)
NamePros Member
 
monty's Avatar
Join Date: Jun 2005
Location: Hat Yai, Thailand
Posts: 165
monty is an unknown quantity at this point
 



A CSS question...


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
monty is offline  
Old 05-20-2006, 11:57 AM   #2 (permalink)
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
Join Date: Jan 2005
Location: UK
Posts: 2,408
PoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nice
 



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.
????: NamePros.com http://www.namepros.com/programming/199165-a-css-question.html

Hope this helps!
Tom
PoorDoggie is offline  
Old 05-20-2006, 10:08 PM THREAD STARTER               #3 (permalink)
NamePros Member
 
monty's Avatar
Join Date: Jun 2005
Location: Hat Yai, Thailand
Posts: 165
monty is an unknown quantity at this point
 



It sure does Tom, tnx a million!

rep added!

-monty
monty is offline  
Old 05-21-2006, 09:26 AM   #4 (permalink)
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
Join Date: Jan 2005
Location: UK
Posts: 2,408
PoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nice
 



My pleasure!
PoorDoggie is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 10:55 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger