resize comment box? |
resize comment box? |
Oct 20 2004, 04:54 PM
Post
#1
|
|
|
Senior Member ![]() ![]() ![]() Group: Member Posts: 38 Joined: Oct 2004 Member No: 57,176 |
Hi. Can anyone please explain how to resize my comment box? I saw the code on the Xanga Scripts but it didn't work. How do I make the comment box fit into my div? Where do i place the code?
|
|
|
|
![]() |
Oct 20 2004, 05:01 PM
Post
#2
|
|
![]() . ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 1,488 Joined: Feb 2004 Member No: 3,625 |
CODE <!-- begin code provided by createblog.com --> <script> // Resize Comment Box by Paul Chen aka Coyote width = 350; //change this value height = 100; //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> <!-- end code provided by createblog.com --> The height should be ok, but a general rule is to make the width slightly smaller than the width of your blog body or div. And the code goes at the beginning of your Website Stats section. |
|
|
|
Oct 20 2004, 09:08 PM
Post
#3
|
|
|
Senior Member ![]() ![]() ![]() Group: Member Posts: 38 Joined: Oct 2004 Member No: 57,176 |
That's what i have been trying to do all day. But it isn't working for me. The comment box doesn't change at all. Do i have to do anything with my other codes to make it work?
|
|
|
|
![]() ![]() |