HighDots Forums  

Layer Visibility Based on Previous Link

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Layer Visibility Based on Previous Link in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Mick White
 
Posts: n/a

Default Re: Layer Visibility Based on Previous Link - 07-02-2004 , 03:07 AM






MM_showHideLayers(thelayer,'','show')

This must appear after, or below, the layers.

Mick

Sophia Hohing wrote:

Quote:
Nothing's happening....

So I have the following in the body of my target page, pretty much as Mick
described:

script language="JavaScript"
var thelayer= (location.search)? location.search.substring(1):"default";
MM_showHideLayers(thelayer,'','show')
/script

I gathered from his posting that the variable declaration is supposed to be
in the head, but that created errors so I did the above.

There are no errors now, but either thelayer is not becoming "default", or
showHideLayers is not working.

I appended ?layerid to my links, but the target page still loads without
effect.

What am I missing?

"Murray *TMM*" <forums (AT) HAHAgreat-web-sights (DOT) com> wrote in message
news:cc2g6b$bhd$1 (AT) forums (DOT) macromedia.com...

Get Mick to do it for you!



http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=3A2FDAAE.971584CC%40mickweb.com&rnum=25& prev=/groups%3Fq%3Dhide%2Blayer%2Bgroup:macromedia.dream weaver%2Bauthor:mick%26hl%3Den%26lr%3D%26ie%3DUTF-8%26start%3D20%26sa%3DN

(Watch out for the wrap in that link)




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.