|
Post by Dragon on Sept 23, 2012 20:34:27 GMT -8
I think we come up with good names for these codes Wormo [atrb=style, background-image:url(MYTABLEBG);width:700,bTable] Possible to input a variable in footers so that it replaces background-image:url(MYTABLEBG); with the image url. Like the censored words we've been using to do so; problem with that is when we edit the post it switches out the line of coding and we have to reset it over and over each time we edit the post? (Right now I've kept it out since I've had to do so much editing) - Single image url just the one time. So any of these links cloudianpublicity.com/index.cgi?board=movielocations&action=display&thread=9989 gets the background in the middle of the post content header/bottom on the table. Won't need to be different per board, just the 1 same var. ;D
|
|
|
Post by Wormopolis on Sept 24, 2012 23:28:00 GMT -8
<script type="text/javascript"> if (pb_action.match(/display|recent|search2/)) { for (td=document.getElementsByTagName('td'), tt=0; tt<td.length; tt++) { if (!td.getElementsByTagName('td')[0] && td.innerHTML.match(/MYTABLEBG/)) { td.innerHTML=td.innerHTML.replace(/MYTABLEBG/g,"URL GOES HERE"); } } } </script>
|
|
|
Post by Dragon on Sept 25, 2012 12:59:56 GMT -8
cloudianpublicity.com/index.cgi?board=newmovies&action=display&thread=16092Put it in right above the enhanced table code, didn't work. You sure you didn't make a mistake there ? (/MYTABLEBG/)) -? I'm not a coder, but double parentheses like that.... ? Also, I just have MYTABLEBG in thats being replaced. Not sure if thats a factor in why its not working, just thought I'd say it. Oooh did you see the How I Met Your Mother Premiere ? ;D
|
|
|
Post by Wormopolis on Sept 25, 2012 16:44:51 GMT -8
lost an "s"
|
|
|
Post by Wormopolis on Sept 25, 2012 16:46:18 GMT -8
and I was trying to get through season 4 of "The Mentalist" last night, so I didnt watch any live TV
|
|
|
Post by Dragon on Sept 25, 2012 19:43:48 GMT -8
Eh... S? O.o Ah. Well at least you watched a show you like I watch my shows online, not live.
|
|
|
Post by Wormopolis on Sept 25, 2012 20:35:46 GMT -8
recopy the code above. I dropped an s from a function name
|
|
|
Post by Dragon on Sept 25, 2012 21:12:32 GMT -8
Ah. Copied. Good news: it works. Bad news: same problem as censored words: when we go to modify post it switches with the link. I don't suppose theres a way to make it not do that in modify post? [atrb=style,background-image:url(http://imageshack.us/a/img821/1329/cppostofbmiddle.png); width:700,bTable] - really not good in modify post, would have to switch it out with MYTABLEBG every time we edit again and again...
|
|
|
Post by Wormopolis on Sept 25, 2012 21:56:13 GMT -8
alright then.. recopy then
|
|
|
Post by Dragon on Sept 25, 2012 23:12:07 GMT -8
!!!!!!! *hugs Wormo* Your the best Wormo! Thank You.
|
|