Click to See Complete Forum and Search --> : Using HV menu in templates? Any help?


tconey
03-26-2003, 10:57 PM
HV Menu- by Ger Versluis from Dynamic Drive...truly a beautiful, easy to follow script.

But I can NOT get it to work in a template. Even tried calling it in through a library function (I use Dreamweaver 4), but no luck. I tried it as part of the template; as part of the page in an editable region; even giving it the complete URL of the website address and it's location on the server trying to use a back door approach, but...nothing...

It does fine when not in a templated page, but with 100 or so pages to update, not using templates doesn't seem like a viable option.

What little hair I have left will thank you at being spared the yanking out in frustration treatment if you can aid me in this.

Tim

tconey
03-26-2003, 11:25 PM
OOoppps!

What I meant when I said it didn't work is it doesn't show at all.

Oh, and I have also tried putting it in <div>'s, a table, and just a blank spot on the page.

Sorry...

Tim

Tom Servo
03-28-2003, 12:00 PM
The HV menu works in files I create from DW templates.

Try placing the javascript ("<script type='text/javascript'>") immediately above the </body> tag instead of immediately below the <body> tag.

Only the "MenuPos" needs to be in a <div>.

Make sure you have the correct path to the HV javascript. Dreamweaver templates will provide the correct path to links when applied to a file; however, this will not occur with the link to the HV javascript.

tconey
03-28-2003, 12:07 PM
Thanks! I'll try that.

Tim

Tom Servo
03-31-2003, 01:44 PM
I misinformed you on my previous post. Dreamweaver WILL provide the correct path to the JavaScript source file when the template is applied to a file.

Use the Properties window to identify the source file when using the template. If you type in a path, it will not be correct when the template is applied. If your cursor is in the <javascript....> in the code view, the Properties window will provide a browse interface to point to the javascript.

tconey
03-31-2003, 02:12 PM
Thanks, I will definitely remember that in the future. I've never been able to get a javascript to show a path in properties - I must have had the cursor in the wrong place. That is VERY valuable info.

I gave up on the menu, though. Went with an >ugh!< table set-up instead. Please don't tell W3C on me! They'll hunt me down like a fox for not using 'proper' designing...

...but it works...

Thanks for your help,

Tim