Sliding Side-Menu in it's normal position
Sliding Side-Menu expanded on mouse hover
And to see the widget in action, click on this link: Dark Wooden Template
Now if you are impressed with the widget and want to add a similar widget to your blog, then simply follow these steps:
1. Download these two javascript files from DynamicDrive:
ssm.js, and
ssmItems.js [LINK to DynamicDrive]
2. Now open the second file (ssmItems.js) with note/text pad, and edit it :
<!--Now change everything in RED, GREEN and BLUE as per your requirements.
/*
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"; //White color behind links
linkOverBGColor="#FFFF99"; //Blue Color Behind Menu and External Links
linkTarget="_top";
linkAlign="Left";
barBGColor="#444444"; //Gray color behind Side Menu
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.
///////////////////////////
// ssmItems[...]=[name, link, target, colspan, endrow?] - leave 'link' and 'target' blank to make a header
ssmItems[0]=["Menu"] //create headerssmItems[1]=["BloggerStop", "http://bloggerstop.net", ""]ssmItems[2]=["Contact Us", "http://bloggerstop.net/2008/09/contact-us.html",""]ssmItems[3]=["Earn Money", "http://join-ziddu.co.cc/", ""]ssmItems[4]=["Cheap Domain", "http://main.bloggerstop.net/contests/1and1/1and1.html", "_new"]ssmItems[5]=["Blogger Templates", "http://bloggerstop.net/2008/09/blogger-help-free-blogger-templates.html", ""]ssmItems[6]=["Blogger Help", "http://bloggerstop.net/2008/09/blogger-help.html", ""]ssmItems[7]=["FAQ", "http://any_FAQ_PAGE", "", 1, "no"] //create two column rowssmItems[8]=["Email", "http://Your_Email_Add", "",1]ssmItems[9]=["External Links", "", ""] //create headerssmItems[10]=["JavaScript Kit", "http://www.javascriptkit.com", ""]ssmItems[11]=["Gallery", "http://gallery.main.bloggerstop.net/image1.htm", ""]ssmItems[12]=["Reviews", "http://review-the-web.blogspot.com", ""]
buildMenu();
//-->
The code shown in purple color are comments, you can change them to modify the background colors.
Now after editing, save the file.
3. Now upload these two files to MyDataNest.com (You have to register for free as a member to upload files).
4. Then copy the direct links to these files.
5. Finally change the links (in red color) in the following code with your new links from MyDataNest.com
<!--SIDE-MENU-STARTS-->
<STYLE>
<!--
A.ssmItems:link {color:black;text-decoration:none;}
A.ssmItems:hover {color:black;text-decoration:none;}
A.ssmItems:active {color:black;text-decoration:none;}
A.ssmItems:visited {color:black;text-decoration:none;}
//-->
</STYLE>
<SCRIPT SRC='http://dsai.588.googlepages.com/ssm.js' language='JavaScript1.2'>
//Dynamic-FX slide in menu v6.5 (By maXimus, maximus@nsimail.com)
//Site: http://maximus.ravecore.com/
//For full source, and 100's more DHTML scripts, visit http://www.dynamicdrive.com
</SCRIPT>
<SCRIPT SRC='http://dsai.588.googlepages.com/ssmItems.js' language='JavaScript1.2'/>
<!--SIDE-MENU-STOPS-->
Go to your blog template (Log in to Blogger -> Go to Layout -> Edit HTML), and find (CTRL+F) this code:
</head>And paste the code (obtained from step 5) just BEFORE/ABOVE it.
Source : http://bloggerstop.net
0 komentar:
Posting Komentar