Old 01-02-2007, 19:45   #1 (permalink)
MK3Design
Registered User
 
Join Date: Jan 2007
Posts: 19
best rollover options?

What is the best way to do image rollovers? There is many ways you can do this I know, but what is the easiest/fastest loading way? The type I use always takes a second or 2 to load.

Examples on how would be helpfull too, thanks
  Reply With Quote
Old 01-02-2007, 20:43   #2 (permalink)
Intrinzik.v2
NeverFuckWithoutaRubber
 
Intrinzik.v2's Avatar
 
Join Date: Nov 2006
Location: Monticello In
Posts: 259
Send a message via AIM to Intrinzik.v2 Send a message via MSN to Intrinzik.v2 Send a message via Yahoo to Intrinzik.v2 Send a message via Skype™ to Intrinzik.v2
the easiest way (using css) is to create one image with both the regualr image and the rollover image. Then use some css o when once the images is hovered its moves... like so;
http://www.tutorio.com/tutorial/pure...mage-rollovers
  Reply With Quote
Old 01-02-2007, 20:47   #3 (permalink)
pgo
Senior Member
 
Join Date: Jan 2005
Posts: 12,340
http://www.wellstyled.com/css-nopreload-rollovers.html

No preload needed. All it takes is downloading the image. Rollovers have no delay. Far superior in every way to JavaScript rollovers.
  Reply With Quote
Old 02-02-2007, 00:39   #4 (permalink)
Jack000
I ride polar bears
 
Jack000's Avatar
 
Join Date: Oct 2006
Location: the good part of Canada
Posts: 170
fyi, the background-position method still experiences a flash in certain versions of ie.

I prefer putting the over image on the <li> tag, the up image on the <a> tag, then assigning background-image: none to a:hover. Seems to get rid of the problem.
  Reply With Quote
Old 02-02-2007, 01:10   #5 (permalink)
pgo
Senior Member
 
Join Date: Jan 2005
Posts: 12,340
Quote:
Originally Posted by Jack000
fyi, the background-position method still experiences a flash in certain versions of ie.

I prefer putting the over image on the <li> tag, the up image on the <a> tag, then assigning background-image: none to a:hover. Seems to get rid of the problem.
That'll work, too. I've never experienced the flicker using the method I posted, but I'll take your word for it and bear that in mind.
  Reply With Quote
Old 02-02-2007, 01:30   #6 (permalink)
John Good
+
 
John Good's Avatar
 
Join Date: May 2005
Location: Tropical Networks
Posts: 1,584
the only trouble is that the user downloads images he might not see, if he doesn't use the buttons.
but we can live with that.
__________________
Fonts are like cologne: A bad choice speaks louder than a good one. Justin Feinstein
  Reply With Quote
Old 02-02-2007, 04:44   #7 (permalink)
djeglin
goober :-)
 
djeglin's Avatar
 
Join Date: Dec 2006
Location: Birmingham, UK
Posts: 533
Send a message via MSN to djeglin
Sprite rollovers (as referenced above, also in this article are by far the best way to deal with things like this. The loading time is smaller for one large image than the equivalent size in smaller, sliced up images, due to the lower volume of sundry image data.

Happy rollovering

David
  Reply With Quote
Old 03-02-2007, 08:56   #8 (permalink)
canglan
Registered User
 
canglan's Avatar
 
Join Date: Sep 2006
Posts: 27
Put 'em together and use offsets. :-)
  Reply With Quote
Reply



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

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8