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>
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>