From: Jason L. <ja...@go...> - 2000-10-27 19:36:17
|
I am not sure if this is a bug in IE5.00x or not. I am using the DynAPI2 and trying to do a simple nested inline layer test which is nearly identical to the core.api.divs.htm example file. The only difference is that I am trying to place an image in the child layer. This works fine in Netscape, however doing so causes IE to choke. I get a message stating: "A script on this page is causing IE to run slow...." Here is the source code: ---------------------------------------------------------------------------- ------ <html> <head> <title>Inline Layer Test</title> <script language="Javascript" src="./js/dynapi2/Core/js/dynapi.js"></script> <script language="Javascript"> DynAPI.setLibraryPath('./js/dynapi2/Core/js/lib2.0/') DynAPI.include('core.api.dynlayer.js') DynAPI.include('core.api.browser.js') DynAPI.include('core.api.dyndocument.js') DynAPI.include('core.api.events.js') DynAPI.include('core.ext.inline.js') DynAPI.onLoad=function(){ parentLayer=DynAPI.document.all["parentDIV"] DynAPI.document.all["parentDIV"].setBgColor('#efefef') DynAPI.document.all["parentDIV"].moveTo(100,100) DynAPI.document.all["parentDIV"].setSize(300,300) DynAPI.document.all["test1DIV"].setSize(20,20) } </script> </head> <body> <div id="parentDIV" STYLE="position: absolute"> <div id="test1DIV" STYLE="position: relative"> <img src="test.gif" width="20" height="20" border="0" alt="A test gif"> </div> </div> </body> </html> ---------------------------------------------------------------------------- -------- Is this a bug, or am I doing something stupid? Thanx! Pax, Jason |