June 19, 2013, 08:18:14 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
3 Hours
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Members: 6695 • Posts: 181366 • Topics: 18410
Please welcome
KD0RII
, our newest member.
Welcome to the the new hosting for WXforum.net.
Home
Help
Search
Login
Register
WXforum.net
>
Weather Software
>
Virtual Weather Station by Ambient
(Moderators:
SLOweather
,
racenet
,
Anthony
) > Topic:
Can the day of the week name be expanded?
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: Can the day of the week name be expanded? (Read 643 times)
0 Members and 1 Guest are viewing this topic.
dan43
Member
Offline
Posts: 7
Can the day of the week name be expanded?
«
on:
March 26, 2010, 02:38:18 PM »
Hi there, I'm doing an experimental weather page for my Oregon Scientific WMR928 unit, and I've just put together a scrolling weather marquee on my page to print out how you would hear the current weather on a weather radio station, just for fun. However, when it comes to displaying the 5-day forecast, each day is displaying as "Sun" for Sunday "Mon" for Monday, "Tue" for Tuesday and so on... is there a tag that will allow me to display the full name of the day of the week instead of shortforms?
Thanks,
Dan
Logged
Impala88
Senior Member
Offline
Posts: 69
Re: Can the day of the week name be expanded?
«
Reply #1 on:
March 26, 2010, 09:14:21 PM »
I used JavaScript to display the full day of the week name for my 5-day forecast. You can try copying the below referenced tag and insert it into your .htx file in place of the tag. You would have to modify it to suit your needs depending on where you will be using it.
<SCRIPT LANGUAGE="JavaScript">
<!--
var day="^forecast_day1_1^";
if (day=="Sun")
document.write ("Sunday");
//-->
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
<!--
var day="^forecast_day1_1^";
if (day=="Mon")
document.write ("Monday");
//-->
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
<!--
var day="^forecast_day1_1^";
if (day=="Tue")
document.write ("Tuesday");
//-->
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
<!--
var day="^forecast_day1_1^";
if (day=="Wed")
document.write ("Wednesday");
//-->
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
<!--
var day="^forecast_day1_1^";
if (day=="Thu")
document.write ("Thursday");
//-->
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
<!--
var day="^forecast_day1_1^";
if (day=="Fri")
document.write ("Friday");
//-->
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
<!--
var day="^forecast_day1_1^";
if (day=="Sat")
document.write ("Saturday");
//-->
</SCRIPT>
«
Last Edit: March 26, 2010, 09:16:28 PM by Impala88
»
Logged
http://www.irvineweather.net
dan43
Member
Offline
Posts: 7
Re: Can the day of the week name be expanded?
«
Reply #2 on:
April 01, 2010, 11:23:17 AM »
This could work Impala88, thanks very much... I'll see what I can do with it and if everything works out, I'll post the URL where I'm using it.
Cheers,
Dan
Logged
Pages: [
1
]
Go Up
Print
WXforum.net
>
Weather Software
>
Virtual Weather Station by Ambient
(Moderators:
SLOweather
,
racenet
,
Anthony
) > Topic:
Can the day of the week name be expanded?
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Administration
-----------------------------
=> Forum Announcements
=> Featured weather website
=> Bugs/Suggestions
-----------------------------
General Weather/Earth Sciences Topics
-----------------------------
=> Weather Conditions Discussion
=> Lightning
=> Severe Weather
=> Tropical Weather
=> Other Weather Topics
=> Weather in TV & Movies
=> Weather Photography
=> Weather Folklore
=> Earth Sciences
-----------------------------
Weather Station Hardware
-----------------------------
=> Weather Station Pictures
=> What Weather Station Should I Buy?
=> Davis Instruments Weather Stations
=> LaCrosse Technologies/Hyundai
=> Oregon Scientific Hardware
=> AcuRite Weather Stations
=> Ambient Weather Station
=> The WxTech Dream Machine
=> Hydreon RG-11 Optical Rain Gauge/Sensor
=> Rainwise Weather Stations
=> Remote Weather Monitoring
=> WeatherElement Weather Station
=> Boltek/NexStorm Lightning Detectors
=> Other Weather Station Hardware
=> Weather Radios
=> Weather Web Cams
-----------------------------
Weather Software
-----------------------------
=> VP Tools (Virtual VP, VP Live, and VP Tools)
=> Virtual Weather Station by Ambient
===> VWS Beta Testing
===> VWS WeatherFlash
===> ImageSalsa/MovieSalsa
=> WeatherLink by Davis Instruments
=> GRLevel X Software
=> Heavy Weather by LaCrosse Technologies
=> Cumulus
=> Weather Display
=> WUHU software
=> Macintosh Weather Software
=> Other Weather Software
=> Station Software Development
-----------------------------
Web Weather
-----------------------------
=> Personal Weather Station Links
=> Weather Web Cam Links
=> Weather Web Site Help
=> Weather Website PHP/AJAX scripting
===> Custom Website Templates
=> Weather Web Resources
=> Useful Links
-----------------------------
Weather Related Organizations
-----------------------------
=> AWEKAS
=> CWOP Forum
=> CoCoRaHS
=> GLOBE Program
=> SKYWARN
=> WeatherBug
=> WeatherForYou/PWSWeather
=> WeatherUnderground
-----------------------------
Miscellaneous Debris
-----------------------------
=> Tech Corner
=> For Sale/Wanted
===> Tell us a story...
Loading...