Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-24-2004, 08:39 PM   PM User | #1
yazuki
Registered User

 
Join Date: Dec 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
yazuki is an unknown quantity at this point
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
yazuki is offline   Reply With Quote
Old 12-27-2004, 03:37 AM   PM User | #2
Willy Duitt
Banned

 
Join Date: Sep 2003
Posts: 3,620
Thanks: 0
Thanked 0 Times in 0 Posts
Willy Duitt is an unknown quantity at this point
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
Willy Duitt is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:30 PM.


Advertisement
Log in to turn off these ads.