3Talks 港人自講討論區 » Xanga & MSN Space 部落格專區 » 【xanga】Subscriptions Scrollbar


2006-8-17 11:31 PM [kae′]
【xanga】Subscriptions Scrollbar

<!-- 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.innerHTML.indexOf('Sites I Read') != -1) &&
            (allTables.innerHTML.toUpperCase().indexOf('<TABLE') == -1))
        {
            sirlist = allTables.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 -->

[[i] 本帖最後由 [kae′] 於 2006-8-17 11:33 PM 編輯 [/i]]

頁: [1]


Powered by Discuz! Archiver 5.5.0  © 2001-2006 Comsenz Inc.