DHTML / .js file / Variable...

User 212704 Photo

Registered User
8 posts

My DHTML menu I have saved in a .js file for easy updating of multiple pages and not having to swim code. I'm working on a redesign of my site, and currently the site design is set up for repositioning of elements depending on screen settings.

Is it possible to not make the DHTML menu so static? Perhaps place in a table cell. I noticed a previous user post a similar question, but my menu is placed within a .js file. Would the <span> command still apply? (some how I don't think it will)

Thanks much for any possible ideas or direction.

Problem occurs here:
More coming.... because "the ideas just keep coming"
User 122279 Photo

Senior Advisor
14,376 posts
Online Now

The <span> command does still apply. I'm using the same method, placing the dhtml code in a .js file, and where I want it to appear I have this bit of code:

<span id="mainmenu">
<SCRIPT LANGUAGE="javascript" SRC="mainmenu.js" type='text/javascript'>

<noscript>Your browser does not support script</noscript>

The 'mainmenu.js' has of course to be renamed according to the name of your menu file.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.