No offence, are you really sure you want a MouseOver script doing it? I only ask, cos everytime u move the mouse over the button, its going to open up a brand new window, which in my opinion, would drive me nuts.
Use this:
////////////////////////////////////////////////
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JAVASCRIPT">
img1on = new Image(); // Active images
img1on.src = "pic1on.gif";
img2on = new Image();
img2on.src = "pic2on.gif";
img1off = new Image(); // Inactive images
img1off.src = "pic1off.gif";
img2off = new Image();
img2off.src = "pic2off.gif";
function imgOn(imgName) {
if (document.images) {
document
.src = eval(imgName + "on.src"
}
}
function imgOff(imgName) {
if (document.images) {
document
.src = eval(imgName + "off.src"
}
}
</SCRIPT>
<SCRIPT>
function popUpWindow()
{
window.open('crazy error.html','Alert','toolbar=yes,location=no,directories=no,status=no,' + 'menubar=no,scrollbars=no,resizable=no,' + 'width=700,height=470,screenX=0,screenY=0');
}
</SCRIPT>
</HEAD>
<BODY>
<A HREF="javascriptopUpWindow()" onMouseOver = "imgOn('img1')"onMouseOut = "imgOff('img1')"><IMG NAME="img1" SRC="pic1off.gif"></A>
</BODY>
</HTML>
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
You will need to add more pics as you need them to the first part of the script (the pre-loader) and then in the <A> tag's make sure to have the mouseovers showing the proper name and the <IMG> tag's must have the correct NAME="" according to your picture. Only .gif's seem to work with this.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.