|
Post by eveready on Oct 15, 2009 19:38:53 GMT -8
Yup, good stuff. Quality code. Thanks once again.
|
|
|
Post by eveready on Oct 24, 2009 1:21:12 GMT -8
Just one more thing with this, please. All of my side tables are separated with a simple 1px high bar (horizontal rule basically). I want to add the image into the code, so it is hidden at the same time the log table is hidden. I inserted the image in the code myself, but had trouble when the [more] link popped up, since it fell under the bar. Can I trouble you to show me how to fix this?
|
|
|
Post by Wormopolis on Oct 24, 2009 1:48:48 GMT -8
URL so I can see your edit?
|
|
|
Post by eveready on Oct 24, 2009 4:03:37 GMT -8
I'll pm it. Hope that's ok. I wanna keep it under wraps for now.
|
|
|
Post by Wormopolis on Oct 24, 2009 14:04:14 GMT -8
the edit you did interrupts the flow of the HTML to make the table.. that is why it looks weird.
try this:
if (inter<TL_id_array.length) { theStuff+="<table width='100%' style='display:none' id='moreTable'>"; for (tl2=inter; tl2<TL_id_array.length; tl2++) { brdnum=TL_id_array[tl2].split(":")[0]; thrnum=TL_id_array[tl2].split(":")[1]; linktemp="/index.cgi?board="+brdnum +"&action=display&thread="+thrnum; theStuff+="<tr><td><a class='TL_threadEntry' href='"+linktemp+"'>"+ TL_title_array[tl2] +"</a></td><td class='TL_timeEntry'>" + TL_date_array[tl2] +"</td></tr>"; } theStuff+="</table>"; theStuff+="<a href='javascript:void(0)' onclick='if(this.innerHTML.match(/more/)) { this.innerHTML=this.innerHTML.replace(/more/,\"less\"); document.getElementById(\"moreTable\").style.display=\"\"; } else { this.innerHTML=this.innerHTML.replace(/less/,\"more\"); document.getElementById(\"moreTable\").style.display=\"none\" }'>[more]</a>"; } theStuff+="<br><img src='http://i220.photobucket.com/albums/dd63/sjhlforum/congo/sidetableHR.png'>"; document.getElementById('threadlog').innerHTML=theStuff; document.getElementById('threadlog').align="right";
|
|
|
Post by eveready on Oct 24, 2009 19:30:34 GMT -8
Yeah, I'm not surprised my edit was messed up. lol
This seems to work. Thanks so much!
|
|
Chez-Michael
Not New Member
(= Dream big =)[Sj1:0]
Posts: 13
Chez-Michael said 0 great things
|
Post by Chez-Michael on Apr 2, 2010 21:46:31 GMT -8
Hey, can you post an example of what the DIV element is supposed to look like please? Thanks!!
I just realized what this code does, and its cool and still would like to know what the DIV looks like, but is there a code similar to this that lists the most recently started/replied topics?
|
|
|
Post by Wormopolis on Apr 3, 2010 11:09:41 GMT -8
are you asking for an example of what the thread log looks like? its on the left over there...
changing it to reflect threads that were posted in will take a rewrite, but its quicker to just get the one Todge wrote.
|
|
Chez-Michael
Not New Member
(= Dream big =)[Sj1:0]
Posts: 13
Chez-Michael said 0 great things
|
Post by Chez-Michael on Apr 3, 2010 21:26:17 GMT -8
No the code says you have to put a DIV element somewhere for the code to show up right, no? Or am I confused.. lol. I was wondering what the DIV code text looks like.
|
|
|
Post by Wormopolis on Apr 4, 2010 0:15:37 GMT -8
Oh!
well it doesnt HAVE to be a div. it could be a TD or FONT tag I guess. as long as it has the id="threadlog"
but a typical div would be:
<div id="threadlog"></div>
|
|