Results 1 to 1 of 1

Thread: Embed external custom file for Glossy Accordion Menu?

  1. #1
    Join Date
    Nov 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Embed external custom file for Glossy Accordion Menu?

    1) Script Title:
    Glossy Accordion Menu

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...enu-glossy.htm

    3) Describe problem:
    Hello!
    I am currently using the menu above on my (X)HTML website. Everything works fine. Now I want to use this menu also on other sites on the same webserver/directory. Therefore I want to create an external file with the custom menu content (the content between <body> and </body>) and embed it into the new sites. The menu appears within a standard HTML table with variable position but fixed width.

    Now my questions:

    1. What is the best way to do it?
    What shall I use as the external file type ... txt ... js?
    I tried to embed it with:
    Code:
    <body> ... <table> ...
    <script type="text/javascript" src="custom_menu.js"></script>
    ... </table> ...</body>
    where custom_menu.js contained the menu content of the body:
    Code:
    document.write("
    <div class="glossymenu">
    ...
    ...
    ");
    but it didn't work.

    2. In the header there are also some custom menu settings for the js script and style. Can I also make this content externally?

    I do not have PHP, etc. installed, just a standard webserver.
    Please treat me as a noob in js and html.

    Thanks for any help.
    Regards,
    M0nTy.
    Last edited by M0nTy; 11-19-2008 at 09:57 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •