Log In · Register

 
Enter page Script, I need help!!!
angelsfall
post Jul 28 2006, 02:25 PM
Post #1


Newbie
*

Group: Member
Posts: 7
Joined: Jul 2006
Member No: 445,399



I want to have an image that you can press to enter the xanga page, but I can't manage the script! Can someone give me the code?
I have this script, but it won't work:

<!-- begin code provided by createblog.com -->
<script type='text/javascript'>
// intro splash page by micron
// for more xanga scripts and help go to createblog.com
// change this url to an image of your choice
var image = 'PLACE URL HERE';
function enterSite() {
document.getElementById('splash').style.display = 'none';
var content = document.getElementsByTagName("center");
for (var i=0; i<content.length;i++) {
content[i].style.display = 'block';
}
return false;
}
if (document.title.slice(-10) == 'Xanga Site') {
document.write('</span></center><style type="text/css"> center {display:none;} .image {border:1px solid #dcdcdc;} </style><table height="100%" width="100%" id="splash"><tr><td align="center" valign="middle" style="text-align:center !important;"><a href="#" onclick="return enterSite();"><img src="'+ image +'" border="0" class="image"></a></td></tr></table><center><span>');
}
</script>
<!-- end code provided by createblog.com -->
 

Posts in this topic


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