WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-29-2006, 05:25 AM
WebProWorld Veteran
 

Join Date: Jul 2005
Location: London - Cheswick
Posts: 675
JuniorOnline RepRank 0
Default Hover over Images

Hi there,

what can I use in CSS for a hover over effect for images? I am aware I do need 2 images for this to work. but where can i find a good, simple code to use?

many thanks
T
Reply With Quote
  #2 (permalink)  
Old 03-30-2006, 04:05 AM
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Cornwall, UK
Posts: 833
speed RepRank 1
Default

If you look at the source code of http://stuff.tolranet.co.uk/css/roll/ it has a rollover image for links, which default to text links when CSS is unavailable.

Hope that helps.
__________________
TOLRA Micro Systems Limited US & UK Web Hosting with Continuous Data Protection
Web Directory 2 for 1 Offer : Web Directory Script
Reply With Quote
  #3 (permalink)  
Old 03-30-2006, 07:42 AM
Faglork's Avatar
WebProWorld Veteran
 

Join Date: Feb 2005
Location: Forchheim, Germany
Posts: 947
Faglork RepRank 0
Default

The :hover pseudo-class (e.g. img:hover) is supposed to do this. But guess which browser does not understand this? Right.

Only solution would be to put the image into an anchor element, since IE supports only a:hover.

Or, if you want/need to address more compatibility issues, use Dean Edwards' IE7 script.

You are asking where to find code? Try this:
http://www.google.com/search?hl=en&q=image+rollover+css
Google is your friend ;-)


hth,
faglork
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: ,



Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0