User Profile
Collapse
Profile Sidebar
Collapse
bob parker
Last Activity: Nov 20 '11, 05:16 PM
Joined: Nov 15 '11
Location:
-
it did work i just forget to clear my cache. and your right i dont need the on change as it doesnt do anything for this. -
-
this is what i have.
Code:<script language="JavaScript"> function changeSRC() { document.getElementById("x").src = "pic2.png" } </script> <img id="x" src="pic1.jpg" alt="x" onchange="changeSRC()" />Last edited by Dormilich; Nov 17 '11, 06:10 AM. Reason: please use [CODE] [/CODE] tags when posting codeLeave a comment:
-
-
thanks but the pic isnt changing and i want the number to stay there even if i refresh the page.Leave a comment:
-
Changing a number with onClick
ok so i have the code listed below and i want it so that when i click the button x goes up by 60 for every click. then, this part i need but not as much, when it reaches y i would like it to execute a command to change a pic.
...Code:<input name="submit" type="button" value="button" onclick="button" /> <script language="JavaScript" type="text/javascript"> var
No activity results to display
Show More
Leave a comment: