cloudy cloudy

Author Topic: Marquee scroller issues  (Read 2160 times)

0 Members and 1 Guest are viewing this topic.

Offline jayman228

  • Posts: 471
  • Portales, NM
    • Portales, NM Weather
Marquee scroller issues
« on: September 19, 2005, 07:32:27 AM »
Hi,

I been having issues with my scroller on my page and I figured Id come here next to see if someone knows how to fix this. Its working the way it should BUT the cool thing about the scroller is suppose to work with the Noaa events (such as change color, font, etc) Its not doing it and I don't know why. For "No Current Advisors" id like a spot to post announcements such as new things added to the site, etc but for warnings, watches, or just short term forcasts I want to just show that event and I don't mind showing the whole event either (the whole NOAA message since its a scroller and all. I haven't seen the scroller change ANY color to any other event, its just been yellow and I'm tired of messing with it. I know more HTML then Java and I tried to break/fix but i had no luck. :-(

I also think Short term forcast is whats messing me up but I'm unsure. I'm in Hobart, IN and im using the INZ001 zone for the Noaa alerts, is that correct? Below is my script but if you want to see it real goto (http://mysite.verizon.net/hobartweather )

<script type="text/javascript">
var warning = "%noaawaringscroll%".toUpperCase();
var width = "708";
var mylocation = "Welcome, You are viewing Hobart, Indiana Weather!";
var link = "noaawarningscrollraw.txt";
var watchcolor = "#FF0000"; <!-- Background color for watches //-->
var watchfont = "#0000FF"; <!-- Font color for watches //-->
var warningcolor = "#990000"; <!-- Background color for warnings //-->
var warningfont = "#FFFFFF"; <!-- Font color for warnings //-->
var defaultcolor = "#F0E68C"; <!-- Default background color //-->
var defaultfont = "#0000FF"; <!-- Default font color //-->
if (warning != "NO CURRENT ADVISORIES") {
   if (warning.indexOf("WATCH") > 0) {
       document.write("<table border='1' cellpadding='2' cellspacing='0' width=" + width + " bgcolor='" +
watchcolor + "'><tr><td><marquee scrolldelay='125' width='" + width + "'><font face='verdana,arial' size='1'
color='" + watchfont + "'>"+ mylocation + " - <b><span style='text-transform: uppercase'>%NOAAEvent%</span></b> ...
<a href='" + link + "'>[Click here for more details]</marquee></font></a></td></tr></table><br>");
   }
   if (warning.indexOf("SHORT TERM FORECAST") > 0) {
       document.write("<table border='1' cellpadding='2' cellspacing='0' width=" + width + " bgcolor='" +
watchcolor + "'><tr><td><marquee scrolldelay='125' width='" + width + "'><font face='verdana,arial' size='1'
color='" + warningfont + "'>"+ mylocation + " - <b><span style='text-transform: uppercase'>%NOAAEvent%</span></b>
... <a href='" + link + "'>[Click here for more details]</marquee></font></a></td></tr></table><br>");
   }
   else if (warning.indexOf("WARNING") > 0) {
       document.write("<table border='1' cellpadding='2' cellspacing='0' width=" + width + " bgcolor='" +
watchcolor + "'><tr><td><marquee scrolldelay='125' width='" + width + "'><font face='verdana,arial' size='1'
color='" + warningfont + "'>"+ mylocation + " - <b><span style='text-transform: uppercase'>%NOAAEvent%</span></b>
... <a href='" + link + "'>[Click here for more details]</marquee></font></a></td></tr></table><br>");
   }
   else {
       document.write("<table border='1' cellpadding='2' cellspacing='0' width=" + width + " bgcolor='" +
defaultcolor + "'><tr><td><marquee scrolldelay='125' width='" + width + "'><font face='verdana,arial' size='1'
color='" + defaultfont + "'>"+ mylocation + " - <b><span style='text-transform:
uppercase'>%NOAAEvent%...</span></b><a href='" + link + "'>[Click here for more
details]</marquee></font></A></td></tr></table><br>");
   }
}
</script>

Any help would be great. Thanks

-Jason
-Jason
Portales, NM Weather
http://www.portalesweather.net

 

cumulus