Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Directory Submission Service   ClickBooth Network   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 07-27-2004, 01:54 AM   #1 (permalink)
Inactive
 
edbarton's Avatar
 
Join Date: 10-13-03
Location: England
Posts: 2,781
iTrader: 0 / 0%
Latest Blog:
None

edbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really nice
Need a script to make certain pages load up randomly

I want to be able to have a number of index pages, and these should load randomly from the main index.htm page. I will probably have about 5 different index pages, probably named index1.htm index2.htm etc.

I am hoping this could be done with javascript reasonably easily. Any ideas?

edbarton is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 07-27-2004, 06:18 AM   #2 (permalink)
v7n Mentor
 
imaginemn's Avatar
 
Join Date: 02-18-04
Location: Minneapolis, Minnesota
Posts: 1,940
iTrader: 0 / 0%
imaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to all
Send a message via MSN to imaginemn Send a message via Yahoo to imaginemn Send a message via Skype™ to imaginemn
Try the following.

[code:1:bd2ce0f092]<SCRIPT LANGUAGE="JAVASCRIPT">
<!--

var r_text = new Array ();
r_text[0] = "http://www.aol.com";
r_text[1] = "http://www.msn.com";
r_text[2] = "http://www.yahoo.com";
r_text[3] = "http://www.google.com";
r_text[4] = "http://www.altavista.com";
r_text[5] = "http://www.imaginemn.com";
r_text[6] = "http://www.adobe.com";

var i = Math.round(6*Math.random());
url = r_text[i]
window.location.href=url;

//-->
</SCRIPT>[/code:1:bd2ce0f092]

imaginemn
__________________
Need a project done? - Set Your Own Price!
Imagine Creative Services
- Design : Marketing : Multimedia : More
imaginemn is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-27-2004, 06:36 AM   #3 (permalink)
Inactive
 
Leader of Men's Avatar
 
Join Date: 10-12-03
Location: Minnesota, USA
Posts: 2,207
iTrader: 0 / 0%
Latest Blog:
None

Leader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really nice
Send a message via AIM to Leader of Men Send a message via MSN to Leader of Men Send a message via Yahoo to Leader of Men
Oops, screwed that up, give me a little while to wake up
Leader of Men is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-27-2004, 10:33 AM   #4 (permalink)
Inactive
 
edbarton's Avatar
 
Join Date: 10-13-03
Location: England
Posts: 2,781
iTrader: 0 / 0%
Latest Blog:
None

edbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really nice
imaginemn it worked perfectly. Thanks
edbarton is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-28-2004, 04:18 AM   #5 (permalink)
Inactive
 
edbarton's Avatar
 
Join Date: 10-13-03
Location: England
Posts: 2,781
iTrader: 0 / 0%
Latest Blog:
None

edbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really nice
That worked fine, but one problem with this, and I realise this question is better suited to the seo forum, but it ties in with this topic.

When it redirects on that page how will the search engines treat it, surely the PR won't be the same on the main page index.htm and then all the sub pages?
edbarton is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Action script 3 load swf Alexandro Coding Forum 0 01-18-2008 02:41 AM
How do you make an external HTML file load into a slice in Fireworks? ChetG Web Design Lobby 8 09-05-2007 02:51 PM
Pages taking forever to load up G10 Computers & Internet 7 08-06-2007 11:08 AM
script to load images and js after the page loads ?? JoeWall Coding Forum 13 08-18-2006 10:45 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 03:30 PM.
© Copyright 2008 V7 Inc

Click Here