I am using on my forum a function to expand / collapse some information relatated to some games ...
Anyway, not clicked, it looks like that :
When clicked :
I am using this code :
My problem : I would like to change the button to use a .gif instead of a grey standard button, however, when I am using
instead, I can see the effect for just a split second and then I get the error :
Does someone has ANY ideas whats going on
Anyway, not clicked, it looks like that :
When clicked :
I am using this code :
Code:
<div class="smallfont" style="margin-bottom:2px"><b>Arcade:</b> <input type="button" value="Show Highscore" style="width:93px;font-size:10px;margin:0px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';this.innerText = ''; this.value = 'Hide Highscore'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show Highscore'; }"> </div> <div class="alt2" > <div style="display: none;"> $post[crowns]$post[champtext] </div> </div> </div>
Code:
<INPUT type = "image" src ="gif file"
Does someone has ANY ideas whats going on
Comment