...

View Full Version : Code help plz



yazuki
12-24-2004, 09:39 PM
<script>
if(location.href.match(/action=(pro|vie|ml|hea|sea|adm|not|)/i)){} else {
var Table=document.getElementsByTagName("Table")
for(t=0;t<Table.length;t++){
for(r=0;r<Table[t].rows.length;r++){
for(c=0;c<Table[t].rows[r].cells.length;c++){
with(Table[t].rows[r].cells[c]){
if(innerHTML.match("Forum Name") && className.match("titlebg") && colSpan=="2"){
Table[t].rows[r].style.display="none"}
if(className.match("catbg")){
if(innerHTML.match("Forum Statistics") || innerHTML.match("Users Online") || innerHTML.match("markasread.gif")){} else {
var In=Table[t].insertRow(r+1)
In.className='titlebg'
var Int=In.insertCell()
Int.width="8%"
Int.className="titlebg"
Int.innerHTML=""
var Row=Table[t].rows[r+1].insertCell
var Stuff=Table[t].rows[r+1].cells
Row(1).innerHTML="<font class='titletext'><b>Board Name</b></font>"
Stuff[1].width="66%"
Row(2).innerHTML="<font class='titletext'><b>Threads</b></font>"
Stuff[2].width="1%"
Row(3).innerHTML="<font class='titletext'><b>Posts</b></font>"
Stuff[2].width="1%"
Row(4).innerHTML="<font class='titletext'><b>Last Post</b></font>"
Stuff[4].width="24%"
}}}}}}}
</script>

Can someone edit this code so that instead of creating text such as Board name it instead creates images that i can change the URL to please.

Thanks

Willy Duitt
12-27-2004, 04:37 AM
Change these lines to use image tags rather than text and the deprecated font tags....

Row(1).innerHTML="<font class='titletext'><b>Board Name</b></font>"
Row(2).innerHTML="<font class='.....

.....Willy



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum