Information Systems
College of Business Administration
University of Missouri - St. Louis

Sample JavaScript

<!DOCTYPE HTML PUBLIC "-     //W3C     //DTD HTML 4.0 Transitional     //EN"><html><head>
<meta name="MSSmartTagsPreventParsing" content="TRUE">
<link rel="SHORTCUT ICON" href="graphics/dss.ico">
<STYLE TYPE="text/css">
<!--
     H1, H2, H3, H4, H5, H6 {font-family:"Arial"}
     td {font-family:"Arial"}
     td {font--size: 10pt}
     td {font-weight: bold}
     td {border-width: 2px}
     table {border-color: #8D89C7}
     body {font-family:"Arial"; font-size: 10pt; font-weight:bold}
     p {font-family:"Arial"; font-size: 10pt; font-weight:bold}
-->
</STYLE>
<title>JavaScript Examples</title>

<SCRIPT><!--
function stopError()
    {
    return true;
    }

if (document.images)
    {
       roll = 1;
    }
else
    {
       roll = 0;
    }

if (roll)
    {
       but1 = new Image();
       but1.src="a_upbutton1.jpg";
       but2 = new Image();
       but2.src="clear_newwindow.jpg";
       but3 = new Image();
       but3.src="b_upbutton1.jpg";
       but4 = new Image();
       but4.src="c_upbutton1.jpg";
       but21 = new Image();
       but21.src="a_downbutton1.jpg";
       but22 = new Image();
       but22.src="newwindow.jpg";
       but23 = new Image();
       but23.src="b_newwindow.jpg";
       but24 = new Image();
       but24.src="c_newwindow.jpg";
       but32 = new Image();
       but32.src="b_downbutton1.jpg";
       but42 = new Image();
       but42.src="c_downbutton1.jpg";

    }

function hiLite(imgDocID,imgObjName)
    {
    if (roll)
       {
          document.images[imgDocID].src=eval(imgObjName + ".src");
       }
    }

     //--></script>

</head>


<body text="#000080" vlink="#000080" background="graphics/background2.gif" link="#000080">

<table bgcolor="#bde7b7" width="100%"><tbody><tr><td>
<center><table cellpadding="5" bgcolor="#bde7b7">
<tbody><tr>

     <td><center><a href="http://www.umsl.edu/business/mis/">Information Systems</font></a></i></center></td>
     <td width="45"></td>
     <td><center><a href="http://www.umsl.edu/business/General_Business.html">College of Business Administration</a></i></center></td>
     <td width="40"></td>
     <td><center><a href="http://www.umsl.edu/">University of Missouri - St. Louis</a></i></center></td>
</tr>
</tbody></table></center></td></tr></tbody></table>


</font><h2><center>Sample JavaScript</font></center></h2>

<center>

<table width="90%" bgcolor="#bde7b7" border="2" cellpadding="15">
<tbody><tr>
<td width="100%">
<center>

<h1>What report would you like?</h1><p>


<center>

<a href="one.html" onMouseOver="hiLite('bkey','but32'); hiLite('key1','but23'); return true;" onMouseOut="hiLite('bkey','but3'); hiLite('key1','but2'); return true;" ><img src="b_upbutton1.jpg" border=0 name="bkey" ></a>

<a href="one.html" onMouseOver="hiLite('key','but21'); hiLite('key1','but22'); return true;" onMouseOut="hiLite('key','but1'); hiLite('key1','but2'); return true;" ><img src="a_upbutton1.jpg" border=0 name="key" ></a>

<a href="one.html" onMouseOver="hiLite('ckey','but42'); hiLite('key1','but24'); return true;" onMouseOut="hiLite('ckey','but4'); hiLite('key1','but2'); return true;" > <img src="c_upbutton1.jpg" border=0 name="ckey" ></a>
<p>

<IMG SRC="clear_newwindow.jpg" name="key1">


</center>

<p><hr><p>

<img src="graphics/button2.jpg" width = 20> <a href="index.html">Return to Index</a>

</tr>
</tbody></table>
</center>

<p><hr><p>
<center>| <a href="http://www.umsl.edu/index.html">UM-St. Louis Home Page</a>
| <a href="http://www.umsl.edu/business/General_Business.html">College of Business Page</a> |
<a href="http://www.umsl.edu/business/mis/index.html">IS
Home Page</a> |</center>
<p><hr><p>

<small>
<script language="JavaScript">
     // This automatically updates the last modified date for the page.
     //
     when = document.lastModified
     document.write("This page was last modified on: " + when + "<br>")
     //
     // This automatically updates the location documentation on the page.
     where = document.location
     document.write("URL: " + where)
</script>
<br>Page Owner: <a href="http://www.umsl.edu/%7Esauter/">Professor Sauter</a>
(<a href="mailto:Vicki.Sauter@umsl.edu">Vicki.Sauter@umsl.edu</a>)<br>
</i> Vicki L. Sauter. All rights reserved.

</body></html>


Return to Index


| UM-St. Louis Home Page | College of Business Page | IS Home Page |



Page Owner: Professor Sauter (Vicki.Sauter@umsl.edu)
Vicki L. Sauter. All rights reserved.