From: Benjamin L. <be...@on...> - 2000-11-07 21:52:18
|
Hi, I am using the buttonimage in the ibs widget set. To place the button relative to other elements on the page, I create an inline dynlayer and then move the object to the location of the inline dummy layer. After lots of experimentation, I got this to work in Internet Explorer. However, I am having problems with the placement in Netscape. The following is my code: DynAPI.onLoad=function() { boldButton = new IbsButtonImage() boldButton.setImages(DynAPI.getImage("/images/bold.gif", 20, 20),DynAPI.getImage("/images/bold_up.gif",20,20)) lisBold = new EventListener() lisBold.onselect = function(e) { boldThis() // boldThis defined later } boldButton.addEventListener(lisBold) dummyBold = DynAPI.document.all["boldB"] dummyBold.addChild(boldButton) . . . } Html: <span id="divRelative" style="position: relative"> <div id="boldB" style="position: absolute;left:0;top:1"></div> </span> I can get the buttons to appear if I add the boldButton object to DynAPI.document but cannot add it is a child of 'dummyBold'. Anybody know why this would work in ie but not netscape? Any help would be greatly appreciated. Benjamin Liu |