Go Back   Cyber Tech Help Support Forums > Software > Web Development & Graphic Design

Notices

Web Development & Graphic Design Problem Solving for Graphic Design, PHP, ASP, Perl, MySQL, SQL, XML, HTML issues

Reply
 
Topic Tools
  #1  
Old October 1st, 2005, 12:50 AM
DJoe's Avatar
DJoe DJoe is offline
Registered User
 
Join Date: Dec 2004
Location: Province Manitoba, Canada
Age: 37
Posts: 1,348
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"
Reply With Quote
  #2  
Old October 1st, 2005, 02:21 AM
degsy's Avatar
degsy degsy is offline
Cyber Tech Help Moderator
 
Join Date: Jul 2001
Location: North-East, UK
Posts: 22,475
You can do it with Javascript or Serverside scripting such as PHP or ASP.

I will get an example script for you
Reply With Quote
  #3  
Old October 1st, 2005, 03:26 AM
Harrie's Avatar
Harrie Harrie is offline
CTH Subscriber
 
Join Date: Sep 2000
O/S: Linux
Location: USA
Posts: 3,603
I'm looking forward to seeing this!
Reply With Quote
  #4  
Old October 1st, 2005, 01:26 PM
degsy's Avatar
degsy degsy is offline
Cyber Tech Help Moderator
 
Join Date: Jul 2001
Location: North-East, UK
Posts: 22,475
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>
Reply With Quote
  #5  
Old October 2nd, 2005, 07:23 PM
DJoe's Avatar
DJoe DJoe is offline
Registered User
 
Join Date: Dec 2004
Location: Province Manitoba, Canada
Age: 37
Posts: 1,348
Is there a way to make it so, the window that pops-up is at a different size & have the menubars & other bars disappeared.
Reply With Quote
  #6  
Old October 2nd, 2005, 07:26 PM
degsy's Avatar
degsy degsy is offline
Cyber Tech Help Moderator
 
Join Date: Jul 2001
Location: North-East, UK
Posts: 22,475
http://msdn.microsoft.com/library/de...ods/open_0.asp
Reply With Quote
  #7  
Old October 2nd, 2005, 09:21 PM
DJoe's Avatar
DJoe DJoe is offline
Registered User
 
Join Date: Dec 2004
Location: Province Manitoba, Canada
Age: 37
Posts: 1,348
I couldn't get it to work?
Reply With Quote
  #8  
Old October 2nd, 2005, 09:27 PM
degsy's Avatar
degsy degsy is offline
Cyber Tech Help Moderator
 
Join Date: Jul 2001
Location: North-East, UK
Posts: 22,475
Couldn't get what to work?
Reply With Quote
Reply

Bookmarks


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Topics
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.