|
Hi,
My idea:
SetBgImage is ok only for static images, with
animation it causes all kinds of problems.
Definitely avoid using 324 layers.
Maybe use one large layer, add all images like
this
myLayer.setHTML('</img name="image1" src="../php/images/round2.gif">'
+'</img name="image2"
src="../php/images/round2.gif">'
+'</img name="image3"
src="../php/images/round2.gif"><br>') etc
Change the image properties like this:
myLayer.doc.images['image1'].src="../php/images/transparent.gif"
If they need mouse events, add them to the
dynlayer, and check if the mouse is over the image by getting the mouse
coordinates.
I have examples of these
ideas here:
Richard_Examples
Image_Rollover.html
Imgtest_Rollover_Button.html
Get_Properties_Of_Image.html
Cheers,
Richard Bennett [EMAIL PROTECTED]
www.richardinfo.com (Everything running on, and ported to the 19/12/2000 snapshot of DynAPI2) Find the DynAPI faq here: http://sourceforge.net/docman/display_doc.php?docid=656&group_id=5757 Browse the mailinglist here: http://www.mail-archive.com/index.php3?hunt=dynapi
|
Title: (setHTML vs setBgImage) and (keyevents not being captured)
- [Dynapi-Help] (setHTML vs setBgImage) and (k... Terry Valladon
- Re: [Dynapi-Help] (setHTML vs setBgImag... Richard Bennett
- Re: [Dynapi-Help] (setHTML vs setBgImag... Jordi - IlMaestro - Ministral
- Re: [Dynapi-Help] (setHTML vs setBg... Doug Melvin
- Re: [Dynapi-Help] (setHTML vs setBgImag... Robert Rainwater
