2006-8-17 11:32 PM
[kae′]
【xanga】replace subscription list names
<!-- begin code provided by createblog.com -->
<script language="javascript">
<!--
var links = document.getElementsByTagName ('a');
for (var l = 0; l < links.length; l++) {
str = links[l].innerHTML;
//blogring.document.write
if (str.match (/\d+:\d+ (am|pm)/i)) links[l]
else if (str.match (/eprops/i)) links[l].innerHTML = str.replace (/eprops/i, "cents");
else if (str.match (/eprop/i)) links[l].innerHTML = str.replace (/eprop/i, "cent");
else if (str.match (/comments/i)) links[l].innerHTML = str.replace (/comments/i, "dollar");
else if (str.match (/comment/i)) links[l].innerHTML = str.replace (/comment/i, "dollars");
else if (str.match (/subscribe!/i)) links[l].innerHTML = str.replace (/subscribe!/i, "add me");
else if (str.match (/sign out/i)) links[l].innerHTML = str.replace (/sign out/i, "log out");
else if (str.match (/XANGA USUERNAME/i)) links[l].innerHTML = str.replace (/XANGA USERNAME/i, "WHAT TO BE CHANGED TO");
else if (str.match (/XANGA USERNAME/i)) links[l].innerHTML = str.replace (/XANGA USERNAME/i, "WHAT TO BE CHANGED TO");
else if (str.match (/XANGA USERNAME/i)) links[l].innerHTML = str.replace (/XANGA USERNAME/i, "WHAT TO BE CHANGED TO");
else if (str.match (/XANGA USERNAME/i)) links[l].innerHTML = str.replace (/XANGA USERNAME/i, "WHAT TO BE CHANGED TO");
else if (str.match (/XANGA USERNAME/i)) links[l].innerHTML = str.replace (/XANGA USERNAME/i, "WHAT TO BE CHANGED TO");
else if (str.match (/XANGA USERNAME/i)) links[l].innerHTML = str.replace (/XANGA USERNAME/i, "WHAT TO BE CHANGED TO");
else if (str.match (/XANGA USERNAME/i)) links[l].innerHTML = str.replace (/XANGA USERNAME/i, "WHAT TO BE CHANGED TO");
else if (str.match (/XANGA USERNAME/i)) links[l].innerHTML = str.replace (/XANGA USERNAME/i, "WHAT TO BE CHANGED TO");
}//-->
</script>
<script type="text/javascript">
function adjustSirListHeight()
{
// *** define the height of your SIR-list in the line below
var sirListHeight = '230px';
var allTables = document.getElementsByTagName('tbody');
for (i=4; i < allTables.length; ++i)
{
if ((allTables.innerHTML.indexOf('SubscribeTo.aspx') != -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 = '150px';
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:34 PM 編輯 [/i]]