|
I am making a code to edit the forum jump,what this will do is when the user clicks on a image next to the fourm jump the forumjump turns to a message system.What I need to know it how I should do this? I allready have the message system done what I need is how I will get it to swich.
|
|
|
|
Get the image there and use onclick I guess. I'm not really sure what you mean, so I can't help.
|
|
|
|
|
Say your function's name is switch, you would do something like:
<a href="javascript:void(0)" onclick="switch()"><img src="link" border="0" /></a>
|
Support Rob Scuderi, the #1 Penguins Defender!
"Behold: me! I have authority in this building."
|
|
|
|
i'm trying to get the forum jump to swich to a custom message code,I have coded the Custom message allready but I need help coding the "swich"
|
|
|
|
I still don't really get it though. What are you doing to code a message when all you have to do is something like document.write('message here');. For the switch part just do something like this...I'm really guessing on this since I've never done something like this before...so correct me because I'm not even sure if I'm using replace correctly. <script type="text/javascript"><!-- function switch(obj){ var one = document.getElementById(obj); var fj = document.getElementById(forumjump); fj=fj.replace(fj.parentNode.innerHTML,one); } //--></script>
<a href="javascript:void(0)" onclick="switch('message_system')"><img src="link" border="0" /></a>
<div id="message_system">Message blah blah</div>
Last Edit: Apr 1, 2007 5:17:33 GMT by Jordan
|
|
|
|