/    Sign up×
Community /Pin to ProfileBookmark

Whey doesnt this work?

I got the following code from the javascript website. It says to copy it into the body of your html doc and once I do that it doesnt work. Towards the middle of the code it has this “<script language=”JavaScript” src=”sliding_menu.js”></script>”. I’m guessing that is trying to call this .js file for the menu to work. If that is correct what do I have to do to fix it?

<!– ONE STEP TO INSTALL SLIDE DOWN MENU:

  • 1. Copy the coding into the BODY of your HTML document –>
  • <!– STEP ONE: Paste this code into the BODY of your HTML document –>

    <BODY>

    <!– This script and many more are available free online at –>

    <!– The JavaScript Source!! [url]http://javascript.internet.com[/url] –>

    <!– Original: ScriptBreaker –>

    <!– Web Site: [url]http://www.ScriptBreaker.com[/url] –>

    <!– Begin

    <SCRIPT LANGUAGE=”JavaScript”>

    function goToURL() { history.go(-1); }

    </script>

    <style>

    .menu

    {

    position:relative;

    background-color:gold;

    border:1px solid darkblue;

    width:150;

    font-size:11px;

    font-family:verdana;

    font:bold;

    position:absolute;

    cursor:se-resize;

    }

    .item_panel

    {

    width:150;

    border-left:1px solid darkblue;

    border-right:1px solid darkblue;

    clip:rect(0,150,0,0);

    position:absolute;

    }

    .item_panel a

    {

    text-decoration:none;

    color:black;

    cursor:hand;

    }

    .item

    {

    background-color:lightyellow;

    width:148;

    font-size:10px;

    font-family:verdana;

    }

    </style>

    [B] <script language=”JavaScript” src=”sliding_menu.js”></script>[/B]

    <center>

    <table width=150><tr><td>

    <script language=”JavaScript”>

    //Link[nr] = “position [0 is menu/1 is item],Link name,url,target (blank|top|frame_name)”

    var Link = new Array();

    Link[0] = “0|Home”;

    Link[1] = “1|Home|http://www.javascriptsource.com|”;

    Link[2] = “1|More Scripts|http://www.javascript.com|”;

    Link[3] = “1|Contact|http://www.javascriptsource.com/contact-us.html|”;

    Link[4] = “1|Traffic|http://www.thecounter.com|”;

    Link[5] = “0|Access”;

    Link[6] = “1|Login|Login.asp|”;

    Link[7] = “1|Logout|Logout.asp|”

    Link[8] = “0|Scripts”;

    Link[9] = “1|Asp|http://www.javascriptsource.com|”;

    Link[10] = “1|JavaScript|http://www.javascriptsource.com|”;

    Link[11] = “0|Links”;

    Link[12] = “1|JavaScript sites|http://www.javascripts.com|blank”;

    startup(4);

    </script>

    // End –>

    <p><center>

    <font face=”arial, helvetica” size”-2″>Free JavaScripts provided<br>

    by <a href=”http://javascriptsource.com”>The JavaScript Source</a></font>

    </center><p>

    <!– Script Size: 2.13 KB –>

    to post a comment
    JavaScript

    1 Comments(s)

    Copy linkTweet thisAlerts:
    @UltimaterApr 20.2005 — Simply download the file [url=http://javascript.internet.com/navigation/sliding_menu.js]sliding_menu.js[/url] and save it in the same directory-folder as your HTML file.

    The way I found it was by cutting off the [color=royalblue]slide-down-menu.html[/color] part and adding the [color=royalblue]sliding_menu.js[/color] part of

    [color=royalblue]http:[/color][color=royalblue]//javascript.internet.com/navigation/slide-down-menu.html[/color]
    ×

    Success!

    Help @noemontoya 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.20,
    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,
    )...