Live demo can be seen here:
Demo1: ClubVista Blogger Template (In Green)
Demo2: JavaScript-Array (In Blue) (Widget author's blog)
To add a widget similar to these, follow these steps:
STEP1:
Log in to Blogger, go to "Layout" -> "Edit HTML"
STEP2:
Now find this code:
</head>and immediately BEFORE/ABOVE it, paste this code:
<!--jquery-DD-Menu-Starts-->Now before you save the template, make these changes in the code :
<style type="text/css">
/* menu styles */
#jsddm
{ margin: 0;
padding: 0}
#jsddm li
{ float: left;
list-style: none;
font: 12px Tahoma, Arial}
#jsddm li a
{ display: block;
background: #324143; /*DARK-GREEN*/
padding: 5px 12px;
text-decoration: none;
border-right: 1px solid white;
width: 70px;
color: #EAFFED;
white-space: nowrap}
#jsddm li a:hover
{ background: #24313C}
#jsddm li ul
{ margin: 0;
padding: 0;
position: absolute;
visibility: hidden;
border-top: 1px solid white}
#jsddm li ul li
{ float: none;
display: inline}
#jsddm li ul li a
{ width: auto;
background: #A9C251; /*LIGHT-GREEN*/
color: #24313C}
#jsddm li ul li a:hover
{ background: #8EA344}
</style>
<!-- script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js" type="text/javascript"></script -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
var timeout = 500;
var closetimer = 0;
var ddmenuitem = 0;
function jsddm_open()
{ jsddm_canceltimer();
jsddm_close();
ddmenuitem = $(this).find('ul').eq(0).css('visibility', 'visible');}
function jsddm_close()
{ if(ddmenuitem) ddmenuitem.css('visibility', 'hidden');}
function jsddm_timer()
{ closetimer = window.setTimeout(jsddm_close, timeout);}
function jsddm_canceltimer()
{ if(closetimer)
{ window.clearTimeout(closetimer);
closetimer = null;}}
$(document).ready(function()
{ $('#jsddm > li').bind('mouseover', jsddm_open);
$('#jsddm > li').bind('mouseout', jsddm_timer);});
document.onclick = jsddm_close;
</script>
<!--jquery-DD-Menu-Stops-http://bloggerstop.net-->
To get the HTML color codes, you can refer to this image:
http://homepages.ulb.ac.be/~dgonze/INFO/htmlcolors.png
STEP3:
and go to "Layout" -> "Page Elements"
and click on "Add a Gadget", select it as "HTML/JavaScript" type
and finally paste this code in to the new widget:
<!--BODY-CODE-->And save the widget.
<ul id="jsddm">
<li><a href="#">JavaScript</a>
<ul>
<li><a href="#">Drop Down Menu</a></li>
<li><a href="#">jQuery Plugin</a></li>
<li><a href="#">Ajax Navigation</a></li>
</ul>
</li>
<li><a href="#">Effect</a>
<ul>
<li><a href="#">Slide Effect</a></li>
<li><a href="#">Fade Effect</a></li>
<li><a href="#">Opacity Mode</a></li>
<li><a href="#">Drop Shadow</a></li>
<li><a href="#">Semitransparent</a></li>
</ul>
</li>
<li><a href="#">Navigation</a></li>
<li><a href="#">HTML/CSS</a></li>
<li><a href="http://bloggerstop.net">Blogger Help</a></li>
</ul>
263 comments
Write comments «Oldest ‹Older 201 – 263 of 263 Newer› Newest»Hi,
ReplyYour post has been really helpful. But I still need some help. I would like to change the tab font to another colour and bold the font. I also can't seem to know how to change the drop down tabs colour to a solid colour. Because it is currently translucent (refering to the FAQ tab of my blog). HELP! Much thanks.
http://princessfashionpalace.blogspot.com/
dont mind me asking again ;;) plz help me with the above problem . looking forward for ur soution
Replyme too :)
ReplyJack
Any news please on my drop down issues?
ReplyHello Sai!!
ReplyThank you very much for posting this very useful tutorial along with the multi-level drop-down menu! Really appreciate it!
I have 2 questions for you:
1)I am using the simple drop down menu on my blog http://meryeniko.blogspot.com/
The sublinks have long titles and I wish to keep them that long. These sublinks are displayed as horizontally elongated boxes. Is there a way to make the text/sublink titles go in more than one line so that they're displayed more like square-boxes?
(I noticed that the multi-level menu doesn't make these elongated horizontal boxes, but the multi-level drop down was working only in Firefox when I tested it /didnt work in either Explorer or Chrome/).
2) Also, the submenu boxes are displayed behind my right sidebar in Firefox, I tried using both #jsddm {
margin: 0;
padding: 0;
z-index: +1;
}
and
z-index: +100;
but I still have the same problem. I added a 80px bottom padding but obviously it is only a temporary solution for this issue. How can this issue be solved?
Any tips would be greatly appreciated if you find time to answer my questions.
Keep on with the good work!
Best wishes! Eniko
1. Instead of auto-width, use a fixed width for the sub-menus.
ReplySo, change this:
#jsddm li ul li a
{ width: auto;
...
...
to this:
#jsddm li ul li a
{ width: 275px;
...
...
2. (Not sure, let's try)
Instead of adding that z-index: 100; to jsddm, add it to crosscol-wrapper.
so add this code to your tempalte (add it anywhere in the CSS section):
#crosscol-wrapper {
z-index: 100;
}
Hello Sai!!
ReplyThank you for the quick reply!!!
I've tried what you suggested:
question Nr 2)
#crosscol-wrapper {
z-index: 100;
}
isn't working, unfortunately.
Nr 1) I tried setting a fixed with in
#jsddm li ul li a
already, I tried it again now but it simply cuts off the rest of the lengthy text.
Is there a way to make the text go in more than one line within a box in the sublink menu?
I'm more concerned with nr 1) and not so much worried about nr 2)
Sorry for the trouble!
Appreciate any help
Eniko
hi
Replyi created a dropdown options in my site http://niftychartrealtime.blogspot.com/ but when i select an item it should update in the same site and in same page..how to achieve this.
hmm...nice, i want to try this code...
ReplyHi Sai!
ReplyI've found the answer for my question nr 1), that is how to make the text wrap or go in more than one line in the sublink boxes.
I set the white-space attribute to "normal" instead of "nowrap".
Also, adjusted the "height" attribute to "auto" in
#jsddm li ul li a
The boxes are still displayed behind the right sidebar, though, I haven't been able to fix that yet.
Take care!
Eniko
Hi! I facing a problem on my blog...I tried all of the above, ...but its still not working, my drop menu still hides under my post....what can i do...can anyone help?
Replymy blog: www.bienprojects.com
Yuki
I haven't been able to get the drop down portion of the menu to appear. I was successful in changing the colors and aligning it to my header, but am unable to get the drop down to drop down. Any hints or clues?
Replyhey there~ I loooove the look of this menu. It looks amazing with my site. I'm sure you're terribly busy, but I was wondering if you were thinking about ever attempting to just this code to work if it is placed right under the header? I'm just such a fan of the look of this one that I am trying to avoid finding a new code for a drop-down menu... my site is orfeevigori.blogspot.com (still under construction)
Replysorry I meant "I was wondering if you were thinking about ever attempting to ADJUST this code to work if it is placed right under the header? ..."
ReplyAll of a sudden, the menu won't drop down anymore. It was fins this morning, but nothing changed. There were no edits to the template, the code, no downloads to my PC and nothing was installed.
ReplyAny idea why the drop down part is no longer showing up?
Thanks!
That's strange, demo is still working correctly & my own top-drop-down menu is based on this widget.
ReplyI've tried removing the code completely, then adding it again, still with no luck. I don't know why it is no longer working. If you find anything out, please let me know.
ReplyI finally got it fixed! It turns out that if your drop-down boxes aren't showing up at all, make sure the code in Step #2 is the FIRST thing ABOVE < / head >
ReplyIf it's not the first thing above the < / head > tag, then it may not work.
I still having drop down menu behind my post. I have tried z-index:+100 but still doesnt work.
Replyhttp://gaomeishoes.blogspot.com/
hai i follow the above procedure! i didnt got the accurate in view!! plese help me, what modifications i have to do??
Replysee iam appy in this blog.
http://photobrowser.blogspot.com/
please help me!!
great drop down menu
Replyive jsut got one problem with it i'm getting 1px grey borders around the buttons even though i've deleted the only (only ones i can see/understand anyway) border attributes.
how can i get rid of the borders completely
here's my blog http://mamachicalocaweia.blogspot.com/
hi sai. how to customize our own pictures instead of text on the drop down menu?
ReplyHi Sai,
ReplyI found facing problem with this drop-down menu in IE8,
the problem is the sub-menu drops immediately after the page has been loaded without the mouse moving on it
I tried to solve my problem,n made to my requirement
Replythis is how made,I removed complete Tabs from my theme and I got,
but I dont suggest the same solution to everyone,I think it is better to choose a theme which doesn't have Tabs in it template,to make this drop-down work in IE
Hello!
ReplyIt worked, just perfect. I created a dropdown, but, for some reason it goes to first two labeled in the list, but it dissapeares after. Can you have a look on my blog. I already see these tabs in my dreams..
Please, help.
Karina
http://www.movetheglobe.com/p/about-me.html
Your code works for msie but not for any other browser...
ReplyWhat to do...?
Instead of putting the widget over the header image, keep it below it, i.e. below the header image and above the post-area.
ReplyHow do i change the menu bar so the entire length matches the width of my blog?? Thanks!
ReplyHello I used this on my blog and thanks so much for putting this out there for me to use. Although I need help. It's hiding some of my sub menus. (http://theaprilsheree.com) I have played with it but I decided to leave it alone for now and just ask for assistance. Also how can I get all the tabs to show? Please take a look and let me know when you get a chance.
Replythank uuu, I owe you big time ;)
Replythank uuu, I owe you BIG TIME,
Replyit works for me, only when I add more blocks (for more labels), always is left a small piece of white space (inside the menu border from the right side)
any ideas, please
I LOVE this menu, but can't seem to get the drop down to show in IE8. It works great in firefox and chrome, but in IE there is no drop down at all! Could you help me please please please?
Replyhttp://madebymadelinetest11.blogspot.com/ (this is just a test blog so I haven't customized the CSS yet to go with my template, nor have I updated the links!)
Removing all the tabs stuff from the template as suggested above fixed the problem for me!!!! Yippeee!!!!! It now works in IE8, Firefox, and Chrome.
Replyhi
Replyplease help me
i have the same problem as many others.
the drop down menu goes behind the elements below. i have tried all the tips in the comments but nothing seems to help.
http://greatpetroleumblog.blogspot.com/
I ran into the problem again in IE with the menu and an immage. This tutorial helped me finally fix it:
Replyhttp://brenelz.com/blog/squish-the-internet-explorer-z-index-bug/
Hey Sai,
ReplyYou seem to know a lot here. I can't seem to get this to work. Everything is set up right, but the drop down portions of the menu drop down behind the post.
How can I get my drop down menu in front of my posts?
McKay
Hello I am having the same problem with the drop down menus not showing up, I tried moving it around but no use. Please HELP. Thank you.
ReplyThis dropdown is much easier than in http://bloggerstop.net/2009/01/multi-level-drop-down-menu-in.html
ReplyI got it work but one thing: how I can make more level in this dropdown menu?
how to add more level?
ReplyNotice in the last code, every line starting from <li> and ending with a </li> code gives you a new level. So, that's it repeat that pattern according to your needs.
ReplyJust used it on a job and it's a nice simple drop down option, worked a treat thanks !
ReplyThanks you....just see how my menu looks..
Replyhttp://entertainmentking.blogspot.com/
itz not working in my blog
Replywww.winkship.blogspot.com
i cannot click on dropped menus????
i tried your trick and it works on my blog. my problem now is i want to place the menu just above my blog's header but it simply doesn't work.I have a link ad above my header and i want to exchange the placement of my menu tab and the link ad. my menu menu doesn't fall in the same line. it all scattered.
Replyyou can check my blog at www.yourgateway2success.com. any help will be much appreciated. thanks a lot.
pls check:
Replyhttp://letseatsomegoodfood.blogspot.com
I have tested every single menu bar, and it keeps going under other page elements. multiple, collapse etc.
i also try adding 1, 100, +100 in the css, still it goes under page elements.
anyone, pls help me..
mine seems working now adding z-index on all css of this code
Replygreat job!
Replyis it possible to add it to any template by blogspot?
ReplyOnly first item in the drop down menu is displayed. why it is so? Mu blog is http://shreyaghoshalmalayalam.blogspot.com/
ReplyHi..
ReplyThanks for sharing this information and resources it's really help full for me with the help of this we can improve our designs and development I really inspire with this information thanks
its does not working
ReplyNice post ..
Replyit's look good. Easy navigation for my visitor
Replywhy i cant post my comment here? it says.. you dont have permision to view this blog? whats the prob?
ReplyThe whole work is appreciable which is clearly defined here by the admin of blog. I never would have thought about it before. I definitely savored every single small bit of it because it’s very useful info for every blog maker. I just would like to say that carry your precious work on regular bases because it’s really knowledge plus for readers.
Replythanks a lot for sharing , jquery is helpful stuff
Replycan u tell me in details about the drop down menu bar... i cant display it on me blog..if u got some free time please go to my blog so we can have so chat... :)
Replyhttp://shinetourism-academy.blogspot.com/
thanks friend
Replyhi,
Replygreat blog..i found almost everything that i need here..
however, i have a question. i also added the forum (that i also read from your blog and it works perfect!). my question is my submenu in the dropdown are hiding behind the forum..
pls help..
thanks.
I've been removed ur dd menus from my blog cos of u didn't help me nor aswer my question at all....i've been asked u twice and linkedin ur url to all my site also giving u help by always visit&clickin ur ads/sponsor and many more,,,but u never answer all my question!
Replyi want to ask u once again about my homework that my boss giving it to me now....but,i think i better NOT TO ASK U FOR THE THIRD TIME....!
really dissappointing me...
:-L
Comments are moderated on this blog
Allowed HTML tags: <b>, <i> and <a>
Comment Like This! and Optimize your blog EmoticonEmoticon