|
Post by mikeo on Jul 13, 2006 8:40:34 GMT -5
Hey, this is my latest code. I know it's been coding before, but I just wanted to try it out myself.
Cross Browser: Tested and no errors in FF and IE. Placement: Global Footer
Have fun!
<script language="Javascript"> <!--- /** Show / Hide Quick Reply By Mikeo **/
var vTd = document.getElementsByTagName( 'td' );
function doHideShow( ) { for( a=0; a<vTd.length; a++ ) { if( vTd[a].className == 'titlebg' && vTd[a].innerHTML.match(/Quick Reply/i) ) { if( vTd[a+1].style.display == 'none' ) { vTd[a+1].style.display = ''; } else { vTd[a+1].style.display = 'none'; } } } }
if( location.href.match(/&thread=/i) ) { for( a=0; a<vTd.length; a++ ) { if( vTd[a].className == 'titlebg' && vTd[a].innerHTML.match(/Quick Reply/i) ) { vTd[a].innerHTML = '<a href="javascript:void(0);" onClick="doHideShow();">Quick Reply (hide/show)</a>'; } } }
// ---> </script>
|
|