Maybe something like:
Trigger
Code:
onClick="changeText('textuwantchangedhere');"
Head code
Code:
changeText(text) {
var value=document.getElementById("div").innerHTML;
if (value=="") {
document.getElementById("div").innerHTML='' + text;
}
else {
document.getElementById("div").innerHTML='';
}
}
The area with text
Code:
<div id="div"></div>
Note that this is untested, just a guess. It works by checking to see if the DIV is empty, if it is then it inserts the text, if not then it wipes it empty. On first click add text, on second get rid of it. If the code doesn't work (likely) at least you have something to go on. If I have time and you still need it I'll try and make it work late,r assuming it doesn't now.
Good luck,
Tim
Wow, I was just reading past posts and man I was a butthole sometimes to people. So if you ever got the end of it, then sorry...
Bookmarks