Log In · Register

 
I Want the Code For Scrollbar In Entries Please..
pinkygirl88
post Nov 12 2004, 09:59 PM
Post #1


Member
**

Group: Member
Posts: 17
Joined: Aug 2004
Member No: 42,065



Can someone give me the code for the scrollbar in the entry? thanks biggrin.gif
 
 
Start new topic
Replies
kellyannie
post Nov 12 2004, 10:30 PM
Post #2


Senior Member
******

Group: Member
Posts: 2,137
Joined: Nov 2004
Member No: 62,193



do you want the one for the automatic scrollbar in your entries? or just one entry?

heres the one for automatic scrollbar:

PUT IN CUSTOM HEADER OR WEBSITE STATS:
CODE
<!-- begin code provided by createblog.com -->
<style type="text/css">
.custom{
width: 200px;
height: 200px;
z-index:100;
overflow: auto;
border: px #000000 solid;
background: #ffffff;
}</style>
<!-- end code provided by createblog.com -->


PUT IN WEBSITE STATS:
CODE
<!-- begin code provided by createblog.com -->
<script>
var tds = document.getElementsByTagName ('a');
for (var i = 0; i < tds.length; i++) {
timeString = tds[i].innerText;
if(timeString.match(/\d+:\d+ [ap]m\b/i)){
if(!tds[i].parentNode.parentNode.parentNode.parentNode.parentNode.tagName.match(/table/i)){break;}
table = tds[i].parentNode.parentNode.parentNode.parentNode.parentNode;
stuff = tds[i].parentNode.parentNode.parentNode.previousSibling.lastChild;
inner = stuff.innerHTML
stuff.innerHTML="";
stuff.insertAdjacentHTML('afterBegin','<div class="custom">'+inner+'</div>');

}
}
</script>
<!-- end code provided by createblog.com -->



here is the one if you just want a scrollbar in one entry:

PUT INTO YOUR ENTRY: (make sure you click Edit HTML)
CODE
<!-- begin code provided by createblog.com -->
<DIV id=scroll3 style="BORDER-RIGHT: #000000 0px; BORDER-TOP: #000000 0px; OVERFLOW: auto; BORDER-LEFT: #000000 0px; WIDTH: 600px; BORDER-BOTTOM: #000000 0px; HEIGHT: 100px">
<!-- end code provided by createblog.com -->
 

Posts in this topic


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