|
Post by tunescool on Aug 31, 2011 6:56:17 GMT -8
the background in this code im using you made is dark and for topic summary you cant see the text. can you make it so i can add a different image for topic summary
<style type="text/css"> .PostWindBGrestyle {background-image: url(http://i709.photobucket.com/albums/ww95/tunescool/nook/gryl017.gif);} .TArestyle{background-image: url(http://i709.photobucket.com/albums/ww95/tunescool/nook/grey12.jpg); border:none;} </style>
<script type="text/javascript"> // Post Text Area BG for (ta=document.getElementsByTagName('textarea'),t=0;t<ta.length; t++) { if (ta[t].name=='message' ) ta[t].className+=' TArestyle'; } if (document.postForm) { for (tds=document.postForm.parentNode.getElementsByTagName('td'),s=0;s<tds.length; s++) { if (tds.className.match(/windowbg/)) tds.className+=' PostWindBGrestyle'; } } </script>
|
|
|
Post by Wormopolis on Aug 31, 2011 21:49:52 GMT -8
the background in this code im using you made is dark and for topic summary you cant see the text. can you make it so i can add a different image for topic summary <style type='text/css'> .PostWindBGrestyle {background-image: url(http://i709.photobucket.com/albums/ww95/tunescool/nook/gryl017.gif);} .TArestyle{background-image: url(http://i709.photobucket.com/albums/ww95/tunescool/nook/grey12.jpg); border:none;} </style> <script type='text/javascript'> // Post Text Area BG for (ta=document.getElementsByTagName('textarea'),t=0;t<ta.length; t++) { if (ta[t].name=='message' ) ta[t].className+=' TArestyle'; } if (document.postForm) { for (tds=document.postForm. parentNode.getElementsByTagName('td'),s=0;s<tds.length; s++) { if (tds .className.match(/windowbg/)) tds.className+=' PostWindBGrestyle'; } } </script>see what happens real quick if you remove the red
|
|
|
Post by tunescool on Sept 1, 2011 3:47:54 GMT -8
that removed the background, but i want a different image in there
|
|
|
Post by Wormopolis on Sept 1, 2011 19:02:30 GMT -8
right right. I just wanted to make sure the original inention of that code, to add background to the cells IN the postform, still worked.
<style type="text/css"> .PostWindBGrestyle {background-image: url(http://i709.photobucket.com/albums/ww95/tunescool/nook/gryl017.gif);} .TArestyle{background-image: url(http://i709.photobucket.com/albums/ww95/tunescool/nook/grey12.jpg); border:none;} .topicsummaryBGrestyle {background-color: #FF0000;} </style>
<script type="text/javascript"> // Post Text Area BG for (ta=document.getElementsByTagName('textarea'),t=0;t<ta.length; t++) { if (ta[t].name=='message' ) ta[t].className+=' TArestyle'; } if (document.postForm) { for (tds=document.postForm.getElementsByTagName('td'),s=0;s<tds.length; s++) { if (tds[s].className.match(/windowbg/)) tds[s].className+=' PostWindBGrestyle'; } var isTable=document.postForm.nextSibling; while (!isTable.nodeName.match(/table/i)) isTable=isTable.nextSibling; for (tds=isTable.getElementsByTagName('td'),s=1;s<tds.length; s++) { if (tds[s].className.match(/windowbg/)) tds[s].className+=' topicsummaryBGrestyle'; }
} </script>
see if that works
|
|
|
Post by tunescool on Sept 1, 2011 20:33:50 GMT -8
thanks
|
|