From: Tarun R E. <ta...@we...> - 2000-10-27 21:45:21
|
Both options can be adopted, I think. The first option would be better when the rollover image is of the same size as the 'normal' image and is ONLY related to the 'normal' image (ie it musnt be the *rollover* for anything else) .I think it makes sense to keep a single layer with a single image tag (and then swapping the src attribute on the rollover using <refToLayer>.doc.images[0].src) The second would be if the rollover image is something different (larger,enhanced). Or is used for more than a single purpose. In this case it would be preferable to have 2 layers each containing an image, one layer visible and the other hidden, and then swappng their visibility. I didnt get the setHTML() part of what you said. The method works ok for me (maybe you ought to get the latest API or something ?) ----- Original Message ----- From: "Jason LaFosse" <ja...@go...> To: <dyn...@li...> Sent: Saturday, October 28, 2000 1:17 AM Subject: [Dynapi-Help] Image Maps and Rollovers > Can anyone shed some light on a good approach for tackling the following > scenario: > > I am putting together a page which will have various DynLayers which will > contain images and text. > I have one image which I would like to use as an image map, it contains > three options (ie. home, sitemap, contact). When I rollover the various opts > I would like this to do one of two things: > 1. The image is replaced with another one showing a box around the menu. > -or- > 2. The rollover event causes another layer to appear which would have the > box image in it. > > I am not sure which of the two options are the best approach (if either). > Also I have not had much luck incorporating an image map when creating a > DynLayer and using the setHTML() method. > > Any insight would be appreciated. > > Thanks! > > Pax, > Jason > > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-help > |