Code for the splash page? |
Code for the splash page? |
Aug 29 2006, 05:08 PM
Post
#1
|
|
|
~Phoebe~ ![]() ![]() ![]() ![]() Group: Member Posts: 118 Joined: Apr 2005 Member No: 130,046 |
Do you know the code for a splash page?? Thanks!
|
|
|
|
![]() |
| *mona lisa* |
Aug 29 2006, 05:16 PM
Post
#2
|
|
Guest |
Here you go:
CODE <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 = 'YOUR IMAGE 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> |
|
|
|
Aug 29 2006, 05:25 PM
Post
#3
|
|
|
~Phoebe~ ![]() ![]() ![]() ![]() Group: Member Posts: 118 Joined: Apr 2005 Member No: 130,046 |
Alright - Thanks! Percisely what I was looking for!
|
|
|
|
| *digital.fragrance* |
Aug 29 2006, 05:31 PM
Post
#4
|
|
Guest |
Good Job Mona!
Topic Re-opened |
|
|
|
Aug 29 2006, 06:27 PM
Post
#5
|
|
|
~Phoebe~ ![]() ![]() ![]() ![]() Group: Member Posts: 118 Joined: Apr 2005 Member No: 130,046 |
Ok, once I tried that in the site it didn't work!! Any thoughts???
|
|
|
|
| *digital.fragrance* |
Aug 29 2006, 06:59 PM
Post
#6
|
|
Guest |
Did you insert the correct image URL where it says to in the code?
|
|
|
|
Aug 31 2006, 02:00 PM
Post
#7
|
|
|
~Phoebe~ ![]() ![]() ![]() ![]() Group: Member Posts: 118 Joined: Apr 2005 Member No: 130,046 |
Alright.... I got the image to go up, but now I can't click into my page! Hmmmm... Here's the code
CODE <script type='text/javascript'> And the site I put it on is Here
// 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= "http://i8.photobucket.com/albums/a30/lovelymissphoebe/London22.jpg"; 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> |
|
|
|
| *digital.fragrance* |
Aug 31 2006, 02:05 PM
Post
#8
|
|
Guest |
The 'Xanga Site' in the code needs to be replace with the URL of your site: 'http://www.xanga.com/lovelymissphoebe'
|
|
|
|
Sep 2 2006, 01:03 AM
Post
#9
|
|
|
~Phoebe~ ![]() ![]() ![]() ![]() Group: Member Posts: 118 Joined: Apr 2005 Member No: 130,046 |
Ohhh! Superman<3
Alright, I did add my adress (Duh! I must be blind), and it doesn't seem to be working properly CODE <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= "http://i8.photobucket.com/albums/a30/lovelymissphoebe/London22.jpg"; 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) == 'http://www.xanga.com/lovelymissphoebe') { 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> Any thoughts? I'm completely lost - Could it be where it says enterSite () ?? |
|
|
|
| *digital.fragrance* |
Sep 3 2006, 11:57 AM
Post
#10
|
|
Guest |
There is another '+ image +' - I think you need to put hte image URL there...
Also right before the enterSite() there is a an <a href="#" .... place your site URL in the quotes where the # is |
|
|
|
Sep 3 2006, 01:10 PM
Post
#11
|
|
|
~Phoebe~ ![]() ![]() ![]() ![]() Group: Member Posts: 118 Joined: Apr 2005 Member No: 130,046 |
CODE <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= "http://i8.photobucket.com/albums/a30/lovelymissphoebe/London22.jpg"; 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) == "http://www.xanga.com/lovelymissphoebe") { 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="http://www.xanga.com/lovelymissphoebe" onclick="return enterSite();"><img src="http://i8.photobucket.com/albums/a30/lovelymissphoebe/London22.jpg" border="0" class="image"></a></td></tr></table><center><span>'); } </script> Alright, There is the code now. Sorry, but it's still not quite working |
|
|
|
| *digital.fragrance* |
Sep 3 2006, 07:03 PM
Post
#12
|
|
Guest |
Man........
I'm going to go scavenger hunting for a different one. CODE <!-- begin code provided by createblog.com --> <script type='text/javascript'> //Random Intro Splash Page by Mystical for Createblog.com //Modified Intro Splash script by Micron 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') { var myimages=new Array() //specify random images below. You can have as many as you wish myimages[1]='http://www.xangaskins.com/modules/02/images/01.jpg'; myimages[2]='http://www.xangaskins.com/modules/02/images/02.jpg'; myimages[3]='http://www.xangaskins.com/modules/02/images/03.jpg'; myimages[4]='http://www.xangaskins.com/modules/02/images/04.jpg'; myimages[5]='http://www.xangaskins.com/modules/02/images/05.jpg'; var ry=Math.floor(Math.random()*myimages.length) if (ry==0) ry=1 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="'+myimages[ry]+'" border="0" class="image"></a></td></tr></table><center><span>'); } </script> <!-- end code provided by createblog.com --> Just replace all of the image options with the same URL... try editting the least possible options... |
|
|
|
Sep 5 2006, 10:29 PM
Post
#13
|
|
|
~Phoebe~ ![]() ![]() ![]() ![]() Group: Member Posts: 118 Joined: Apr 2005 Member No: 130,046 |
Alright, I'm really sorry, I didn't know it would be this difficult
CODE <!-- begin code provided by createblog.com --> <script type='text/javascript'> //Random Intro Splash Page by Mystical for Createblog.com //Modified Intro Splash script by Micron 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) == "http://www.xanga.com/lovelymissphoebe") { var myimages=new Array() //specify random images below. You can have as many as you wish myimages[1]="http://i8.photobucket.com/albums/a30/lovelymissphoebe/London22.jpg"; myimages[2]="http://i8.photobucket.com/albums/a30/lovelymissphoebe/London22.jpg"; myimages[3]="http://i8.photobucket.com/albums/a30/lovelymissphoebe/London22.jpg"; myimages[4]="http://i8.photobucket.com/albums/a30/lovelymissphoebe/London22.jpg"; myimages[5]="http://i8.photobucket.com/albums/a30/lovelymissphoebe/London22.jpg"; var ry=Math.floor(Math.random()*myimages.length) if (ry==0) ry=1 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="http://www.xanga.com/lovelymissphoebe" onclick="return enterSite();"><img src="'+myimages[ry]+'" border="0" class="http://i8.photobucket.com/albums/a30/lovelymissphoebe/London22.jpg"></a></td></tr></table><center><span>'); } </script> <!-- end code provided by createblog.com --> Where it says <ahref="" Was I supposed to put the url to my page? |
|
|
|
| *digital.fragrance* |
Sep 5 2006, 10:29 PM
Post
#14
|
|
Guest |
Man, now I'm confused....
I'll try to find another one. edit: and I can't. If you run across a website with a working splash page, PM me. |
|
|
|
Sep 5 2006, 10:41 PM
Post
#15
|
|
|
~Phoebe~ ![]() ![]() ![]() ![]() Group: Member Posts: 118 Joined: Apr 2005 Member No: 130,046 |
I will, and thanks for your help and patience =D
|
|
|
|
| *digital.fragrance* |
Sep 7 2006, 03:04 PM
Post
#16
|
|
Guest |
I got your PM - glad you figured it out
Topic Closed |
|
|
|
![]() ![]() |