Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

images + layers = menus?

Status
Not open for further replies.

danstwo

IS-IT--Management
Nov 18, 2002
12
GB
Hi there guys,

bit of a novice here, but i have been using dreamweaver for about 3 years now, just plodding on doing simple sites and stuff for lesuire purposes, but i require a mouse over menu on a navigation image i have.

I have a single image with text along the bottom which i want to use for buttons, and mouse over menus, i have highlighted each with a hotspot, i can get them linking to other pages, but can i make a layer invisible with links in and when you hover over the hotspot this layer appears???

Thanks for any help

Dan
 
In your Behaviors window select show / hide layers


function MM_showHideLayers() { //v6.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility=v
 
Thanks matey!

I have got it to do what i want know, but is their anyway you can make the layer disappear when you roll off either the layer or the hotspot the is the mouse out which you can set to disappear but then this only works on the hotspot, can you extend the behaviour to the layer?

Regards
Dan
 
ya in your div tag for the layer you would use this

onmouseover=&quot;MM_showHideLayers('layer name', 'hide')&quot;
so it would look like this

<div id=&quot;blah&quot; width=&quot;x&quot; height =&quot;x&quot; onmouseover=&quot;MM_showHideLayers('layer name', 'hide')&quot;>adsfads</div> [soapbox]
sleep is good
 
Cheers, I actually found that out on my own, you can do it through dreamweaver but once i had done it i actually understood the code which you suggest

Cheers

Is their anyway of creating a delay? so when you go over a hotspot in an image to activate a layer to be visible is there anyway that from this you can specify the layer to stay visual for about 5 seconds unless the pointer is within the boundaries of the layer?

I confused myself then...hehe

Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top