/    Sign up×
Community /Pin to ProfileBookmark

JS Menu Location question….

I didn’t think my other post was getting response since it was attached to one of my old questions so I decided I would make a new post for the question instead.

Here goes…

Ok….

I have the following folders:

<menu>
<css>
<images>

along with my initial HTML opening page (using CSS and the JS call)….to see what I mean with the JS call see this link: [URL=http://www.webdeveloper.com/forum/showthread.php?t=96312]JS Menu Problem[/URL]

And then my folders for individual areas… High School, Middle School ETC….

so I have:

<menu>
<css>
<images>
<HS>
<MS>
index.html

  • 1.

    I copy my initial “index.html” page to one of the other folders, i.e. HS (high school)

  • 2.

    I change the links for images from

    [code]images/title.jpg[/code]

    to

    [code]../images/title.jpg[/code]

    so that the images folder can be found and show etc…

  • 3.

    Did the same step with the CSS…. from

    [code]css/style.css[/code]

    to

    [code]../css/style.css[/code]

  • Now I go to do the same for the JS call… changing the call line from:

    [code]<script type=’text/javascript’ src=’menu/menu.js’></script>[/code]

    to:

    [code]<script type=’text/javascript’ src=’../menu/menu.js’></script>[/code]

    But for some reason, the menu will not show at all….

    Is there something I am missing here? I only want the JS in one folder instead of having to copy it into every subfolder…

    How do I get past this???? Should it just be left in the main area instead of being placed in the <Menu> folder????

    Thanks for the help!

    Duncan

    to post a comment
    JavaScript

    1 Comments(s)

    Copy linkTweet thisAlerts:
    @phpnoviceMar 09.2006 — But for some reason, the menu will not show at all....

    Is there something I am missing here?[/QUOTE]

    Must be -- or it would work. Just guessing, but I'd say that the problem must be one of capitalization. Otherwise, what you're shown is all correct and should be working without problems.
    ×

    Success!

    Help @MDuncan spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.18,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...