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

Sample JavaScript

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

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

if (roll)
    {
       but1 = new Image();
       but1.src="m_ex1.jpg";
       but2 = new Image();
       but2.src="m_ex2a.jpg";
       but3 = new Image();
       but3.src="m_ex3a.jpg";
       but21 = new Image();
       but21.src="m_ex1a.jpg";
       but22 = new Image();
       but22.src="m_ex2.jpg";
       but23 = new Image();
       but23.src="m_ex3.jpg";
    }

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

     //--></script>

</HEAD>

<BODY TEXT="#000000" link="000000" VLINK="#000000" BACKGROUND="background.jpg">
<FONT FACE="ARIAL">
<CENTER><TABLE WIDTH="79%" >
<TR>
<TD>
<CENTER><H2><FONT FACE="Arial"><FONT COLOR="#C100C1"><FONT SIZE=+4>
Javascript Sample</FONT></FONT></FONT></H2></CENTER>
</TD>
</TR>
</TABLE></CENTER>

<h3><p>


<h1>Roll Over Example</h1><p>



<center>

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

    <a href="two.html" onmouseover="window.status='second try'; return true"><img src="m_ex2.jpg" height=25 border=0></a>

    <a href="three.html" onmouseover="window.status='third try'; return true"><img src="m_ex3.jpg" height=25 border=0></a>

</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.