what is this code for?, and what does it do...? |
what is this code for?, and what does it do...? |
Aug 11 2004, 08:28 PM
Post
#1
|
|
![]() Senior Member ![]() ![]() ![]() Group: Member Posts: 70 Joined: May 2004 Member No: 16,677 |
found this code in my xanga but i have no idea what it does...
CODE <!-- 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 --> pleez help! |
|
|
|
![]() |
| *NatiMarie* |
Aug 11 2004, 08:35 PM
Post
#2
|
|
Guest |
I think it's to put a scrollbar on your SIR
|
|
|
|
Aug 11 2004, 09:57 PM
Post
#3
|
|
![]() Bardic Nation ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 1,113 Joined: Aug 2004 Member No: 38,059 |
it is a script to add a scrollbar to your subscriptions. dont put anymore posts like this up here. if you wanna know what something does, try it.
|
|
|
|
![]() ![]() |