Dude, where did you copy that code from!?  That browser detection is horrid.
  And events in an image tag is IE only.  Here's the revised code.


<html>
<head>
.....
<script lauguage="javascript">

imgsrc = new Array("images/bleh.jpg","images/blah.jpg");

if(document.images){
         img=new Array();
         for(i=0;i<imgsrc.length;i++){
         img[i]=new Image();
         img[i].src=imgsrc[i];
         }
}
function act(num,imgName){
         if (document.images){
                 document[imgName].src =img[num].src;
         }
}
</script>
</head>
......
<p align="center"><a href="javascript:history.go(-1)"
onmouseover="act(0,'back')"  onmouseout="act(1,'back')"><img name="back"
src="images/back1.gif" width="153" height="31" border="0"></a></p>
</body>
</html>


Hope this helps you out,

Giscard Girard
[EMAIL PROTECTED]
Unemployed and proud of it.


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to