FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

JS Rollover Sticky

 


moejoe
Hi.

I'd like to construct something that will appear on rollover of an Object.


And it'll be sticky until the user closes or moves off the object for more then 2 seconds.

Something like when you rollover people's user images in "Yahoo Answers" (http://answers.yahoo.com/)

Any Tutorials/Help?

Thanks.
LukeakaDanish
in each image add the following attribute:
Code:
onmouseover="this.src = 'PATH_TO_HOVERED_IMAGE_HERE';"

Like this the user will have to wait for the image to load before it is updated. If you want to preload it, just include the following line in your javascript (or in the onload attribute of your body tag):
Code:
img = new Image(); img.src = 'PATH_TO_HOVERED_IMAGE_HERE';



EDIT: Sorry misread your topic, and didnt check the yahoo site.

Please specify EXACTLY what you want to happen when you hover an image AND show your markup (to make things easier for me)

BTW: -499 points...NICE! Twisted Evil Twisted Evil
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.