View Full Version : subscriptions scrollbar


xplicitnshort
08-29-2004, 06:13 AM
that code doesnt seem to work anymore. did xanga block it? well can anyone post a new, working code. i have an extremely long subscriptions list, and it would be more convienent to my viewers if it had a scrollbar attached to it. THANK YOU TO ANYONE WILLING TO HELP.


and the old code im talking about is the following
<script type="text/javascript">
// original by EasterEgg, xanga.com/easteregg
// modified to reflect xanga's current html schemas
// FROM XANGA.COM/HTML_SCRIPTS
function adjustSirListHeight()
{
// *** define the height of your SIR-list in the line below
var sirListHeight = '90px';
var allTables = document.getElementsByTagName('tbo dy');
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>

LaYdEe_x_C
08-29-2004, 06:45 AM
here u go.. [:

<script language="Javascript">
// Subscriptions Scrollbar - xanga.com/add_ons
// Submitted by xanga.com/godofphotoshop

// change here to the height of the box, px means pixels
var subscriptionboxheight = "110px";

// do not edit below here
var th = document.getElementsByTagName("th");
for (var p = 0; p < th.length; p++) {
if(th[p].innerHTML.toLowerCase().indexOf('subscriptions</span>') !== -1) {
var subtext = th[p].parentElement.parentElement.getElementsByTagName("tr")[1].getElementsByTagName("td")[0];
subtext.innerHTML = "<div style=\"height: " + subscriptionboxheight + "; overflow: auto \">" + subtext.innerHTML + "</div>";
}
}
</script>

xplicitnshort
08-29-2004, 07:47 AM
ahh your awesome! thank you so much for your help!!

LaYdEe_x_C
08-29-2004, 06:42 PM
aww.. no prob. [:

tokyoooo
08-11-2005, 07:34 PM
seems like this SIR scrollbar doesn't work anymore... is there a new code?