I have modified the HTML code supplied by Davis Weatherlink to add a scrolling ticker to my weather web page using an old Javascript that I have been using on my personal web page for years. It has continued to work through numerous iterations of operating systems, browsers, etc. It took a little tweaking, and I found that I could not get it to consistently display the 'units' variables properly, so I hard coded them.
I found that the degree symbol would not display properly even on the normal web page, so I substituted ° in HTML code to fix that.
I get no Java warning messages for this imbedded code on my page.
You can see my ticker in action at:
http://home.roadrunner.com/~farrellsrv/WeatherUse the Right-Click 'View Page Source' function to see how I removed the old Script and substituted with the Javascript.
The ticker was implemented with the following code:
<BODY background="mapp11111.gif" onload=startScroller(); bgProperties=fixed>
<-- Added the 'onload' statement<!--Scrolling Banner Section -->
<SCRIPT language=JavaScript>
<!--
// You may edit the message within the
// quotation marks.
var msg = " This Month's Highs & Lows: High Temp. <!--hiMonthlyOutsideTemp--> F Low Temp. <!--lowMonthlyOutsideTemp--> F High Humidity <!--hiMonthlyHumidity--> % Low Humidity <!--lowMonthlyHumidity--> % High Barometer <!--hiMonthlyBarometer--> In Low Barometer <!--lowMonthlyBarometer--> In High Wind Speed <!--hiMonthlyWindSpeed--> Mph ";
function startScroller()
{
document.scrollForm.scrolling_message.value = msg
msg = msg.substring(1, msg.length) + msg.substring(0, 1)
// This editable setting dictates how quickly
// each character moves across the scroll box
// (ex. 150=.15 seconds).
setTimeout("startScroller()", 400)
}
//-->
</SCRIPT>
</HEAD>
<!--Place this script in the BODY section.-->
<FORM action="" method=post name=scrollForm>
<P><!--This editable value is the size of the text box. -->
<INPUT name=scrolling_message size=120> </FORM>
<!--Replace the BODY tag with the following--></P>
<P> </P>
<!-- End Scrolling Banner -->
I'm sure there are better and more efficient ways to do this, but I went with what has worked for me since the Windows 98 days!
Enjoy!
Bob (Fairview-WX)