/    Sign up×
Community /Pin to ProfileBookmark

Help with calling a code

I am currently re-vamping my webiste, [url]www.djbeads.com[/url] and would like to see if anyone can help me with something.

If you go to my site you’ll see I have an extensive javascript code for the navagational drop down menu on the left. What I can’t figure out how to do is to make some sort of call to code for this code. At present, everytime I add a new page (which is pretty often) I’m having to go through every one of my pages to update that javascript, (and there a billion pages).

Any help would be appreciated!

Thanks!
Carrie

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@konithomimoFeb 03.2006 — There are two options:

1. The HTML method:

save your menu into a seperate page. Then create your template with two iframes and a div. Put the left-side drop downs into the div, and the other two parts into iframes. Then have the links from the menu iframe change the location of the main(body) iframe.


  • 2. The PHP version:


  • save your menu into a seperate page. Then use PHP includes at the top of every page to put the menu in.

    Either way requires you to change each idividual page, but it only has to be done once. After that you just have to change the menu page to have it display on every page.
    ×

    Success!

    Help @djbeads 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 4.30,
    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: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

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

    tipper: @Samric24,
    tipped: article
    amount: 1000 SATS,
    )...