home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

random redirect script

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2763
Discussions: 200,999, Posts: 2,380,021, Members: 246,369
Old October 7th, 2002, 08:18 PM   Digg it!   #1 (permalink)
is 4 f00t secks
 
sixf00t4's Avatar
 
Join Date: Aug 2002
Location: Da Burgh
Posts: 4,587
Blog Entries: 3
random redirect script

i have looked on javascript.internet.com and cant find what i am looking for, which is a script that will AUTOMATICALLY (not initiated by a click or anything) redirect to a RANDOM webpage (from a list of like 4). any body?
__________________
Music (4/15/08) - Video (4/15/08) - blog - Legend of Six RPG
sixf00t4 is offline   Reply With Quote
Old October 7th, 2002, 08:31 PM     #2 (permalink)
is 4 f00t secks
 
sixf00t4's Avatar
 
Join Date: Aug 2002
Location: Da Burgh
Posts: 4,587
Blog Entries: 3
cancel that...http://www.castleamber.com/john/cgians.html
sixf00t4 is offline   Reply With Quote
Old October 7th, 2002, 08:37 PM     #3 (permalink)
Senior Member
 
Join Date: Oct 2001
Location: Alberta, Canada
Posts: 563
too damm bad!!!

lol , jk... here's what I came up with, not the best, but seems to work...
Code:
<script language=javascript>

//Variable for random number.
var i; 
//Array for links.
var arLinks = new Array();

//Change links to what you wish... and however many you want*...
// *Just be sure to increment the array element if you add more.
arLinks[0] = "http://www.techimo.com";
arLinks[1] = "http://www.google.ca";
arLinks[2] = "http://www.metacrawler.com";
arLinks[3] = "http://www.crucial.com";

//Create random number, based on number of elements in array.
i = Math.floor( Math.random() * arLinks.length );

//Redirect
window.location = arLinks[i];

</script>
btw, that link is for perl, thought you wanted javascript??


ciao!!
^hyd^ is offline   Reply With Quote
Old June 5th, 2008, 05:47 AM     #4 (permalink)
Junior Member
 
Join Date: Jun 2008
Posts: 1
Exclamation
WOW, can you make a delay ?

WOW, can you make a delay ?

lets say a 15s delay ...
Phoeniz is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (3117)
‘Rogue’ or ‘Rouge’? (10)
Charges against non-tippers dropped.. (22)
Foxconn Blackops x48 MoBo (5)
Nvidia GTX 260 problem (14)
Delete an OS (18)
Laptop with wireless problem. (13)
Wireless Televisions. (12)
CPU fan stops spinning randomly (11)
Regular Build (11)
Point and Shoot Camera Suggestions. (9)
[F@H SPAM 11/16/09] ! 1/2 months to.. (42)
windows vista security holes (19)
windows 7 problem (7)
Recent Discussions
Looking for new motherboard (2)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (42)
add ram to existing (4)
Computer shutting down on its own (6)
EVGA 9800 gtx help with finding a goo.. (13)
"Documents and Settings" fo.. (7)
Delete an OS (18)
Outputing 1080p from my PC to my 720p.. (0)
panasonic dmr ez48veb recorder (0)
Need help getting speakers to work (2)
Nvidia GTX 260 problem (14)
Laptop with wireless problem. (13)
Point and Shoot Camera Suggestions. (9)
Is the PSU I received dead? (16)
FreeAgent drive software not x64 comp.. (1)
Intel 5100 AGN issues fixed yet? (28)
Foxconn Blackops x48 MoBo (5)
Print spooler problem (17)
Q9650 vs. Q9550 (2)
Desktop Calendar Application (2)
soundmon.exe (8)
Jedi Academy Problem (3)
Can a page file be "too big".. (1)
Size after cutting 700Mb file is 2.5 .. (0)
windows vista security holes (19)


All times are GMT -4. The time now is 03:29 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28