From: Darin K. <dka...@ef...> - 2000-11-08 20:46:45
|
forgive the double post, wasn't sure if the list serve picked this up or not. These routines may be viable for adding to the core. -----Original Message----- From: Benjamin Liu To: Darin Kadrioski Sent: 11/8/00 8:15 AM Subject: RE: [Dynapi-Dev] Question Excellent work!! Thank you very much for your help.. I've been trying to figure out how to get my code to work across browsers for a very long time, and this solved my problem in no time. Appreciate the help! Benjamin Liu -----Original Message----- From: Darin Kadrioski [mailto:dka...@ef...] Sent: Wednesday, November 08, 2000 1:26 AM To: 'Benjamin Liu ' Subject: RE: [Dynapi-Dev] Question I've attached a DynLayer addon from my forthcoming Component Pack. It adds a method called moveToImage(imagename) It's based on an idea i picked up from brainjar.com. Essentially what you do is place a blank shim on your page where you want your control to go and give the image a NAME="". Then, you simply call moveToImage to get it to go there. i.e. <img src="blankshim.gif" name="boldButtonImg"> boldButton.moveToImage('boldButtonImg') don't forget to also call this method on a onResize() event. -----Original Message----- From: Benjamin Liu To: dyn...@li... Sent: 11/7/00 1:53 PM Subject: [Dynapi-Dev] Question 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 _______________________________________________ Dynapi-Dev mailing list Dyn...@li... http://lists.sourceforge.net/mailman/listinfo/dynapi-dev |