inherit
151327
0
Mar 17, 2011 20:02:17 GMT -8
abi says RAWR !?
32
January 2010
abisaysrawr
|
Post by abi says RAWR !? on Feb 5, 2011 18:20:28 GMT -8
Hello. So, I was looking through the codes for this and I finally found it, but it only lets me change the background colour of the box. I was wondering if it would be at all possible to modify it so it includes;
- a 1px dashed border - a 6px border on the left - justified text [not important if not possible] - 2px padding on all sides
I don't know if this is a lot to ask for but I thought I'd give it a try anyway. Here's the code;
<script type="text/javascript"> <!-- // Put board description in a box..
if(/^(home|boardindex)$/.test(pb_action)) { var bgcolor = '363433';
var board = document.getElementsByTagName('td'); for(b=0; b<board.length; b++) { if(board.width.match(/66%/) && board.onmouseover) { var div = document.createElement('DIV'); div.style.backgroundColor = bgcolor; div.appendChild(board.firstChild.nextSibling.nextSibling); board.appendChild(div); }}} //--> </script>
Please do not use size 1 when posting in support
|
|
inherit
134992
0
May 26, 2012 2:38:57 GMT -8
SubDevo
Creator of LSD...
3,861
December 2008
subdevo
|
Post by SubDevo on Feb 5, 2011 19:15:06 GMT -8
Hi. Try this. Only use CSS style rules in the colored line. <script type="text/javascript"> <!-- // Put board description in a box..
if(/^(home|boardindex)$/.test(pb_action)) { var bgCSS = "background-color:#363433;padding:2px;text-align:justify;"; // Only use CSS style rules.
var board = document.getElementsByTagName('td'); for(b=0; b<board.length; b++) { if(board.width.match(/66%/) && board.onmouseover) { var div = document.createElement('DIV'); div.style.cssText = bgCSS; div.appendChild(board.firstChild.nextSibling.nextSibling); board.appendChild(div); }}} //--> </script>I didn't put in the border, because I wasn't sure exactly what you wanted. But you can check here for what you need. Regards, SubDevo
|
|
inherit
151327
0
Mar 17, 2011 20:02:17 GMT -8
abi says RAWR !?
32
January 2010
abisaysrawr
|
Post by abi says RAWR !? on Feb 5, 2011 19:46:05 GMT -8
Ahhh, thank you! It works beautifully!!!
As for the border, all I had to add was "border: 1px dashed #b44406;border-left: 6px solid #b44406;" after the justify css, so I had a dashed border on the top, right and bottom with a solid and thicker border to the left x]
Thank you again!
|
|
inherit
134992
0
May 26, 2012 2:38:57 GMT -8
SubDevo
Creator of LSD...
3,861
December 2008
subdevo
|
Post by SubDevo on Feb 5, 2011 19:48:42 GMT -8
You are welcome. Have fun!
|
|