|
Web Development & Graphic Design Problem Solving for Graphic Design, PHP, ASP, Perl, MySQL, SQL, XML, HTML issues |
![]() |
|
Topic Tools |
#1
|
||||
|
||||
link opens pop-up window
Is there a javascript, that when you press link the different sites open in new window depending on the "day of the week"
|
#2
|
||||
|
||||
You can do it with Javascript or Serverside scripting such as PHP or ASP.
I will get an example script for you |
#3
|
||||
|
||||
I'm looking forward to seeing this!
|
#4
|
||||
|
||||
This was quickly done, but should work
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script type="text/javascript"> function dailyLink(){ var d=new Date() var dLink=new Array(7) dLink[0]="http://yahoo.com" // Sunday dLink[1]="http://lycos.com" // Monday dLink[2]="http://micosoft.com" // Tuesday dLink[3]="http://mozilla.org" // Wednesday dLink[4]="http://www.cybertechhelp.com" // Thursday dLink[5]="http://www.w3schools.com" // Friday dLink[6]="http://www.google.com" // Saturday window.open(dLink[d.getDay()],"popup") } </script> </head> <body> <a href="javascript:dailyLink()">Daily Link</a> </body> </html> |
#5
|
||||
|
||||
Is there a way to make it so, the window that pops-up is at a different size & have the menubars & other bars disappeared.
|
#6
|
||||
|
||||
#7
|
||||
|
||||
I couldn't get it to work?
|
#8
|
||||
|
||||
Couldn't get what to work?
|
![]() |
Bookmarks |
«
Previous Topic
|
Next Topic
»
|
|
![]() |
||||
Topic | Topic Starter | Forum | Replies | Last Post |
click a link on a webpage and an incorrect tab opens | gaesilva | Malware Removal | 27 | February 24th, 2021 08:23 PM |
Drive opens in new window | terry12 | Windows XP | 1 | December 8th, 2007 02:46 PM |
Link that opens on a new page? | The Rev | Web Development & Graphic Design | 2 | May 29th, 2006 09:43 PM |
Window Opens In Background | mesmith322 | Windows XP | 0 | December 21st, 2005 04:40 PM |
Click on MP3 link, file opens in same browser window w/MediaPlayer,but file doesnt DL | wh00t | Windows 98 | 4 | March 6th, 2002 04:55 AM |
All times are GMT +1. The time now is 07:24 AM.