From: Yanglong Z. <yz...@ou...> - 2003-09-29 19:20:20
|
Raymond Irving wrote: >Hi, > >For more information on events see: > >docs/changelog.html >docs/docs/quickref.dynevent.html >docs/docs/quickref.eventobject.html > >functions like e.getOrigin() should return the target >layer (or element) > > This is exactly right. I looked at this method in the changeLog, but was not sure about the relavance. Since you pointed at it as the solution, then I actually tried it out. It solved my puzzle. Thanks. >-- >Raymond Irving > > > I have another question now. How do you make a imgage visible when it is wider than the window size in Mozilla (1.5b, maybe the same in other versions). I have a very big imgage in a DynLayer like this: var lyrmaster = dynapi.document.addChild(new DynLayer('<img src="./insertion_embed.png">',50,150,null,null,'silver')); However, only the left part of the image that fits in the window is visible, the rest of it seem to be sensed by the blowser judging by the scroll bar, but when you scroll to the right no image is visible there. The invisible part is the page's background color, not even the background of the layer (silver) is displayed. If I put the image naked on the page,like this: <img src="./insertion_embed.png"> The whole image is visible (scroll right all the way to the end). Is this a known problem? Or there is way to fix it? Thanks. Yanglong |