I f you liked our original slide-in menu, you will really appreciate this updated version. This one has the ability to always be visible, even when scrolling as opposed to the original that would scroll out of site. It also has the ability to add graphics into the menu which we feel is a very nice touch.
[ Original Slide-In Menu ]J ust take your cursor and touch the "Side Menu" on the left and watch it slide out.
W e have tested the code in IE5.5, IE6, Netscape4.08 and Netscape7.0. This script worked well in all platforms tested with no variations observed.
S lide-in menu will satisfy even the most demanding webmasters. Among it's long list of features are:
- Ability to statically position menu on page, both x and y axis (as in demo), or simply inline.
- Support for loading link(s) in another frame or window.
- Support for multiple columns within each row.
- Fully customizable colors, dimensions etc.
- Script is cross browser functional (including NS6).
D epending on your knowledge of HTML and java scripts, this is not that difficult an effect to achieve. You must first upload two .js** files into the same directory as this menu will be. Then you will add a portion of code into the <HEAD> section of your document. This part of the code calls the two uploaded .js files and causes the script to work.
** These two files are on the script site in "Zip" format. If you need a little assistance with "Zip" files, grab the below link.
[ All About Zip Files ]O nce you have uploaded the two .js files (ssm.js and ssmItems.js), the reconfigurations begin.
A ll configurations to the menu are done inside the "ssmItems.js" file. Open the file using any text editor to edit the menu's style, and the displayed links.
I f you do not understand the theory behind "Opening Up" an uploaded .js file, it is quite simple. As you are viewing your web shell within your editor, you will see all your uploaded files.
Top Part Of Code
Select the ssmItems.js file and then select to "Edit", Not view it. Once you are looking at the opened file, you will see the reconfigurations. Below we will show you where to make the reconfigurations.This part is for the cosmetics. This is to reconfigure the color scheme and size on the slide in menu.
<!--
/*
Configure menu styles below
NOTE: To edit the link colors, go to the STYLE* tags and edit the ssm2Items colors
*/
YOffset=150; // no quotes!!
XOffset=0;
staticYOffset=30; // no quotes!!
slideSpeed=20 // no quotes!!
waitTime=100; // no quotes!! this sets the time the menu stays out for after the mouse goes off it.
menuBGColor="black";
menuIsStatic="yes"; //this sets whether menu should stay static on the screen
menuWidth=150; // Must be a multiple of 10! no quotes!!
menuCols=2;
hdrFontFamily="verdana";
hdrFontSize="2";
hdrFontColor="white";
hdrBGColor="#170088";
hdrAlign="left";
hdrVAlign="center";
hdrHeight="15";
linkFontFamily="Verdana";
linkFontSize="2";
linkBGColor="white";
linkOverBGColor="#FFFF99";
linkTarget="_top";
linkAlign="Left";
barBGColor="#444444";
barFontFamily="Verdana";
barFontSize="2";
barFontColor="white";
barVAlign="center";
barWidth=20; // no quotes!!
barText="SIDE MENU"; // <IMG> tag** supported. Put exact html for an image to show.
///////////////////////////* This refers to the below section of the code that you paste into the <HEAD> section of the document. It is not part of the two uploaded .js files
** Further down we will explain the specific way you must add images into this script for it to be seen and or function.
[ Image Tutorial ]
<STYLE>
<!--
A.ssmItems:link
A.ssmItems:hover
A.ssmItems:active
A.ssmItems:visited
//-->
</STYLE>{color:black;text-decoration:none;}
{color:black;text-decoration:none;}
{color:black;text-decoration:none;}
{color:black;text-decoration:none;}T he color coded word "black" can be replaced with either a different color word or with the use of a HEX code. Keep in mind that if you use a HEX code, be sure to precede the 6 digit code with the prefix character of # with No Quotes!! So what we would have is as shown in the below example.
<STYLE>
<!--
A.ssmItems:link
A.ssmItems:hover
A.ssmItems:active
A.ssmItems:visited
//-->
</STYLE>{color:#000000;text-decoration:none;}
{color:#000000;text-decoration:none;}
{color:#000000;text-decoration:none;}
{color:#000000;text-decoration:none;}N ow lets get into the different links and targets we can reconfigure within the confines of the external ssmItems.js file.
Bottom Part Of CodeThis part is to configure your links, targets and headings
// ssmItems[...]=[name, link, target, colspan, endrow?] - leave 'link' and 'target' blank to make a header
ssmItems[0]=["Menu"] //create header
ssmItems[1]=["Link Name Here", "Link Address Here", ""]
ssmItems[2]=["Link Name Here", "Link Address Here",""]
ssmItems[3]=["Link Name Here", "Link Address Here", ""]
Y ou can notice in the above partial reconfigurations of links and targets that there are "" after the link address. If you leave that as is, the link, when activated will target the same browser window. With this in mind, remember if you want to keep your guests on the main navigation page with this menu effect, you should have the link targeted to a new window. The you would add the attribute in between the "" of either "_new" or "_blank" to define the link to open in a new browser window. See the below for further clarification.
ssmItems[0]=["Menu"] //create header
ssmItems[1]=["Link Name Here", "Link Address Here", "_new"]
ssmItems[2]=["Link Name Here", "Link Address Here","_blank"]T he one other thing you need to bear in mind is that of the numerical sequence. If you want to add more than the default number of links, or categories, they all must follow the numbered sequence. A perfect example would be by viewing our example, at the bottom we have added the little statement of "Always Visible!". We did this by using the part of the code to create another new header or more appropriately footer by placing it under the last default entry which was number [12] and numbered it accordingly.
ssmItems[13]=["Always Visible!"] //create header
Note Of Importance!
O n a final note of importance concerning the URL this menu will be on.
Under no circumstances place a back/forward slash / after the page address this menu effect will be on or in a link to the page you place this menu. If you do, the slide-in menu will stop functioning and you will get an error on the page (In IE) and wonder why. To clarify this very simply, the address of this page is:Correct Address
https://www.angelfire.com/ny5/consigliere/slideinmenu2.html
Do Not! make the mistake of adding the back/forward slash into the address as below.Incorrect Address
/
https://www.angelfire.com/ny5/consigliere/slideinmenu2.htmlI f you would follow both of the below links, you will see what we are explaining about the back/forward slash. Both links will open in a new window so you do not lose this page.
[ Correct Way To Write Link ]
[ Incorrect Way To Write Link ]
T he last thing we will cover is the part about inserting images into the slide-in menu. This Must! be done a certain way or it will never work!
S ince this is a rather lengthy part of the tutorial, just follow the below link that will open in a new window to explain adding images into the script.
[ Howto Add Images ]I f by chance you clicked on the link within the slide-in menu for "Howto Add Images" or the above link forImage Tutorial" from the top of the page and were transported here, the answer is "Yes!". The script does support link anchors, either same page or different page. If you do not understand "Link Anchors" follow the below link.
[ Link Anchors ]I f you have noticed as you scroll down this page, the slide-in menu does not cover any text area. It is all blank space to the left side. We acomplished this effect by making use of opening <blockquote> and closing </blockquote> tags. If you would like to get a better understanding of different font commands, including but not limited to the blockquote tags, grab the below link.
[ Font Commands ]T hat should just about cover the updated always visible slide in menu. If you would like to add this effect into your pages, just grab the link in the slide in menu for "Get Code Here". If you have any problems feel free to contact us.
Search Our Site By Individual letter
[ A ]
[ B ]
[ C ]
[ D ]
[ E ]
[ F ]
[ G ]
[ H ]
[ I ]
[ J-K ]
[ L ] |
Little Tips Directory [ Page 1 ] [ Page 2 ] [ Page 3 ] [ Page 4 ] [ Page 5 ] [ Page 6 ] [ Page 7 ] |
[ Index Page 1 ]
[ Index Page 2 ]
[ Index Page 3 ]
[ Index Page 4 ]
[ Index Page 5 ] [ Index Page 6 ] [ Index Page 7 ] [ Index Page 8 ] [ Index Page 9 ] [ Index Page 10 ] [ Index Page 11 ] [ Index Page 12 ] [ Index Page 13 ] [ News Letter Archives ]
[ Navigation Page ]
[ Archives Of Published Material ] |
If you are part of the ever growing number of webmasters who enjoy sharing your knowledge with others on web design, join The Consigliere Ltd. web ring to broaden your scope of exposure.
Join Today
This Site Was Built And Is Maintained Exclusively by
The Webmaster @ Consigliere Ltd.
Copyright © Consigliere Ltd., All Rights Reserved. 2001-