Reply
Could someone help here?
Old 11-26-2005, 09:29 PM Could someone help here?
Brian07002's Avatar
Super Spam Talker

Posts: 804
Name: Brian
Location: United States
Could someone convert this asp code to javascript for me?

Code:
http://www.sru.edu/pages/2388.asp
Thank you.
-Brian
Brian07002 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 11-26-2005, 10:17 PM
chrishirst's Avatar
Super Moderator

Latest Blog Post:
Am I impressed or what?
Posts: 14,845
Location: Blackpool. UK
Code:
function setSeason() {
var Season
var currDate = new Date();
var month= currDate.getMonth();
if (month < 3) {
	Season = "winter";
} else if (month < 6) {
	Season = "spring";
} else if (month < 9) {
	Season = "winter";
} else {
	Season = "fall";
	}
return Season;
}
function setSeasonImage() {
document.images.imgseason.src = "/imagespath/" + setSeason
document.images.imgseason.alt =  setSeason + " Image"
}
to use on page
Code:
<body onLoad="setSeasonImage()">
and
Code:
<img name="imgseason" src="blank.gif" alt="">
Not fully tested. BTW
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-26-2005, 10:44 PM
Brian07002's Avatar
Super Spam Talker

Posts: 804
Name: Brian
Location: United States
Thank you!

I am going to test now...Would you count on it working if the script loads the initial image? I don't really feel like waiting a couple of months to reply back to tell you the next image loaded.

-Brian
Brian07002 is offline
Reply With Quote
View Public Profile
 
Old 11-27-2005, 06:17 AM
chrishirst's Avatar
Super Moderator

Latest Blog Post:
Am I impressed or what?
Posts: 14,845
Location: Blackpool. UK
Naah! It's easy to test.

It's javascript so works on the client clock, just set your date to whichever month you want to test.
I didn't test 'cos it was almost 3 am
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-29-2005, 06:18 AM
ibbo's Avatar
Super Spam Talker

Posts: 880
Location: Leeds UK
3am you geek

I can think of much better things to be doing at that time mate.

Ibbo
__________________
www.nationalclubgolfer.com www.sportspub.co.uk www.bespokecc.co.uk www.centralmarquees.co.uk
Linux user #349545 :
(GNU/Linux)iD8DBQBAzWjX+MZAIjBWXGURAmflAKCntuBbuKCWenpm XoA7LNydllVQOwCf
ibbo is offline
Reply With Quote
View Public Profile Visit ibbo's homepage!
 
Old 11-29-2005, 07:00 AM
chrishirst's Avatar
Super Moderator

Latest Blog Post:
Am I impressed or what?
Posts: 14,845
Location: Blackpool. UK
So could I

problem was, 3am for me was only 9pm for the client. Sometimes you have to suffer for the sake of art
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-29-2005, 07:13 AM
ibbo's Avatar
Super Spam Talker

Posts: 880
Location: Leeds UK
Sometimes you have to suffer for the sake of art

I like it, dedication

Ibbo
__________________
www.nationalclubgolfer.com www.sportspub.co.uk www.bespokecc.co.uk www.centralmarquees.co.uk
Linux user #349545 :
(GNU/Linux)iD8DBQBAzWjX+MZAIjBWXGURAmflAKCntuBbuKCWenpm XoA7LNydllVQOwCf
ibbo is offline
Reply With Quote
View Public Profile Visit ibbo's homepage!
 
Reply     « Reply to Could someone help here?
 

Thread Tools

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 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.13964 seconds with 12 queries