Click to See Complete Forum and Search --> : Guide me?


Jonathan
09-08-2003, 08:59 PM
I can't seem to figure out this script:

http://javascript.internet.com/navigation/slide-down-menu.html#source

It seems the links don't slide down for me.

pyro
09-08-2003, 09:57 PM
Did you download http://javascript.internet.com/navigation/sliding_menu.js?

Jonathan
09-08-2003, 10:15 PM
Yes, but this is what I have:
And the staff opens when you load it why?

<HTML>
<HEAD>
<TITLE>Wooster Homepage</TITLE>
</HEAD>

<BODY>
<SCRIPT LANGUAGE="JavaScript">
function goToURL() { history.go(-1); }
</script>

<style>
.menu
{
position:relative;
background-color:#cc3300;
border:1px solid #000000;
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>

<script language="JavaScript" src="sliding_menu.js"></script>
<script language="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Original: ScriptBreaker -->
<!-- Web Site: http://www.ScriptBreaker.com -->

//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|Wooster Homepage|http://www.washoe.k12.nv.us/wooster/|";
Link[2] = "0|About";
Link[3] = "1|Alumni|http://www.washoe.k12.nv.us/wooster/about/alumni/|";
Link[4] = "1|Boosters|http://www.washoe.k12.nv.us/wooster/about/boosters/|";
Link[5] = "1|History|http://www.washoe.k12.nv.us/wooster/about/history/|";
Link[6] = "1|Campus|http://www.washoe.k12.nv.us/wooster/about/campus/|";
Link[7] = "0|School"
Link[8] = "1|Bell Schedule|http://www.washoe.k12.nv.us/wooster/school/bellschedule/|";
Link[9] = "1|Calendar|http://www.washoe.k12.nv.us/wooster/school/calendar/|";
Link[10] = "1|Career|http://www.washoe.k12.nv.us/wooster/school/career/|";
Link[11] = "1|Counselors|http://www.washoe.k12.nv.us/wooster/school/councelors/|";
Link[12] = "1|Graduation|http://www.washoe.k12.nv.us/wooster/school/graduation/|";
Link[13] = "1|Guidance|http://www.washoe.k12.nv.us/wooster/school/guidance/|";
Link[14] = "1|Library|http://www.washoe.k12.nv.us/wooster/school/library/|";
Link[15] = "1|Registration|http://www.washoe.k12.nv.us/wooster/school/registration/|";
Link[16] = "1|School Map|http://www.washoe.k12.nv.us/wooster/school/school_map/|";
Link[17] = "1|School Police|http://www.washoe.k12.nv.us/wooster/school/school_police/|";
Link[18] = "1|Wooster Boosters|http://www.washoe.k12.nv.us/wooster/school/woosters_boosters|";
Link[19] = "0|Staff";
Link[20] = "1|Staff|http://www.washoe.k12.nv.us/wooster/staff/index.html#staff|";
Link[21] = "1|Faculty|http://www.washoe.k12.nv.us/wooster/staff/index.html#faculty|";
Link[22] = "0|Departments";
Link[23] = "1|English|http://www.washoe.k12.nv.us/wooster/departments/english/|";
Link[24] = "1|Social Studies|http://www.washoe.k12.nv.us/wooster/departments/social_studies/|";
Link[25] = "1|Humanities|http://www.washoe.k12.nv.us/wooster/departments/humanities/|";
Link[26] = "1|Science|http://www.washoe.k12.nv.us/wooster/departments/science/|";
Link[27] = "1|Math|http://www.washoe.k12.nv.us/wooster/departments/math/|";
Link[28] = "1|Physical Education|http://www.washoe.k12.nv.us/wooster/departments/pe/|";
Link[29] = "1|Marketing Skills|http://www.washoe.k12.nv.us/wooster/departments/marketing_skills/|";
Link[30] = "1|Special Education|http://www.washoe.k12.nv.us/wooster/departments/special_education/|";
Link[31] = "1|High School ROTC|http://www.washoe.k12.nv.us/wooster/departments/rotc/|";
Link[32] = "1|Band|http://www.washoe.k12.nv.us/wooster/departments/band/|";
Link[33] = "1|Art|http://www.washoe.k12.nv.us/wooster/departments/art/|";


startup(4);
</script>
</BODY>
</HTML>

pyro
09-08-2003, 10:18 PM
The part of the code tells it which menu should start in the down position:

startup(4);

Jonathan
09-08-2003, 10:20 PM
wow you are fast! thanks for that fast reply! and, how can I put it so nothing starts? put it at 30, never mind... but thanks again!

pyro
09-08-2003, 10:24 PM
I wouldn't just set it to 30.. Try removing it all together, setting it to startup(); or if those don't work, you could try startup('');

Jonathan
09-08-2003, 10:28 PM
the startup('') works, thanks!

pyro
09-08-2003, 10:34 PM
You bet... :)