![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello All: Say I have a page that contains several layers, and I have many different links to this page throughout my site. Is it possible to have the visibility of a layer dependent upon the link that's used? For example, if you use Link A, then the page will load with Layer A visible; if you click Link B, the page will load with Layer B visible, etc. |
#3
| |||
| |||
|
|
Hello All: Say I have a page that contains several layers, and I have many different links to this page throughout my site. Is it possible to have the visibility of a layer dependent upon the link that's used? For example, if you use Link A, then the page will load with Layer A visible; if you click Link B, the page will load with Layer B visible, etc. |
#4
| |||
| |||
|
|
You could create a URL parameter on the links and then write an IF statement around the visible tag of the layer. The exact code would depend on the server language used. -- Regards Paul Whitham Macromedia Certified Professional for Dreamweaver MX2004 Valleybiz Internet Design www.valleybiz.net Team Macromedia Volunteer for Ultradev/Dreamweaver MX www.macromedia.com/support/forums/team_macromedia "Sophia Hohing" <hohings (AT) seattleu (DOT) edu> wrote in message news:cc29tv$5h0$1 (AT) forums (DOT) macromedia.com... Hello All: Say I have a page that contains several layers, and I have many different links to this page throughout my site. Is it possible to have the visibility of a layer dependent upon the link that's used? For example, if you use Link A, then the page will load with Layer A visible; if you click Link B, the page will load with Layer B visible, etc. |
#5
| |||
| |||
|
|
You could create a URL parameter on the links and then write an IF statement around the visible tag of the layer. The exact code would depend on the server language used. |
#6
| |||
| |||
|
|
This sounds like a job for SSI and a database........ Sophia Hohing wrote: Hello All: Say I have a page that contains several layers, and I have many different links to this page throughout my site. Is it possible to have the visibility of a layer dependent upon the link that's used? For example, if you use Link A, then the page will load with Layer A visible; if you click Link B, the page will load with Layer B visible, etc. |
#7
| |||
| |||
|
|
You could create a URL parameter on the links and then write an IF statement around the visible tag of the layer. The exact code would depend on the server language used. Thanks for your help! I'm not quite clear though, do you mean assign the URL a name? For example: a name="LinkA" href="the_page.htm">Link A</a then in "the_page": div id="LayerA" style="position:absolute; if (Link A) visibility:visible; .... This is just basic html code and I'm not sure how to do what you're suggesting. |
#8
| |||
| |||
|
|
Oh I see... I would have to write a JavaScript function. "Sophia Hohing" <hohings (AT) seattleu (DOT) edu> wrote in message news:cc2ehr$9vc$1 (AT) forums (DOT) macromedia.com... You could create a URL parameter on the links and then write an IF statement around the visible tag of the layer. The exact code would depend on the server language used. Thanks for your help! I'm not quite clear though, do you mean assign the URL a name? For example: a name="LinkA" href="the_page.htm">Link A</a then in "the_page": div id="LayerA" style="position:absolute; if (Link A) visibility:visible; .... This is just basic html code and I'm not sure how to do what you're suggesting. |
#9
| |||
| |||
|
|
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) |
#10
| |||
| |||
|
|
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) |
![]() |
| Thread Tools | |
| Display Modes | |
| |