Layer Genie Support Product Page

This topic is locked
This topic was archived

Horizontal Drop Down menus: Tigger by text link?

Asked 17 Jul 2003 08:27:55
1
has this question
17 Jul 2003 08:27:55 Karl Bedingfield posted:
Hi

I tend to use texual links for my main menu categories. Can Layer Genie be used with text menus or does it need an image to trigger the menu layers?

Thanks
Karl

Replies

Replied 17 Jul 2003 08:54:55
17 Jul 2003 08:54:55 Marja Ribbers-de Vroed replied:
Hi Karl,

Layer Genie will work just fine with text links, because you yourself define the triggers to show the (menu) layers: just select a link in Dreamweaver and apply the 'Show Layer Genie' behavior to it.

You can even anchor the (menu) layer to the text links, so that the layers move with that text when the page is resized. This is useful when you're working with a centered or fluid layout.

Regards,

--
Marja Ribbers-de Vroed
www.flevooware.nl
www.flevooware.nl/dreamweaver/
Replied 17 Jul 2003 09:29:20
17 Jul 2003 09:29:20 Karl Bedingfield replied:
Hi there and thanks for your help <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

I tried to apply it but it seems to conflict with another extension I use and gave me this error:

'Warning 5001 global variable "iF_timer" already defined in global scope
The variable name was already used at the global level. It may have been used in a different .js file that is being used in the same html file.'

Also the 'named A tag' option is grayed out even though I selected the A tag.

Thanks
Karl
Replied 17 Jul 2003 09:41:23
17 Jul 2003 09:41:23 Marja Ribbers-de Vroed replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
I tried to apply it but it seems to conflict with another extension I use and gave me this error:

'Warning 5001 global variable "iF_timer" already defined in global scope
The variable name was already used at the global level. It may have been used in a different .js file that is being used in the same html file.'
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Layer Genie is not using such a global variable, so the conflict must be caused by something else.
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Also the 'named A tag' option is grayed out even though I selected the A tag.
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
You need to 'name' the A tag to make it a 'named anchor'. Just give it a unique name so that the tag looks something like:
<pre id=code><font face=courier size=2 id=code>&lt;a href="blahblah.html" name="someUniqueName"&gt;link text&lt;/a&gt;</font id=code></pre id=code>You may need to go into Code View to give the A tag its name.

Hope this helps.
Regards,

--
Marja Ribbers-de Vroed
www.flevooware.nl
www.flevooware.nl/dreamweaver/


Edited by - MarjaR on 17 Jul 2003 09:42:41
Replied 17 Jul 2003 10:41:06
17 Jul 2003 10:41:06 Karl Bedingfield replied:
You are indeed correct Marja, I had the code duplicated on the page and also on an include. Thank you <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

Thanks for making clear what to do with the named tag.

Karl
Replied 17 Jul 2003 12:22:58
17 Jul 2003 12:22:58 Karl Bedingfield replied:
Hi again,

O.K. now I have named the tags like this: &lt;A href="#" name="WebsiteDesign" class=buttonselected &gt;&nbsp;Website Design&nbsp;&lt;/A&gt;

And applied the layer genie to the A tag.

Now when I preview the page I get javascript errors as listed below:

Line 31
Char 127
Error: 'left' is null or not an object
code: 0

Line 31 refers to this:

function flvS3(v1){//v1.0
var v2=MM_findObj(v1),v3=0,v4=0,v5=0,v6=0;if (!v2){this.x=this.y=this.h=this.w=0;return;}var v7=(document.layers)?v2:v2.style;v3=v7.left;v4=v7.top;if ((v3==""||v4==""&&document.all&&!window.opera){if (v3==""{v3=v2.offsetLeft;}if (v4==""{v4=v2.offsetTop;}}if (v2.offsetHeight){v5=v2.offsetHeight;v6=v2.offsetWidth;}else if (document.layers){v5=v7.clip.height;v6=v7.clip.width;}this.x=parseInt(v3);this.y=parseInt(v4);this.h=parseInt(v5);this.w=parseInt(v6);}

ANy ideas?

Thanks a lot
Karl
Replied 17 Jul 2003 15:13:45
17 Jul 2003 15:13:45 Karl Bedingfield replied:
O.K. I'm getting there -

I now get the error: srcElement is null

What does that mean?
Replied 17 Jul 2003 15:44:41
17 Jul 2003 15:44:41 Marja Ribbers-de Vroed replied:
Hi Karl,

The error: <pre id=code><font face=courier size=2 id=code>Error: 'left' is null or not an object</font id=code></pre id=code> usually happens when you have more than one HTML element on the page with the same name or ID. Then Layer Genie doesn't know which element to handle.
Always make sure that element names and IDs are unique.

Can you give me an URL for the page you're working on so I can take a look?


--
Marja Ribbers-de Vroed
www.flevooware.nl
www.flevooware.nl/dreamweaver/


Edited by - MarjaR on 17 Jul 2003 15:45:42

Reply to this topic