|
Post by Wormopolis on Dec 3, 2009 8:31:09 GMT -8
so you mean the black background?
the way the original request was made, was that you wanted all the cells with class "windowbg" to have a different background image on the posting page. all those cells that have that orange image are the ones with class windowbg.
|
|
|
Post by tunescool on Dec 3, 2009 8:43:23 GMT -8
everything that is FFFFE8. the cream color was what i wanted to change the background for, sorry again for the confusion
|
|
|
Post by Wormopolis on Dec 3, 2009 8:52:31 GMT -8
ok.. then this should be it:
<script type="text/javascript"> for (ta=document.getElementsByTagName('textarea'),t=0;t<ta.length; t++) { if (ta[t].name=='message' && !ta[t].parentNode.parentNode.width=='70%') ta[t].className+=' TArestyle'; } if (location.href.match(/action=post/)) { for (tds=document.postForm.parentNode.getElementsByTagName('td'),s=0;s<tds.length; s++) { if (tds.className.match(/windowbg/)) tds.className+=' PostWindBGrestyle'; } } </script>
|
|
|
Post by tunescool on Dec 3, 2009 10:48:44 GMT -8
it didnt affect these cells, if youre gonna have to rework all that stuff ill just not use it. i didnt want the table gray. but i do want a background in the text area
|
|
|
Post by Wormopolis on Dec 3, 2009 10:59:48 GMT -8
those untouched cells are not grey because they dont exist when this new code runs. make sure this new code runs after both of them.
if you want that textarea to have a background, delete this: && !ta[t].parentNode.parentNode.width=='70%'
|
|
|
Post by Wormopolis on Dec 3, 2009 11:02:47 GMT -8
you also have 2 versions of this last code in there. get rid of the one that looks like:
<script type="text/javascript"> for (ta=document.getElementsByTagName('textarea'),t=0;t<ta.length; t++) { if (ta[t].name=='message' && !ta[t].parentNode.parentNode.width=='70%') ta[t].className+=' TArestyle'; } if (location.href.match(/action=post/)) { for (tds=document.getElementsByTagName('td'),s=0;s<tds.length; s++) { if (tds.className=='windowbg') tds.className+=' PostWindBGrestyle'; } } </script>
|
|
|
Post by tunescool on Dec 3, 2009 11:40:25 GMT -8
i got the background to work on the posting page, im still unsure how to get the text area a background or the quick reply background. do i just add a stylesheet after removing what you said? they will be different backgrounds, the posting page and the text area
|
|
|
Post by Wormopolis on Dec 3, 2009 12:49:25 GMT -8
the text area backgrounds can be controlled by the style you set up for TArestyle. both the quick reply textarea and the posting form textarea will be affected by that code.
|
|
|
Post by tunescool on Dec 3, 2009 13:30:29 GMT -8
i have this, but it isnt working, thanks for all your help with this
<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);} </style>
<script type="text/javascript"> for (ta=document.getElementsByTagName('textarea'),t=0;t<ta.length; t++) { if (ta[t].name=='message' && !ta[t].parentNode.parentNode.width=='70%') ta[t].className+=' TArestyle'; } if (location.href.match(/action=post/)) { 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 Dec 3, 2009 13:40:45 GMT -8
take out the red.
|
|
|
Post by tunescool on Dec 3, 2009 14:15:07 GMT -8
thats everything, is there anyway to get rid of the border or appearance of it, the white edges on the rite and bottom?
|
|
|
Post by Wormopolis on Dec 3, 2009 14:48:04 GMT -8
not sure... lets see...
|
|
|
Post by Wormopolis on Dec 3, 2009 14:49:57 GMT -8
add into the style:
border:none;
|
|
|
Post by tunescool on Dec 3, 2009 15:03:04 GMT -8
that didnt have any effect, i really appreciate all this wormo, it looks really good, some ill change, but it looks good
<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>
|
|
|
Post by Wormopolis on Dec 3, 2009 19:09:54 GMT -8
you did the CSS wrong.
.TArestyle{background-image: url(http://i709.photobucket.com/albums/ww95/tunescool/nook/grey12.jpg); border:none;}
the curly bracket has to enclose all the stylings for that particular class.
|
|