| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
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 |
|
|
|
|
|
#2 (permalink) |
|
NeverFuckWithoutaRubber
|
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 |
|
|
|
#3 (permalink) |
|
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. |
|
|
|
#4 (permalink) |
|
I ride polar bears
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. |
|
|
|
#5 (permalink) | |
|
Senior Member
Join Date: Jan 2005
Posts: 12,340
|
Quote:
|
|
|
|
|
#6 (permalink) |
|
+
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
|
|
|
|
#7 (permalink) |
|
goober :-)
|
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 |
|
![]() |