Monday, December 28, 2009

Can you swap an image on mouseover without using javascript?

basically i want to swap an image (or text if thats possible) on mouseover in a myspace friendly way. so when the cursor falls on the text or image, different text or a different image is displayed. is there a way to do this without javascript, so you can put it on a myspace?



Can you swap an image on mouseover without using javascript?

polly_peptide - You're nearly there :)



The 'A' tag is called an Anchor.



Javascript is the only thing that can command a mouseOver or mouseOut or any such thing like that - however, developing on polly_peptide's answer, you can use CSS.



CSS can do a wide variety of things include hide/show images/text meaning if you hide one and show another - it'll have the same effect.



Add me on MSN for more details/code:



danny.ashton@hotmail.co.uk



Can you swap an image on mouseover without using javascript?

no



Can you swap an image on mouseover without using javascript?

You could conceivably create a flash object to do it. That's probably more work, but if javascript's a no-no, that might be your only recourse.



Can you swap an image on mouseover without using javascript?

Yes, by using the hover attribute of the A tag. But you can only do it in a A tag. Don't use FLASH for stupidly simple things like this. If the A tag won't work, please use javascript.

No comments:

Post a Comment

 
web ftp hosting