QUOTE(lilphoenix @ Jan 3 2006, 11:14 AM)
Orignal ScriptDid you remember to...
• replace all USERNAME w/ your own?
• copy & paste the script in the correct spot?
Yes, I did. But It's still not work.
Maybe I show u my script:
(Header)
<!-- begin code provided by createblog.com -->
<!-- Part I of Block Users Script submitted by xanga.com/sherrys_designs -->
<script LANGUAGE="JavaScript">
function redirect () {
location.href = 'http://www.xanga.com/signin.aspx';
}
</SCRIPT>
<!-- end code provided by createblog.com -->
(Webstatus)
<!-- 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 == 'null' || xName == 'null' || xName == null) {
alert("Sorry, you are either blocked from this site or not logged in.");
redirect(='http://www.xanga.com/signin.aspx');
}
</script>
<!-- end code provided by createblog.com -->