From: Jason L. <ja...@go...> - 2000-11-01 16:09:36
|
Anyone know if it is possible to use the core.ibs.buttonimage.js and inline layers? For example, the following works fine for DynLayers (as expected): homeImgOff = DynAPI.getImage(homeOff.jpg',498,133) homeImgOn = DynAPI.getImage('homeOn.jpg',498,133) mb = new IbsButtonImage() mb.setImages(homeImgOff,homeImgOn,null,null) mb.setSize(500,200) mb.moveTo(10,10) mb.setBgColor("#EFE234") this.document.addChild(mb) However, I would like to do (something like) the following: mb = new IbsButtonImage(DynAPI.document.all["imgTestDIV"]) mb.setImages(homeImgOff,homeImgOn,null,null) mb.setSize(498,133) mb.moveTo(100,100) mb.setBgColor("#FFFFFF") <body> <div id="imgTestDIV" STYLE="position: absolute"> <a href="#"><img name="home" src="homeOff.jpg" width="498" height="133" border="0" alt="Home"></a> </div> </body> Anyone have any ideas if this is possible? If so, will the eventListener be applied to the div? Any insight/examples would be greatly appreciated. Thanks! Pax, Jason |