HTML help b4 i go crazy! page 1

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,598
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


yulianna mpl studiosangelina cam with herpersa monirmariah milano bangbrosfree xcafe nudelindsey meadows porn stardesiree elyda villaloboskristina cross picsshey larenjessica biel shower videoimagepost castingindian women tgpbangbus nicolearielxdanii harwood videoswww.pichunters.comtawnee lightspeedkarina hart titsnatasha marlylia may gallerymiela mary queenmelissa midwest footjobeve wyrwal pussyatk nataliadeanna russo legspuffy nipple boobsbig hanging tittiesandi pink gallerybustysoniamilf syren de mersmall tits with large areolaskatestarpatty cake toplesslacey brooks pussybangbros anasemmie de souraamature allure violettailynnlittle mutt picsbaileys roomdarci tylerrebecca max hardcorevica ryder analdreamgirlsvideostiny tabby uncensoredleggy paulineonlytease fanbusty britain peachylexi matthewsbombshell mcgee nudeashlee jayne porndee dee darianrosa acosta forumkylie h abbywintersftv alexisprincessa mc nudeskatesplayground forumal4a picnadine j picsjanet jade galleriesmisty rhodes nudesara palin nude picstatum reed pornzoey zane galleriesbig naturals dinahlexi bloom picsanilos free galleriesmelanie walsh lingeriejennifer atk hairybusty alli pussytryteen.comyurizan beltranhaley scott videospubic hair picsmet art massagesexiest buttholesglam0ur girlskim kardashian cameltoe picsava deidreroni milf videomet tgpkarups olderteen tanner mayesbrcc katiejanessa brazil feetbriella bounce feetsandiegolatinas.comhairy maureenjessica biel shower videociara spicelacey lay