Enter page Script, I need help!!! |
Enter page Script, I need help!!! |
![]()
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 --> |
|
|
![]() |
![]()
Post
#2
|
|
![]() the bird and the bee sides! ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 1,697 Joined: Aug 2005 Member No: 201,280 ![]() |
hmm...it works for me. you're only using one picture right? not random images, like the code shows. i think you should delete "myimages[2]='http://www.xangaskins.com/modules/02/images/02.jpg';" and all the rest of the options (i think it goes up to 5 images). it worked when i deleted the extra picture options. let me know what happens.
![]() |
|
|
![]() ![]() |