I converted the scrolling marque over to a table format.

Drop this in your WhatsUp\Web folder and name it: Down.asp

Then at the bottom of TopView.asp make this change:
Old:
<%INCLUDE% MainPageSuffix.asp>
<%include% StandardPageFooter.asp>

Change to:
<%INCLUDE% MainPageSuffix.asp>
<%INCLUDE% Down.asp>
<%include% StandardPageFooter.asp>

Hopefully this is usefull for someone, I'd love to hear if anyone makes any improvements to this.

Dave Habben
Network Specialist
Illinois Century Network


David Summers wrote:
Can someone remind me how to add the scrolling marquee to the main website? I am thinking of the one that lists any currently down devices. I would simply replace my v8 file but I like the new options on the right for details and others.
Can someone just make the changes and email the file to the list?
Thanks,

*David Summers
*Network Analyst, Information Technology
*American Heart Association
National Center
*7272 Greenville Avenue
Dallas, Texas 75231-4596
214.706.1147
214.706.1211 FAX
[EMAIL PROTECTED] <_mailto:[EMAIL PROTECTED]>_

"With a fool no season spend, lest ye be counted as his friend."

  <table cellSpacing=0 cellPadding=3 width="98%" bgColor="#c0c0c0" border=2>
   <tr>
    <td align=left colSpan=2>

     <table width="100%" border=0>
      <tr>
       <td>Down Devices</td>
      </tr>
     </table>
    </td>
   </tr>
   <tr>
    <td vAlign=top width="98%">
     <table cellspacing="2" cellpadding="0" width="100%" bgcolor="#c0c0c0" border="0">
      <tbody>
       <tr>
        <td width="12%"></td>
        <td width="23%"></td>
        <td width="15%"></td>
        <td width="25%"></td>
        <td width="25%"></td>
       </tr>

       <tr>
        <th align="left">Map</th>
        <th align="left">Device</th>
        <th align="left">Down Time</th>
        <th align="left">Info2</th>
        <th align="left">Notes</th>

       </tr>
  <%START_LOADED_MAP_LIST%>
        <%START_DEVICE_LIST%>
                <%IFNOT% IS_DEVICE_UP>
                        <TR>
                        <TD><a href="map.asp?map=<%URL_ENCODE% (%MAP% FILENAME)>"> 
<%MAP% NAME> </A></TD>
                        <TD>
                                <%IF% (%LESSTHAN% (%DEVICE% CURRENT_DOWN_COUNT, 2))>
                                        <a href=device.asp?map=<%MAP% 
FILENAME>&device=<%DEVICE%
                                        UNIQUE_ID>><FONT COLOR=GREEN><%DEVICE% 
DISPLAY_NAME></FONT></a>
                                <%ELSEIF% (%LESSTHAN% (%DEVICE% CURRENT_DOWN_COUNT, 
4))>
                                        <a href=device.asp?map=<%MAP% 
FILENAME>&device=<%DEVICE%
                                        UNIQUE_ID>><FONT COLOR=YELLOW><%DEVICE% 
DISPLAY_NAME></FONT></a>
                                <%ELSE%>
                                        <a href=device.asp?map=<%MAP% 
FILENAME>&device=<%DEVICE%
                                        UNIQUE_ID>><FONT COLOR=RED><%DEVICE% 
DISPLAY_NAME></FONT></a>
                                <%ENDIF%>
                        </TD>
                        <TD>
                                <SCRIPT LANGUAGE="JavaScript">
                                var downtime = "<%DEVICE% POLL_FREQUENCY>"*"<%DEVICE% 
CURRENT_DOWN_COUNT>"*"<%MAP% POLL_INTERVAL>"
                                if (downtime > 3599) {
                                        var downtemp = downtime/3600;
                                        var downhours = Math.floor(downtemp);
                                        var downtemp = downhours*3600;
                                        var downminutes = downtime-downtemp;
                                        var downminutes = Math.floor(downminutes/60);
                                }
                                else {
                                        var downhours = 0;
                                        var downminutes = Math.floor(downtime/60);
                                }
                                if (downhours == 0)
                                        document.write(downminutes + " min")

                                else
                                        document.write(downhours + " hr : " + 
downminutes + " min")

                                </SCRIPT>
                        </TD>
                        <TD><%DEVICE% INFO_LINE_2></TD>
                        <TD><%DEVICE% NOTES></TD>
                        </TR>
                <%ENDIF%>
        <%END_DEVICE_LIST%>
  <%END_LOADED_MAP_LIST%>


      </tbody>
     </table>
    </td>
   </tr>
  </table>

Reply via email to