DHTML / .js file / Variable...

User 212704 Photo


Registered User
8 posts

Hello.
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.
~~~
Shana

Problem occurs here:
http://www.abtcdesigns.com/V3/
~~~
Shana
http://www.barnpros.com
http://www.abtcdesigns.com
http://www.sonlight-international.com
More coming.... because "the ideas just keep coming"
User 122279 Photo


Senior Advisor
14,447 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'>

</script>
<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.