View Full Version : xanga


rainy__days
07-20-2003, 12:40 AM
there's this one script that alphabetizes the "sites i read" list on your xanga.. i followed the directions, and it still doesn't work.. can somebody help? here's the script:

<script language=javascript>
<!--
// author: Sean F http://www.xanga.com/seanmeister
//
// this script alphabetizes the Sites I Read list on a
// Xanga user's home page
// copy and paste the code into the Website Stats section
// of the Xanga Look & Feel page
//
function sortsir(sir1, sir2){
return sir1[1] < sir2[1] ? -1 : sir1[1] == sir2[1] ? 0 : 1;
}
var sirpage = 0;
if (document.getElementById("sir")){
sirlist = document.getElementById("sir");
sirpage = 1;
} else {
ths=document.getElementsByTagName("th");
for (var thc=0; thc < ths.length; thc++){
if (ths[thc].innerHTML.toLowerCase() == "<b>sites i read</b>") {
sirlist = ths[thc].parentNode.nextSibling;
sirpage = 1;
break;
}
}
}
if (sirpage == 1){
sirsites = sirlist.getElementsByTagName("a");
newsir = new Array();
for (numsir = 0; numsir < sirsites.length; numsir++) {
if (sirsites[numsir].href.toLowerCase().indexOf("subscriptions") == -1 && sirsites[numsir].href.toLowerCase().indexOf("formpost") == -1) {
newsir[newsir.length] = [sirsites[numsir].innerHTML, sirsites[numsir].innerHTML.toUpperCase(), sirsites[numsir].href];
newsir[newsir.length] = [sirsites[numsir].innerHTML, " " + sirsites[numsir].innerHTML.toUpperCase(), sirsites[numsir].href];
}
}
newsir.sort(sortsir);
var sc = 0;
for (numsir = 0; numsir < sirsites.length; numsir++) {
if (sirsites[numsir].href.toLowerCase().indexOf("subscriptions") == -1 && sirsites[numsir].href.toLowerCase().indexOf("formpost") == -1) {
sirsites[numsir].innerHTML = newsir[sc][0];
sirsites[numsir].href = newsir[sc][2];
sc++;
}
}}
//-->
</script>

Sum1YouDontKno
07-20-2003, 06:24 AM
i have the same script on my xanga and it werks perfectly fine, some of my friends noticed it didnt work if you put it as like.. 4th on your website stats, try putting it as second or first. Did you forget to put in the basic html stuff?

cloudfaeri
07-21-2003, 10:14 PM
oo i haf that same script too buh like..wen i do it, it also alphabatizes the "Subscribe to dreamin_of_yooh" part and the "get trial subscription part"...is that supposed to happen? cuz i dun want that part to b alphabatized as well..do u noe how to avoid doin that?

zZzashleizZz
07-21-2003, 10:20 PM
that happend to like everyone that uses that one...it wasnt like that yesterday but i saw it today and it was like that....

rainy__days
07-22-2003, 08:49 PM
couldn't sign in for some reason, but yea, after i posted my message up here, I somehow got that script to work.. heheh.. thanx for the help ;]

lilvtdreama
07-23-2003, 11:44 PM
hey evry1 ^_^

i joined just 2 giv ya*ll the answer ~~

ok, i also had da same xanga problem as EACH OF YA*LL...
make sure da following is done:
[1] da alphabetical code is inserted n da "website stats" box ("look nd feel" >> middle of page)
[2] make sure it is AT THE TOP

well... dat*s all i no 4 now ~~
i also changed da sentence "Subscribe to lilvtdreama" nd added a # n front ~~ JUST INCASE it didn*t work (#s should always ^^^ b4 letters but n dis case, i don*t think dat worked....

hope dis has helped u....

.* Jenny *.

swEet lyK sugAh
07-24-2003, 12:10 AM
hey wat up... thea is a new code that qot put out... cuz that 1 dun werk no more.. or w.e. tha code is:

<script language=javascript>
<!--
// author: Sean F http://www.xanga.com/seanmeister
//
// this script alphabetizes the Sites I Read list on a
// Xanga user's home page
// copy and paste the code into the Website Stats section
// of the Xanga Look & Feel page
//
function sortsir(sir1, sir2){
return sir1[1] < sir2[1] ? -1 : sir1[1] == sir2[1] ? 0 : 1;
}
var sirpage = 0;
if (document.getElementById("sir")){
sirlist = document.getElementById("sir");
sirpage = 1;
} else {
ths=document.getElementsByTagName("th");
for (var thc=0; thc < ths.length; thc++){
if (ths[thc].innerHTML.toLowerCase() == "<b>sites i read</b>") {
sirlist = ths[thc].parentNode.nextSibling;
sirpage = 1;
break;
}
}
}
if (sirpage == 1){
sirsites = sirlist.getElementsByTagName("a");
newsir = new Array();
for (numsir = 0; numsir < sirsites.length; numsir++) {
if (sirsites[numsir].href.toLowerCase().indexOf("subscri") == -1 && sirsites[numsir].href.toLowerCase().indexOf("formpost") == -1) {
newsir[newsir.length] = [sirsites[numsir].innerHTML, sirsites[numsir].innerHTML.toUpperCase(), sirsites[numsir].href];
newsir[newsir.length] = [sirsites[numsir].innerHTML, " " + sirsites[numsir].innerHTML.toUpperCase(), sirsites[numsir].href];
}
}
newsir.sort(sortsir);
var sc = 0;
for (numsir = 0; numsir < sirsites.length; numsir++) {
if (sirsites[numsir].href.toLowerCase().indexOf("subscri") == -1 && sirsites[numsir].href.toLowerCase().indexOf("formpost") == -1) {
sirsites[numsir].innerHTML = newsir[sc][0];
sirsites[numsir].href = newsir[sc][2];
sc++;
}
}}
//-->
</script>


or tha 1 that u have werks still.... i dunno

cloudfaeri
07-24-2003, 03:44 AM
aite thx u guys

strawbelly
07-24-2003, 04:08 AM
heeyz~ ii tried out sum scripts on dat.. n da 1 on da top seem 2 work 4 me .. n yea.. u hv 2 place it @ da top like..lilvtdreama said... hehe ^^

lilvtdreama
07-24-2003, 08:20 AM
yay~!!

wow ~~ so glad i can help u guys!! (or sum ppl)