View Full Version : subscriptions scrollbar


DuMm33D0rk33
01-20-2005, 04:12 AM
i tried both of these codes for the subscriptions scrollbar. I even put them in website stats but they dont work. Does anyone no why??? :sad:


<!-- Adjust Sites I Read Height : Provided by Blogring.net -->
<script type="text/javascript">
// written by EasterEgg
//BLOGRING.NET

function adjustSirListHeight()
{
// *** define the height of your SIR-list in the line below
var sirListHeight = '90px';
var allTables = document.getElementsByTag Name('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.innerH TML;
sirlist.removeChild(sirli st.firstChild);
td = document.createElement('t d');
div = document.createElement('d iv');
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.inde xOf('Mac') == -1)
if ((document.URL.indexOf('w eblogs') == -1) &&
(document.URL.indexOf('gu estbook') == -1) &&
(document.URL.indexOf('ev ents') == -1) &&
(document.URL.indexOf('re views') == -1))
adjustSirListHeight();
</script>
<!-- End Script : Blogring.net -->


<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 = "10px";

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

JiNgLeBeLLz77
01-20-2005, 05:34 AM
try putting it as the *first* code in your website stats =]

DuMm33D0rk33
01-21-2005, 04:20 AM
i tried that, but it still doesnt work. r we supposed to change a size or sumthin?

JiNgLeBeLLz77
01-21-2005, 04:24 AM
your pixels seems like they were too small... try this...

<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 = "200px";

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

DuMm33D0rk33
01-22-2005, 03:09 AM
nooo...that still doesnt work