Log In · Register

 
 
Closed TopicStart new topic
error on code used, ...
yskulmate
post Dec 23 2004, 10:40 PM
Post #1


yskulmate
****

Group: Member
Posts: 187
Joined: Nov 2004
Member No: 64,014



i want to add a scrollbar on my subscriptions list, i got it somewhere from here in createblog but it doesnt work on my xanga..
wahts the error on this code ppls check for errors...

[CODE]
<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 = '80px';
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>
 
Jus2s1mp13
post Dec 23 2004, 10:44 PM
Post #2


Um....Its meeee
******

Group: Member
Posts: 2,218
Joined: Mar 2004
Member No: 8,264



Did you place it on the top of web stats?
 

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