What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » JavaScript Help

JavaScript Help
Author: Message:
TheGeek
Full Member
***

Avatar
Excuse my geekyness.

Posts: 179
Reputation: 15
34 / Male / –
Joined: Feb 2005
RE: JavaScript Help
html:
code:
<img src="image1.gif" id="Image" onclick="document.image.src = changepic(); return false;">

javascript:
code:
function changepic ()
if (document.Image.src =="path to image a") {
document.getElementByID("Image").src = "path to image b";
}
else{
document.getElementByID("Image").src = "path to image a";
}

I'm a little bit rusty on the JS, but i think it should be like this.

This post was edited on 04-05-2005 at 04:54 PM by TheGeek.
[Image: 468x60banner.png]
04-05-2005 04:48 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
JavaScript Help - by Dempsey on 04-05-2005 at 04:31 PM
RE: JavaScript Help - by Stigmata on 04-05-2005 at 04:35 PM
RE: JavaScript Help - by Dempsey on 04-05-2005 at 04:43 PM
RE: JavaScript Help - by Joe on 04-05-2005 at 04:47 PM
RE: JavaScript Help - by TheGeek on 04-05-2005 at 04:48 PM
RE: JavaScript Help - by Dempsey on 04-05-2005 at 04:49 PM
RE: JavaScript Help - by TheGeek on 04-05-2005 at 04:53 PM
RE: JavaScript Help - by Stigmata on 04-05-2005 at 04:54 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On