PDA

View Full Version : [HELP] Html Script..



OhLiam
21-08-2007, 11:12 PM
Hey, I need a script which will change an image upon it being clicked on..

It will lead into an iframe link etc but I need it to change..
Can anyone post the html script?

Thanks +Rep :)

Moved by Mattps22004 (Forum Moderator) from Web Market: Please post in the correct forum next time, thanks :).

Swearwolf
22-08-2007, 12:46 AM
change on mouseover or actual click
i'll find u one

Swearwolf
22-08-2007, 01:04 AM
can't edit post dont go mad. here you go,


<HTML>
<HEAD>
</HEAD>
<BODY>
<A HREF="youriframepage.htm" target="_blank">
<IMG SRC="image1.gif" ALT="Click on me" NAME="image"
ONMOUSEDOWN="document.images['image'].src='image2.gif">
</A>
</BODY>
</HTML>


that will open in a new window. to link to an iframe you probably know, but change "_blank" to "iframe name here"

OhLiam
22-08-2007, 02:02 AM
That doesn't work

Swearwolf
22-08-2007, 03:05 AM
tried and tested on FireFox and IE.
working example:
http://www.habbo-club.co.uk/testing.htm

Sunny.
22-08-2007, 01:07 PM
works fine..

Swearwolf
22-08-2007, 06:10 PM
thank you..

OhLiam
23-08-2007, 02:33 PM
Lol the post moved and couldn't find it..

Yeah it does work ty..
+rep

Want to hide these adverts? Register an account for free!