Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Code help plz

  1. #1
    Registered User
    Join Date
    Dec 2004
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Code help plz

    Code:
    <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

  • #2
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •