Subscriptions Scrollbar..., HEHE Need help with pixels |
Subscriptions Scrollbar..., HEHE Need help with pixels |
![]()
Post
#1
|
|
![]() I must at least be a official member! =]p ![]() ![]() ![]() Group: Member Posts: 46 Joined: Dec 2004 Member No: 69,172 ![]() |
![]() <!-- begin code provided by createblog.com --> <!-- 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 --> <!-- end code provided by createblog.com --> the code would't work becuase im to dumb to know how many pixels i need! help please? My Xanga |
|
|
![]() |
![]()
Post
#2
|
|
![]() I must at least be a official member! =]p ![]() ![]() ![]() Group: Member Posts: 46 Joined: Dec 2004 Member No: 69,172 ![]() |
O OOPS hehe accidently put it in the custom header
![]() |
|
|
![]() ![]() |