It sounds like this would be more appropriate to do this with Layers.
But then download time might become an issue, because if you have 25
hotspots, that means 25 Layers with 25 images, and it all has to load at
the same time...
Here's how you would do, using Layers:
Drag a Layer from your tool panel onto your page. Then switch to code
view. Select all the code for the layer (from <div id="Layer1"...> to
</div>) and make sure you move this div tag outside of any other tag.
The best is to move it right before the closing </body> tag.
Now go back in design view. You can drag your Layer wherever you want
safely.
Select your Layer and in properties panel, select Visibility>Hidden.
Then select one of your hotspots, and in the link, write "javascript
:;"
without the quotes.
Then open your behavior panel and select Show-Hide Layer. In the dialog
window that appears, select your Layer "Layer1" and set it to "show". Done.
Then on top of the behavior panel, select onMouseOver as the trigger.
That's pretty much it.
Important things: Layers shoudln't be inside any other tag, unless you
want to position them via CSS and you know exactly what you're doing.
When you open the behavior and try to apply the Show Hide behavior, make
sure your hotspot link property is selected: if necessary, select your
hotspot, then select the little <a> at the bottom of your design Panel.
mark999 wrote:
Quote:
Here is what I want to do. I have a large image of our town. I want to have a
number (< 25) of hotspots on the image, when someone rolls over a hotspot, a
small window opens showing an image of the building or park they are hovering
over. This is easy to do using the open browser window behavior with
mouseover. But I would like the window to close when they roll off the hotspot.
The idea is exactly like tool tips in some programs. Is there a dreamweaver
behavier to make this happen? It needs to be relatively easy to do, as we
will add and remove hotspots depending on who wants to participate in this map
scheme. It seems like I might be able to do this with layers, but I do not
know how to start. Any suggestions for me? mark |