Dragonfish
Programmer
I´m trying to use a rollover GIF to start a js-function (don´t worry about some of the text - it´s a german site). here´s the code with some comments.
<html>
<head>
<title>hauptfenster</title>
<link rel=stylesheet type="text/css" href="textstyle.css">
<meta name="author" content="gullever">
<meta name="generator" content="Ulli Meybohms HTML EDITOR">
<script language="JavaScript" src="steuern.js" type="text/javascript"></script>
</head>
<body text="#FF0000" bgcolor=#C0C0C0 link="#FF0000" alink="#FF0000" vlink="#FF0000">
<onLoad="MM_preloadImages('button1-2.gif')">
<onLoad="MM_preloadImages('button2-2.gif')">
<FORM>
<input type="button"
value="Test_Funktion"
onclick="Herren_eins()">
</FORM> *** this first try worked fine ***
<FORM>
<input type="image"
src="button1-1.gif"
class=style_button1
onclick="Herren_eins()">
</FORM> *** this second try worked as well (except for the stylesheet but I´ll solve that later
<FORM>
<input type="image"
src="button1-1.gif"
width="20"
height="20"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image1','','button1-2.gif',1)"
onclick="Herren_eins()">
</FORM> *** this is where the troubel starts, netscape and IE give completly different results (the functions I borrowed from Dreamweaver, I know they work). The GIFs are just two different colored boxes for testing ***
<FORM>
<input type="image"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image1','','button2-2.gif',1)"
onclick="Herren_eins()">
<img name="Image1" border="0" src="button2-2.gif" width="20" height="20">
</FORM> *** does´nt work either and I can´t find any documentation giving me the right syntax
</body>
</html>
Thanks for the help !!!
David in Germany
<html>
<head>
<title>hauptfenster</title>
<link rel=stylesheet type="text/css" href="textstyle.css">
<meta name="author" content="gullever">
<meta name="generator" content="Ulli Meybohms HTML EDITOR">
<script language="JavaScript" src="steuern.js" type="text/javascript"></script>
</head>
<body text="#FF0000" bgcolor=#C0C0C0 link="#FF0000" alink="#FF0000" vlink="#FF0000">
<onLoad="MM_preloadImages('button1-2.gif')">
<onLoad="MM_preloadImages('button2-2.gif')">
<FORM>
<input type="button"
value="Test_Funktion"
onclick="Herren_eins()">
</FORM> *** this first try worked fine ***
<FORM>
<input type="image"
src="button1-1.gif"
class=style_button1
onclick="Herren_eins()">
</FORM> *** this second try worked as well (except for the stylesheet but I´ll solve that later
<FORM>
<input type="image"
src="button1-1.gif"
width="20"
height="20"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image1','','button1-2.gif',1)"
onclick="Herren_eins()">
</FORM> *** this is where the troubel starts, netscape and IE give completly different results (the functions I borrowed from Dreamweaver, I know they work). The GIFs are just two different colored boxes for testing ***
<FORM>
<input type="image"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image1','','button2-2.gif',1)"
onclick="Herren_eins()">
<img name="Image1" border="0" src="button2-2.gif" width="20" height="20">
</FORM> *** does´nt work either and I can´t find any documentation giving me the right syntax
</body>
</html>
Thanks for the help !!!
David in Germany