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 ![]() |
if you could provide some screenshots of the whole code for me, (you probably will have to take several for me to see all parts of the code) that would be helpful, so i can see if there's any problems by comparing it to mine.
[screenshots; press Prnt Scrn > open Paint > press Ctrl V / Paste > Save > upload to an image host like imageshack.us or tinypic.com] thanks. ediiiit. i was looking at the original script you posted and i noticed that you didn't place a URL to the image you want on the splash page. you know where it says 'PLACE URL HERE'? that's where you're supposed to put the URL of the picture you want. i don't know if you just took it out, or you forgot to put the URL. either that, or the code could just be messed up. ...well, just a side note. |
|
|
![]() ![]() |