Log In · Register

 
The Xanga blocker code
supadeja
post May 20 2005, 01:51 AM
Post #1


Newbie
*

Group: Member
Posts: 2
Joined: May 2005
Member No: 141,307



IGNORE OR DELETE PLEASE - I GOT IT TO WORK


I have it and put it into website stats - and it comes up with the pop up box but does NOT redirect once the pop up is clicked - can someone please tell me what bit makes it not work? Many thanks.

Code below...

<!-- begin code provided by createblog.com -->
<!-- Part II of Block Users Script submitted by xanga.com/sherrys_designs -->
<script language="javascript">
function getXName() {
for (var i = 0; i < document.links.length; i++) {
if (document.links[i].href.substring(0,38)=="http://www.xanga.com/private/home.aspx") {
var link = document.links[i];
var text = document.all ? link.innerText : link.text ? link.text : '';
return text;
break;
}}
return null;
}

xName = getXName();

if (xName == 'USERNAME' || xName == 'USERNAME' || xName == null) {
alert("Sorry, you are either blocked from this site or not logged in.");
redirect();
}

</script>
<!-- end code provided by createblog.com -->


got the code from
http://www.createblog.com/forums/index.php?showtopic=55042

Thank you so much
 
 
Start new topic
Replies
sherryvu
post May 20 2005, 02:15 PM
Post #2


Senior Member
*******

Group: Member
Posts: 3,826
Joined: Jan 2004
Member No: 2,330



QUOTE(supadeja @ May 20 2005, 1:51 AM)
IGNORE OR DELETE PLEASE - I GOT IT TO WORK
*

[ closed ]
 

Posts in this topic
supadeja   The Xanga blocker code   May 20 2005, 01:51 AM
Sherry_Vu   QUOTE(supadeja @ May 20 2005, 1:51 AM)IGNORE ...   May 20 2005, 02:15 PM


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