Layer Genie Support Product Page
This topic is locked
This topic was archived
Invoking Layer Genie from a menu
Asked 25 May 2004 03:41:41
1
has this question
25 May 2004 03:41:41 Phil Anders posted:
Im hoping I can do this.I need to launch a layer genie layer from a menu item instead of from a graphic. I need to be able to set the button to make the hidden layer appear. Is there a way to do this, and if so, how?
Thanks
Replies
Replied 25 May 2004 06:55:44
25 May 2004 06:55:44 Phil Anders replied:
Well, after some fiddling around I got it to work, in Firefox. But in MSIE it mis-behaves.
Take a look at www.frontrangebusiness.net and click on "contact us" in the menu on the left. It works fine in FireFox. But do the same thing in MSIE and the behavior occurs no matter where you click in the menu.
Here is what I used to make it work. Can you show me how to make it work properly in MSIE also?
This is the code for the bottom entry on the menu, which is "Contact Us" ------> <div><a href="#"onclick="dmxFLG1('Contact',0,0,'',1,'',0,0,0,1,10,0,-300,0,1,8,3,0,1)">Contact Us</a></div>
Thanks
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Im hoping I can do this.
I need to launch a layer genie layer from a menu item instead of from a graphic. I need to be able to set the button to make the hidden layer appear. Is there a way to do this, and if so, how?
Thanks
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Take a look at www.frontrangebusiness.net and click on "contact us" in the menu on the left. It works fine in FireFox. But do the same thing in MSIE and the behavior occurs no matter where you click in the menu.
Here is what I used to make it work. Can you show me how to make it work properly in MSIE also?
This is the code for the bottom entry on the menu, which is "Contact Us" ------> <div><a href="#"onclick="dmxFLG1('Contact',0,0,'',1,'',0,0,0,1,10,0,-300,0,1,8,3,0,1)">Contact Us</a></div>
Thanks
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Im hoping I can do this.
I need to launch a layer genie layer from a menu item instead of from a graphic. I need to be able to set the button to make the hidden layer appear. Is there a way to do this, and if so, how?
Thanks
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Replied 25 May 2004 10:36:05
25 May 2004 10:36:05 Marja Ribbers-de Vroed replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Take a look at www.frontrangebusiness.net and click on "contact us" in the menu on the left. It works fine in FireFox. But do the same thing in MSIE and the behavior occurs no matter where you click in the menu.
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
That's because you've also applied the behavior to the onClick event of the BODY tag:
<pre id=code><font face=courier size=2 id=code><body onLoad="P7_TMopen()" onclick="dmxFLG1('Contact',0,0,'',1,'',0,0,0,1,10,0,-300,0,1,8,3,0,1)"></font id=code></pre id=code>
--
Marja Ribbers-de Vroed
www.flevooware.nl
www.flevooware.nl/dreamweaver/
Take a look at www.frontrangebusiness.net and click on "contact us" in the menu on the left. It works fine in FireFox. But do the same thing in MSIE and the behavior occurs no matter where you click in the menu.
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
That's because you've also applied the behavior to the onClick event of the BODY tag:
<pre id=code><font face=courier size=2 id=code><body onLoad="P7_TMopen()" onclick="dmxFLG1('Contact',0,0,'',1,'',0,0,0,1,10,0,-300,0,1,8,3,0,1)"></font id=code></pre id=code>
--
Marja Ribbers-de Vroed
www.flevooware.nl
www.flevooware.nl/dreamweaver/
Replied 25 May 2004 15:14:56
25 May 2004 15:14:56 Phil Anders replied:
I see that now. I forgot to remove that.
What I did was create a layer genie event (which went into the body tag as a on 'onload' event), then changed it to 'onclick' and pasted it into the place where I showed you. I forgot to remove it from the body tag.
Thanks
Is there an easier way to do something like this? The way I did it is rather cumbersome.
That's because you've also applied the behavior to the onClick event of the BODY tag:
<pre id=code><font face=courier size=2 id=code><body onLoad="P7_TMopen()" onclick="dmxFLG1('Contact',0,0,'',1,'',0,0,0,1,10,0,-300,0,1,8,3,0,1)"></font id=code></pre id=code>
--
Marja Ribbers-de Vroed
www.flevooware.nl
www.flevooware.nl/dreamweaver/
What I did was create a layer genie event (which went into the body tag as a on 'onload' event), then changed it to 'onclick' and pasted it into the place where I showed you. I forgot to remove it from the body tag.
Thanks
Is there an easier way to do something like this? The way I did it is rather cumbersome.
That's because you've also applied the behavior to the onClick event of the BODY tag:
<pre id=code><font face=courier size=2 id=code><body onLoad="P7_TMopen()" onclick="dmxFLG1('Contact',0,0,'',1,'',0,0,0,1,10,0,-300,0,1,8,3,0,1)"></font id=code></pre id=code>
--
Marja Ribbers-de Vroed
www.flevooware.nl
www.flevooware.nl/dreamweaver/
Replied 25 May 2004 15:19:36
25 May 2004 15:19:36 Marja Ribbers-de Vroed replied:
Why did you not apply it directly to the onClick event for you menu option?
If you have a link selected while applying the behavior, then the behavior is directly applied to the link.
--
Marja Ribbers-de Vroed
www.flevooware.nl
www.flevooware.nl/dreamweaver/
Edited by - MarjaR on 25 May 2004 15:20:49
If you have a link selected while applying the behavior, then the behavior is directly applied to the link.
--
Marja Ribbers-de Vroed
www.flevooware.nl
www.flevooware.nl/dreamweaver/
Edited by - MarjaR on 25 May 2004 15:20:49
Replied 25 May 2004 15:45:49
25 May 2004 15:45:49 Phil Anders replied:
In this particular menu product (Tree Menu Magic) there is no place to add an event in any of the menu items as you create them. You can only add links to other pages etc. If you dont link it to a page, it just puts in a #.
So I went into code view and highlighted the # and added the Genie Layer event, but it put it in the body tag, not where I wanted it. So that is why I had to copy and paste it. It seems to me that it should have put it in there with the #, not in the body tag.
I posted this question also on the newsgroup for Project Seven (I think I also stirred some interest in your products <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>, the makers of Tree Menu Magic. You might want to take a look at it. Their site is www.projectseven.com
Thanks
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Why did you not apply it directly to the onClick event for you menu option?
If you have a link selected while applying the behavior, then the behavior is directly applied to the link.
--
Marja Ribbers-de Vroed
www.flevooware.nl
www.flevooware.nl/dreamweaver/
Edited by - MarjaR on 25 May 2004 15:20:49
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
So I went into code view and highlighted the # and added the Genie Layer event, but it put it in the body tag, not where I wanted it. So that is why I had to copy and paste it. It seems to me that it should have put it in there with the #, not in the body tag.
I posted this question also on the newsgroup for Project Seven (I think I also stirred some interest in your products <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>, the makers of Tree Menu Magic. You might want to take a look at it. Their site is www.projectseven.com
Thanks
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Why did you not apply it directly to the onClick event for you menu option?
If you have a link selected while applying the behavior, then the behavior is directly applied to the link.
--
Marja Ribbers-de Vroed
www.flevooware.nl
www.flevooware.nl/dreamweaver/
Edited by - MarjaR on 25 May 2004 15:20:49
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Replied 25 May 2004 16:12:54
25 May 2004 16:12:54 Marja Ribbers-de Vroed replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>So I went into code view and highlighted the # and added the Genie Layer event, but it put it in the body tag, not where I wanted it. So that is why I had to copy and paste it. It seems to me that it should have put it in there with the #, not in the body tag.
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
When you're in Code View, Dreamweaver does not recognise the HTML element that you selected (DW thinks it's all just text), and it selects the BODY tag by default.
So when applying a behavior (not only Layer Genie) to a link, you need to do that in Design View.
If this ProjectSeven menu product does not allow you to work with its links directly in Design View, then maybe you can try working in Split View.
Maybe you can select the link in Code View, then activate Design View and finally apply the behavior.
If that doesn't work, then I think you have no other way to accomplish this than with some creative cutting and pasting.
Hope this helps.
--
Marja Ribbers-de Vroed
www.flevooware.nl
www.flevooware.nl/dreamweaver/
Edited by - MarjaR on 25 May 2004 16:14:02
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
When you're in Code View, Dreamweaver does not recognise the HTML element that you selected (DW thinks it's all just text), and it selects the BODY tag by default.
So when applying a behavior (not only Layer Genie) to a link, you need to do that in Design View.
If this ProjectSeven menu product does not allow you to work with its links directly in Design View, then maybe you can try working in Split View.
Maybe you can select the link in Code View, then activate Design View and finally apply the behavior.
If that doesn't work, then I think you have no other way to accomplish this than with some creative cutting and pasting.
Hope this helps.
--
Marja Ribbers-de Vroed
www.flevooware.nl
www.flevooware.nl/dreamweaver/
Edited by - MarjaR on 25 May 2004 16:14:02
