|
Post by CD on Aug 15, 2005 8:42:47 GMT -8
Forums: ProBoards Version 4 Compatibility: FF and IE 6.0 Location: Main Footers Description: The On/Off icon is moved to the right side of the board cell. Editing: None Preview: None
<script> // On/Off After Board Cell by CDDude229 // Code may not be redistrbuted without permission
// No need to edit var aTD = document.getElementsByTagName("TD");
for(a=0;a<aTD.length;a++){ if(aTD[a].innerHTML.match(/\[(\*|\s)\]/i) && aTD[a].width=="8%" && aTD[a].id != "non"){ var on_off = aTD[a].innerHTML; var board_cell = aTD[a+1].innerHTML;
aTD[a+1].innerHTML = on_off; aTD[a+1].width = "8%"; aTD[a+1].id = "non"; aTD[a+1].vAlign = "middle"; aTD[a+1].align = "center";
aTD[a].innerHTML = board_cell; aTD[a].width = "66%"; aTD[a].vAlign = "top"; aTD[a].align = "left"; aTD[a].onmouseover = aTD[a+1].onmouseover; aTD[a].onmouseout = aTD[a+1].onmouseout; aTD[a].onclick = aTD[a+1].onclick;
aTD[a+1].onmouseover = ""; aTD[a+1].onmouseout = ""; aTD[a+1].onclick = ""; aTD[a+1].style.cursor = ""; } } </script>
|
|