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 (1 - 8)
*mona lisa*
post Dec 23 2004, 12:42 PM
Post #2





Guest






are you sure the one from cb didn't work? can you post the code you put in?
 
ivy9187
post Dec 23 2004, 12:50 PM
Post #3


Senior Member
***

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



this was the code i found on xanga scripts...it was the only one i could find that dealt with my question...

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

<!-- begin code provided by createblog.com -->
<script>
// Resize Comment Box by Paul Chen aka Coyote
width = NUMBER;  //change this value
height = NUMBER; //change this value
if(location.pathname=='/item.aspx'){
var booga = document.getElementById('htmleditor')
newBooga = '<ifr' + 'ame' + ' class=\"htmleditor\" width=\"' + width + '\" height=\"' + height + '\" ID=\"htmleditor\" scrolling=NO>';
booga.insertAdjacentHTML('afterEnd',newBooga);
booga.removeNode(true);
}
</SCRIPT>
<ilayer name=""><div id="" style="width:1; height:1;  BACKGROUND: #BACKGROUND HEX CODE; FILTER: alpha(opacity=0); overflow:auto"><center><applet><xmp>
<!-- end code provided by createblog.com -->

<!-- end code provided by createblog.com -->
 
*mona lisa*
post Dec 23 2004, 02:35 PM
Post #4





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.
 
ivy9187
post Dec 23 2004, 03:39 PM
Post #5


Senior Member
***

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



it didn't work...it's still the same as before... sad.gif
 
ivy9187
post Dec 24 2004, 02:16 PM
Post #6


Senior Member
***

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



this is so frustrating... _dry.gif
 
sherryvu
post Dec 26 2004, 03:52 PM
Post #7


Senior Member
*******

Group: Member
Posts: 3,826
Joined: Jan 2004
Member No: 2,330



i don't think you can change the color of your comment box background. unless you make your xanga background black... and then put an opacity on your comment box. that's because the comment box is a seperate iframe i think
 
ivy9187
post Dec 28 2004, 01:20 PM
Post #8


Senior Member
***

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



QUOTE
i don't think you can change the color of your comment box background. unless you make your xanga background black... and then put an opacity on your comment box. that's because the comment box is a seperate iframe i think


how would i put an opacity on my comment box?
 
sherryvu
post Dec 28 2004, 05:32 PM
Post #9


Senior Member
*******

Group: Member
Posts: 3,826
Joined: Jan 2004
Member No: 2,330



http://www.createblog.com/forums/index.php?showtopic=35132
 

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