HTML help b4 i go crazy!

Sat, Nov 13 2010 19:05
Hunter27
Classified
Posts 4,142
Retired Moderator

There is a very simple 1 liner code to change images onmouseover and onmouseout but I cant remember it! Driving me nuts, ive tried everything. I need a still jpg image to animate into a gif onmouseover then back to jpg onmouseout.

This can be done in a single line of code iv'e done it before. Anyone know how?

Thanks in advance

reply
Sun, Nov 14 2010 0:34
kamz5
Posts 6,632
Moderator
How about this (not exactly one line):

<script type="text/javascript">
function flip(img)
{
var x=img.src;
img.src=img.getAttribute('data-gif');
img.setAttribute('data-gif',x);
}
</script>

<img src="pic.jpg" data-gif="pic.gif" onmouseout="flip(this)" onmouseover="flip(this)" />
reply
Tue, Feb 8 2011 13:46
brad175
Posts 1

You don't need javascript for it.

a href="google.com"
onmouseover="nameHere.src='imgs/frog.jpg'"
onmouseout="nameHere.src='imgs/duck.jpg'"
img src="img/pig.jpg" name="nameHere" /a

Gah, i can't get around this forum messing with my code when i post it. Hopefully you understand this.

reply

Sort Posts:




Download porn video at mobile phone


broke amateursexploitedteensmelanie rios picskarups tgpmissy mae pornsmokie flamezuzanna drabinovadaiana kingpenthousereportanna carleneeve wyrwaltiffany toth porneliseeroticvalerie herreralucky bentondesiree delucaseanna teenyoung guselshemp tgpsugar chanelleleili koshimonique alexander freeonesbackroom casting couch kendalldasha astafieva nudemistress jemstoneplumpstarserect nipple picsallover30 galleriesjenni lee planetsuzytiny tovevixen lamoorechloe vevrier hardcoremikes aptkarups dailykacy jordanlexi warddivinebreasts.comanna liebanjanette astoriabig pussy lip picstoni kat vixenaddie juniperdjsteenssonia carrerejennifer korbin nudecala cravesrobyn truelovemicro kini beachizy bella blucarmen croftzuzana zeleznovovaeliza dushku nude picslizzy lawnicest pussyivy nedkovasativa vertejenny mclainpetra nemcova nudesusan lynn kigercasey batchelor nudekodi janeelay smith nudemelissa riso nudetampa housewiveszenya laijana kucovaesperanza gomez picsteachmyassstaci thornsexy pattycake videoshaydn porterpornstarfinder.netdreamnet.comelly tran ha nudetegan bradyamateur allure pre auditionsexy pattycake videosan diego latinaspiper fawnpassionhd fanashley codajana defi nudebrandigirlslouisa lockheartmillian bluphoebe kellertara radovickiki kakuchikari sweets videobecky lesabreashli orionnextdoormodelsverunkaallover30 picsbianca beauchamp galleryparis hilton pussykatreena lee