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


abby winters patienceolaritabusty kerry marie videoscourtney devine videoskari sweets toplesserica campbell picture galleriesdestiny moody videonina hartley in stockingspubic hair styles picturesfrancine met artshazia sahari gallerieswendy taylor pornstargina holy naturespongebob imagefapclare grant nudetruetere nudeemily ratajkowski forumxl maturesamateur allure modeltheenglishmansion.comkerry marie big boobsmatureblacks.comalluring vixens barbiesativa vertepeachy 18 comcasey hays picstiny tit tgpsmall flabby titsmature.nl affiliateswww.bigtitsroundasses.comsasha starramature alurepics of topangaautumn riley picssharon lee explicite artsemmi a met artgisele pradovicky vixennessa a met artrequel devineerect nipsmonique fuanteskaren fisher displaying the modelforum.bearchive.comhippie goddess ingresscandy samples forumkiki daire picsdasha modelflatstour twistysscarlett fay nudekennedy kressler gloryholereal peachez hardcoredare dorms videosmarissas heavenmeetmaddenmel deblingcooed cherrymary piemonte nudegnd cali21sextreme modelsmindy vega hardcore porncory everson picturesmasha e picsbrooke from the bunny ranchatkgalleriemaylonieabigail 18 galleriesatk thumbshaley wilde porn videosdare ring tubeslacey banghard the suncharley green galleriesandrea sullivan modelimogen thomas tapebanana brandy nakedkayla paige gallerieshugeheavybreastsgyno fetish forumraylene richards videojessie rogers retiredbryci imagesscanloverssnooki naked tits