Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Can someone help me to build this script?
Old 02-23-2007, 07:46 AM Can someone help me to build this script?
Junior Talker

Posts: 1
Name: Patrick Scott
Trades: 0
I have been busy for a number of months to set up my first "real" website, and i am actually looking for help on creating one little bit of javascript. I would like to send my site visitors to a different 'welcome page' on special hollidays, for example a special Christmas page, or New Year page and so on. I have tried to build such a script myself but i can't seem to get it right. I was hoping that one of you might be able to help me out... Thanks a lot!
USCworld is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-26-2007, 04:54 AM Re: Can someone help me to build this script?
jito's Avatar
MY LIFE IS 'i' LIFE

Posts: 565
Name: surajit ray
Location: inside the heart of my friends
Trades: 0
Let's see what you have tried so far. Tell exactly what is the problem you have and post your code.
__________________
I am not smart, that's why i don't act smart


Please login or register to view this content. Registration is FREE
jito is offline
Reply With Quote
View Public Profile
 
Old 03-03-2007, 06:05 AM Re: Can someone help me to build this script?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
This is a very simple script that will do Christmas day
Code:
var ThisDate = new Date()
var host = "http://" + window.location.host 
//getMonth returns 0 to 11 
if (ThisDate.getDate() == 25 && ThisDate.getMonth() == 11) {
	window.location = host + "/xmas.asp"
	}
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Can someone help me to build this script?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.17476 seconds with 12 queries