Log In · Register

 
Comment Help, please
ivy9187
post Dec 23 2004, 12:36 PM
Post #1


Senior Member
***

Group: Member
Posts: 38
Joined: Dec 2004
Member No: 72,995



I looked for the codes to do this but can't find it anywhere. The one I found on Xanga scripts didn't work.
I want to change the background color in the post a comment box from white to black. And make the font from black to white. How do I do this without changing all my other background colors and fonts?
 
 
Start new topic
Replies
*mona lisa*
post Dec 23 2004, 02:35 PM
Post #2





Guest






that won't do anything because it resizes them, it doesn't change the color and font

try this:
CODE
<!-- begin code provided by createblog.com -->

<script language="javascript">
/*
colorComments
by Sean F
http://www.xanga.com/seanmeister
/*
function colorComments(){
var bg1="#FFFFFF";
var bg2="#000000";
var sw=0;
var attname = document.all ? "class"+"Name" : "class";
var ctables = document.getElementsByTagName("table");
for (var cn=0; cn < ctables.length; cn++){
if (ctables[cn].getAttribute(attname) == "blogbody"){
sw = sw == 1 ? 0 : 1;
ctables[cn].style.backgroundColor = sw == 1 ? bg1 : bg2;
}}}
if (document.location.href.indexOf("item.aspx") != -1) colorComments();
</script>

<!-- end code provided by createblog.com -->


the color of the font would not have to be white or black then.
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: