Jump to content

IE Crasher


Timmie

Recommended Posts

Here's the HTML<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head> <title>test</title> <link rel="stylesheet" type="text/css" href="tbird.css"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script type="text/javascript" src="tbird.js"></script></head><BODY TEXT="#000080"><img id="fr01" src="images/tbird_01.gif" usemap="#main_map" border="0", "width="653", height="491"><map id="main_map" name="main_map"> <area shape="rect"coords="224, 194, 440, 226" href="java script:switchit(0)" /> <area shape="rect"coords="224, 243, 397, 275" href="java script:switchit(1)" /></map><map id="map1a" name="map1a"> <area shape="rect"coords="100, 100, 200, 200" href="java script:switchit(2)" /></map><map id="map1b" name="map1b"> <area shape="rect"coords="100, 100, 200, 200" href="java script:switchit(2)" /></map><br></body></html>and here's the javascriptadd_scr_no = 0;view_scr_no = 0;old_map = "";function switchit( n ){ switch( n ) { case 0: document.getElementById( 'fr01' ).useMap = "#map1a"; break; case 1: document.getElementById( 'fr01' ).useMap = "#map1b"; break; case 2: document.getElementById( 'fr01' ).useMap = "#map1b"; break; }}When I click on the second area in the first map, it crashes IE but runs fine in FF. I have a very simiar page that works with no problem. If I remove the first area then it works. I'm baffled. Is there any explanation for this?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...