blogrings scrollbar?, can't find a code. |
![]() ![]() |
blogrings scrollbar?, can't find a code. |
Mar 29 2006, 03:53 AM
Post
#1
|
|
![]() Megan ![]() Group: Member Posts: 7 Joined: Nov 2005 Member No: 305,698 |
i know there is a scrollbar for your subscriptions in the scripts, but there isn't one for blogrings, and i have seen it on a lot of sites, such as here. does anyone have the code for this? it would be much appreciated. :]
|
|
|
|
Mar 29 2006, 08:20 AM
Post
#2
|
|
![]() say maydayism. ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Staff Alumni Posts: 7,447 Joined: Jun 2004 Member No: 26,344 |
I apologize here first, because we haven't transferred all the Xanga scripts to the new section yet.
Here is the code: CODE <script type="text/javascript"> function adjustSirListHeight() { // *** define the height of your SIR-list in the line below var sirListHeight = '120px'; var allTables = document.getElementsByTagName('tbody'); for (i=0; i < allTables.length; i++) { if ((allTables[i].innerHTML.indexOf('Blogrings') != -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> Edit the px number to change the height and width. |
|
|
|
Mar 31 2006, 05:50 PM
Post
#3
|
|
![]() Megan ![]() Group: Member Posts: 7 Joined: Nov 2005 Member No: 305,698 |
Thank you :]
|
|
|
|
![]() ![]() |