Results 1 to 3 of 3
  1. #1
    4 Star Lounger
    Join Date
    Mar 2004
    Location
    Griffith, New South Wales, Australia
    Posts
    507
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Where does the jscript go? (Front Page 2003)

    While I have created a few webpages in my day, I have never had to insert script before and cant work out where it should go.

    The script is to create a menu and I have it in a file that can be called by all pages. If I put the <script></script> tags in the header, the menu appears top left of the page which isnot where I want it to go.

    I have tried putting those script tags within the html at the place where I want the menu to go, but it still shows at the top left.

    Can anyone help?

    Johanna

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Where does the jscript go? (Front Page 2003)

    Some scripts use document.write, which requires that you insert the script into your page exactly where you want the inserted text to go. Others use more flexible methods that allow you to use an external file but place some kind of placeholder in the document (e.g., <div id="menuGoesHere"></div>). This is difficult to know without looking at the script. Also check the related style rules for positioning the menu and make sure the browser is seeing and applying them.

  3. #3
    4 Star Lounger
    Join Date
    Mar 2004
    Location
    Griffith, New South Wales, Australia
    Posts
    507
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Where does the jscript go? (Front Page 2003)

    Thank you Jefferson,

    I think that what you have written is what I have been reading, but you have said it in a much simpler way.

    It is certainly enough for me to go on.

    Johanna

Posting Permissions

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