PuRpLeIsH_DrEaM
07-16-2004, 10:26 PM
does anyone have the code to make only one entry show up on xanga???thankey!!!! :)
|
View Full Version : help! - one entry on a page? PuRpLeIsH_DrEaM 07-16-2004, 10:26 PM does anyone have the code to make only one entry show up on xanga???thankey!!!! :) JiNgLeBeLLz77 07-17-2004, 03:19 PM here it is =] <script> // By: Paul Chen (coyote) // Blogring.net numberOfEntries = 1; //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.paren tNode; 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> |