Log In · Register

 
scrollbars on custom moudles
laughn_l0ser
post Dec 30 2004, 05:47 PM
Post #1


Senior Member
*****

Group: Member
Posts: 310
Joined: Dec 2004
Member No: 73,592



is there any way to put scrollbars on custom moudles?? i need a code laugh.gif
 
 
Start new topic
Replies
JlIaTMK
post Dec 30 2004, 08:09 PM
Post #2


Senior Member
*******

Group: Member
Posts: 7,048
Joined: Jun 2004
Member No: 22,696



i think you can....

CODE
<!-- begin code provided by createblog.com -->
<script type="text/javascript">
// original by EasterEgg, xanga.com/easteregg
// modified to reflect xanga's current html schemas
function adjustSirListHeight()
{
   // *** define the height of your SIR-list in the line below
   var sirListHeight = '90px';
   var allTables = document.getElementsByTagName('tbody');
   for (i=0; i < allTables.length; i++)
   {
       if ((allTables[i].innerHTML.indexOf('Sites I Read') != -1) &&
           (allTables[i].innerHTML.toUpperCase().indexOf('<TABLE') == -1))
       {
           sirlist = allTables[i].lastChild;
           temp = sirlist.firstChild.innerHTML;
           sirlist.removeChild(sirlist.firstChild);
           td = document.createElement('td');
           div = document.createElement('div');
           div.style.width = '190px';
           div.style.height = sirListHeight;
           div.style.overflow = 'auto';
           div.innerHTML = temp;
           td.appendChild(div);
           sirlist.appendChild(td);
           break;
       }
   }
}
if (navigator.userAgent.indexOf('Mac') == -1)
   if ((document.URL.indexOf('weblogs') == -1) &&
       (document.URL.indexOf('guestbook') == -1) &&
       (document.URL.indexOf('events') == -1) &&
       (document.URL.indexOf('reviews') == -1))
       adjustSirListHeight();
</script>
<!-- end code provided by createblog.com -->


use this code for all the things you want to change

thats for subscriptions
but you can change sites i read to something else :)
 

Posts in this topic


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