Log In · Register

 
adding music and the no. of entries shown..
nobi
post Mar 1 2005, 08:51 AM
Post #1


Newbie
*

Group: Member
Posts: 8
Joined: Jan 2005
Member No: 79,293



i want to add music
at http://www.xanga.com/home.aspx?user=XaNgA_MuSiC
i copied the link and puts it in my xanga
but it doesn't work? or is it the problem of my own computer?

and also i'd like to ask may i change the total number of entries shown to the public? like 5 or 10?

thank you :)
 
 
Start new topic
Replies
nobi
post Mar 1 2005, 11:31 PM
Post #2


Newbie
*

Group: Member
Posts: 8
Joined: Jan 2005
Member No: 79,293



oh i got the music playing now...hahaha thanks a lot :)

the code is this.. suppose i'd like to show 6 entries.
i just change the number in the first line..

<script>
numberOfEntries = 6; //Change this value here...
if(location.pathname=='/home.aspx'){
var tds = document.getElementsByTagName ('a');
for (var i = 0; i < tds.length; i++) {
timeString = tds[i].innerText;
if(timeString.match(/\d+:\d+ [ap]m\b/i)){break;}
}
stuff = tds[i].parentNode.parentNode.parentNode.parentNode.parentNode;
for(j=1;j<numberOfEntries;j++){
stuff=stuff.nextSibling.nextSibling.nextSibling
if(stuff.tagName=='BR'){
stuff=stuff.previousSibling;
}
}
for(i=0;i<20;i++){
if(stuff.tagName=='HR' && stuff.nextSibling.tagName=='TABLE')
{
stuff.nextSibling.removeNode(true);
break;
}
stuff = stuff.nextSibling;
stuff.style.display='none';
}}
</script>
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: