Related Post

200 Comments Received

May 1st, 2007 @12:08 pm  

I don’t think onClick is particularly intuitive. Considering it’s out the way (by some measure) wouldn’t it make more sense to react on hover?

May 1st, 2007 @12:14 pm  

yeah thats very possible. The only thing I was trying to avoid was for the slide to start without the user knowing what was going on. With so many flash banner adds that stretch over the content totally stopping users from reading the copy I decided that I didnt want to provide an on hover just incase it looked a bit spamy. I get your point though and it can be easily implemented. Maybe a better more eye catching deign is the way to go?

May 9th, 2007 @4:15 pm  

Dear Sir or Madam, i really liked you sliding menu! although could i use it for my webside works? and how could i change the manu position from right to left and middle to top like? also how to change the menu images inot others? THANKS EVER SO MUCH!!!

May 12th, 2007 @8:13 pm  

wow..this is sexy..great work.

(pink bLack)

May 23rd, 2007 @6:02 am  

Wow this is a nice (sexy) menu.
Good Work

May 23rd, 2007 @10:56 pm  

I have a question what modules of mootools did you use, of i have a another application of a slideshow so that i dont have double modules..

May 30th, 2007 @9:59 am  

Hello, this is awesome! I too would like to know which modules were used; as to not interfere with other mootools implementations.

May 30th, 2007 @6:47 pm  

Is there any way to get the tab to follow the content box when the slide menu is on the left side. Currently it will follow the content box when positioned to the right side of the screen but not the left. Thanks.

June 11th, 2007 @6:15 pm  

I Andy
I would like to start the slidebar open and then onclick closed.
I try to modify in the css #sidebar – right: 250px but not work well.
Please you have suggestion.
Thanks

June 14th, 2007 @4:59 am  

Euugh! Sliding menus are as bad as blinking text and sliding banners, they belong in 1997 not 2007

June 17th, 2007 @7:40 am  

Just to say it doesn’t work with Konqui.
With CSS hype, it was easyer to use NOT( FF && IE ) navigator. With DIY2.0 it seem’s to be 90’s come again. :(

June 19th, 2007 @6:16 pm  

Here about your site(side-bar.js) in Javanese!
http://youmos.com/news/side_bar_menu_js
Thanks!

July 13th, 2007 @5:41 am  

Thanks for the link youmos. :-)

July 13th, 2007 @11:55 pm  

Wow… great job :)
Thanks…

August 15th, 2007 @9:29 am  

There’s a little typo in the css :
body{padding:0px; /* paddign^^ */}
and a bug on opera fixed by a :
#sideBarContents{float:left;}

Really good mootools use… I like it, and will use it

September 9th, 2007 @11:53 pm  

how to add it in php-fusion , same like here :
http://www.phpfusion-themes.com

November 7th, 2007 @9:28 am  

wow!! … amazing menu .. thanks a lot!!

November 13th, 2007 @4:56 pm  

Hi Andy,

re: degrading with JS turned off

Why don’t you just collapse the sidebar menu via mooTools when the page is initially loaded. That way when Javascript is off the side menu will be expanded and usable as per usual.

I’ve used that technique quite a few times for jQuery snippets I’ve done and it always works a treat. JS users get what you intend, everyone else gets a static version that works just as well.

November 14th, 2007 @3:46 am  

Just found that the right: -7px will result in a scrollbar on the bottom of the browser. Adjust it to 0 and it works nicely.

Additionally, when using this on a templated page, a click on the opener will send you back to index.php as the link event is not stopped. So, simply replace the event click like this:

$(’sideBarTab’).addEvent(’click’, function(event) { event = new Event(event).stop(); extendContract()});

This will prevent the link to get passed through.

November 14th, 2007 @11:08 pm  

I like it so far. You can always improve it by adding a way to add more child menus?

November 17th, 2007 @10:04 am  

Hello folks. While redesigning my blog I discovered the Sexy sliding bar. made a little change in the js and html to suppress the Safari problem. Probably not the best solution but efficient: just put the minimal width at 1px. Tested on Safari 2 and Firefox 2 (OSX Tiger)

in html code:

in side-bar.js:

if(isExtended == 0){
sideBarSlide(0, height, 1, width);

else{
sideBarSlide(height, 0, width, 1);

November 26th, 2007 @3:05 pm  

Can somebody please teach me how to get this amazing menu????

December 10th, 2007 @2:23 pm  

Jaliefa
Just download the sample provided, it all works and you can do whatever you like with it.

January 5th, 2008 @2:15 pm  

hello people if you need more about css you can check http://webmaster-labs.blogspot.com/ here.

January 9th, 2008 @11:17 pm  

what’s a cool!! thank you.

January 11th, 2008 @9:57 am  

This is a great menu and I’m having great fun playing around with it, so thank you very much!

However, do you know if there is a way to “float” or “position” the menu above layers without having to use position:absolute?

The reason being is I’m designing a fixed width site and not a fluid one and would love the menu to sit on my right hand column.

Cheers

January 11th, 2008 @10:12 am  

Also, is there any chance of revising the menu for a “top bar” so that it comes in from the top of the page?

January 12th, 2008 @5:58 am  

Making the bar come from the top of the page should not be very difficult and I am working on it over the next week or so, so come back soon to see the results.

January 12th, 2008 @6:40 am  

and opera????? :(

January 14th, 2008 @3:03 am  

Cheers Andy, look forward to it.

Efwe, see Alcarin’s comment regarding Opera here, http://www.andrewsellick.com/35/sexy-sliding-javascript-side-bar-menu-using-mootools#comment-3100

February 3rd, 2008 @8:25 am  

Hi,
great work – lovin’ it.
I would also be interested in a “mouseover” version.

Keep up the good work.

Cheers

February 13th, 2008 @4:01 am  

too…………good…………

February 16th, 2008 @3:00 pm  

Hello,

Great script, I’ve used it on my site.
One question here, how to remove the ‘#’ in the URL when clicking the menu?
e.g., http://gallery.zzvo.com/main.php#
remove the ‘#’ at the end of the URL?

Thanks.

February 17th, 2008 @6:59 am  

Hi Jesse,

Great implementation. Looks fantastic. To remove the # you need to simply stop the event. This can be achieved with the following example:

$(’element’).addEvent(’click’, function(e){
e = new Event(e);
e.stop();
});

Hope that helps. I’m currently rewriting the code into a class and trying to include as many of the features that have been requested as I can so come back soon to see the all new Sexy Sliding side bar.

February 17th, 2008 @7:55 am  

Hi, andy

Thanks for your encouragement.
Code added, Problem solved. Take a look at my gallery site:
http://gallery.zzvo.com/

I have a suggestion, can you turn it to supporting auto HEIGHT?

I’ve removed some features, coz my menu is dynamic and unfixed height.
It caused problem with unfixed height. Fixed width is ok, no problem.

Looking forward to the new code.

February 22nd, 2008 @1:27 pm  

It works great and I am very happy that I got it here thanks a lot

February 29th, 2008 @2:45 pm  

Very nice, thanks for the work.

I want to use this on my site with a custom image, but in IE the image doesn’t show, and in FF the arrow doesn’t flip. How can I get it to flip when opened?

Thanks in advance.

February 29th, 2008 @2:54 pm  

Nevermind- I got it. Thanks for for the fantastic sidebar!

April 1st, 2008 @11:02 pm  

hey man,

Thank you very much for the wonderful… Slide-in-bar.. It is awesome and simply cool…

Thanks a lot..
regards
nair

April 3rd, 2008 @9:00 pm  

Cool menu and I would love to use it only if I could figure it out. Is there a way to move this tab from the side of the page. I have a center element or a container that has margin: auto for left and right. So to hang this tab menu off this element causes it to push this center container down. How do I work around this without making the container position: absolute?

April 7th, 2008 @9:33 pm  

I must say, this is one of my favourite tutorials. Check the website that I made. I tried my best to change the look to give it a more unique style. I couldn’t change the pink because its one of my favourite colours! And no, it doesn’t belong to the ’90s old fashion design. It only depends on how you use it. Am I right Andrew? :P

April 8th, 2008 @12:43 pm  

Hey everybody,

Very nice job but how can I do to make multiple slide-in bar?

Thx
Regards

April 15th, 2008 @3:51 am  

cool work. very nice sliding movement

April 17th, 2008 @5:03 am  

Great work, Andrew!

Here is a jQuery version for the Sexy Sidebar.

April 18th, 2008 @1:44 am  

diffucult

April 24th, 2008 @8:39 am  

Great menu!
Do you have an idea when you will be working on the your future plans for this menu (accessibility optimization etc.)? I am working this menu into a clients site right now but accessibility is very important to him especially the visibility of the menu when javascript is off.

Thanks!

April 30th, 2008 @2:10 pm  

any update andy?

has anyone managed to have more then one of these on a single page??

thanks

May 2nd, 2008 @3:12 pm  

thanks

May 23rd, 2008 @1:45 am  

Is there anyway to have multiple menus on one site?

June 11th, 2008 @10:15 am  

how I could change the menu bar position from right to left?

June 17th, 2008 @4:12 am  

what to do to make the sidebar work with mootools 1.2?

Fx.Style is no longer available?

Best W

June 17th, 2008 @5:07 am  

“what to do to make the sidebar work with mootools 1.2?

Fx.Style is no longer available?”

Are you gonna port it?

June 18th, 2008 @2:46 am  

Try changing:

new Fx.Styles -> new Fx.Morph

and

myEffects.custom -> myEffects.start

Should be working with 1.2 then.

June 18th, 2008 @4:02 am  

working now with 1.2.

many, many thx!!!

Best W

June 24th, 2008 @2:50 am  

its a great hack.. i want to implement it on my blog.. but something is gng wrong…can you explain in brief as to how do i put codes in my template.. waiting for your reply.. thank you

visit: FreeDownloadz

July 16th, 2008 @12:51 pm  

I love this, what a great tool! However, I’m also curious if anyone has found a way to have more than one menu on a page. Any info here at all?

Thanks
~Brandy

July 25th, 2008 @2:59 pm  

Great work.
I am having problem using this on Firefox 3. Menu gets displayed below the Sidebar image. But works fine with IE7. Any fix?

August 11th, 2008 @11:05 am  

for Firefox 3.0 just float the sidebartab and sidebarcontents

August 11th, 2008 @5:40 pm  

Thanks. Very good css Menu.

August 11th, 2008 @8:00 pm  

tankyou, muy bueno

August 11th, 2008 @8:02 pm  

muy bueno

August 12th, 2008 @6:48 am  

The html-source contains a mistake:
in line 11: paddign = padding

But really good work ;)

August 18th, 2008 @1:19 pm  

somebody can xplainme how to put this excelent bar menu in the left side of my website?

August 21st, 2008 @2:49 pm  

Wow… really great job…thanks

August 25th, 2008 @8:26 am  

this doesn’t seem to work in ff3, safari3

August 26th, 2008 @11:18 pm  

not working propely in mozilla

August 27th, 2008 @10:47 pm  

Good job and thanks fo sharing !

September 2nd, 2008 @11:09 pm  

Hi there!

I’m trying to use your sexy menu on a page wheree I also use mootools fx slide. How can I do to make it work with fx slide? I user mootools mootools-1.2-core.js.

When I to implement you menu the fx slide content stop working.

Hope someone can replay me….

/thanx

September 4th, 2008 @1:45 pm  

hentai mushrooms mushroom hentai of mushroom

September 30th, 2008 @11:16 am  

الاسم : حسن محمد علي ولي
البلد : اللمملكة العربية السعودية الشرقية
العنوان : الخبر
الجوال الدولي : 009663508433023
الجوال من الداخل البلد : 03508433023
الجوال من الداخل البلد الخبر : 0508433023

حسن هاي

October 15th, 2008 @6:06 pm  

Excelentes aportes, felicitaciones.

October 15th, 2008 @6:23 pm  

agradecemos toda la ayuda que puedan brindarnos en difusion.
gracias

October 20th, 2008 @11:03 am  

you can even use jQuery for such effects..i am already using it.. its very easy and flexible… anyway nice work…

November 7th, 2008 @2:10 am  

Hi Andy,

lovely tut once again. Was just wondering if it is possible to implement this technique to have a drill down menu? e.g. http://www.deviantart.com main navigation?

November 11th, 2008 @7:42 am  
November 13th, 2008 @3:19 am  
November 16th, 2008 @4:25 pm  

In love with this site, fantastic. You might get a kick out of this Download Unlimited Xbox 360 Backups For Life Check it out.

November 21st, 2008 @9:18 am  

so i guess nobody is using this on left side?
i can not make it work!!! #W%^Y%T$#@^Y%$#@

anybody willing to help?

November 23rd, 2008 @6:28 pm  

invito a quien lo desee, sumarse a mi red de contactos y juntos construir una buena comunidad

November 26th, 2008 @7:44 pm  

@Veki: Calm down. Change:
#sideBar {

right:-7px;

To: left:-7px;

As for the Safari/Chrome issue, it’s cased by the background image in #sideBar. Remove that, do a bit of tinkering to the sizes, paddings and margins, and you’re in business.

I don’t think it’s been mentioned in the comments, but this menu can be made to have a flexible height. In side-bar.js, change:
var height = 320;
To: var height = “100%”;
… might also require the removal of a height attribute in the css, but my memory fails me there.

November 27th, 2008 @12:36 pm  

Chat Sohbet

November 27th, 2008 @12:37 pm  
November 28th, 2008 @7:59 am  

I like it so far. but it is not working in Firefox/3.0.4

for Firefox/3.0.4 we can add small code in css…

In :

#sideBarTab{
float:left;
height:137px;
width:28px;
padding:0;
margin:0 5px 0 0;
}

#sideBarContents{
overflow:hidden !important;
float:left;
padding:0;
margin: 0;
}

December 3rd, 2008 @9:21 pm  
December 8th, 2008 @3:11 am  

The Sexy Slide Menu working fantastic. Can I have any suggestion how to create sub-menu in the same. I will be more great full, if any body helps me.

December 19th, 2008 @4:01 am  

Breakups Aren Breakups Aren

December 19th, 2008 @8:37 am  

thanks

December 28th, 2008 @5:53 pm  

agradeceria consejos para una web buena.
gracias

December 29th, 2008 @6:09 am  

tanks for post

January 30th, 2009 @6:03 pm  

As for the Safari/Chrome issue, it’s cased by

February 10th, 2009 @12:43 pm  

It does not work properly in Safari

February 18th, 2009 @1:27 am  

What do we need to change besides Fx.Styles to Fx.Tween to make this compatible with MooTools 1.2?

March 1st, 2009 @10:37 pm  

hi ,

its look and feel is good

i want to change width and need scrolling with my page…..
is it possible for this menu….

April 15th, 2009 @5:51 pm  

I have applied it on my site and its looking good. But the thing is that when the site loads, it opens expanded.

Please help.

By the way, when the sidebar is open by it self it works fine, but after integration with other css scripts, this prob is caused.

April 24th, 2009 @11:37 am  

Really Nice Sidebar menu.
thanks

May 15th, 2009 @10:45 pm  

It is a great menu, can run in IE but Firefox can’t.
It can’t show normally, the side bar title and link will be placed follow the sidebar button, not show horizontally.
How can I fix the problem?

Интересно! Вообще, забавно видеть , когда в считанные часы совершенно без малейшего повода из пальца высасывается такой “новостной сюжет” и начинает широко гулять по интернету. :)

May 22nd, 2009 @11:11 am  

Your blog is very interresting for me, i will come back here..

June 1st, 2009 @1:46 am  

THANKS EVER SO MUCH!!!

June 13th, 2009 @10:01 am  

Hi, I am using your menue and it is very good, however I have just 1 problem, which is when I zoom out or in the menue moves from its place, is there anyway possible to make sure the menue does not move what so ever even when page is zoomed in or out.

Thanks

June 16th, 2009 @12:46 pm  

its not working on Microsoft FrontPage.

June 25th, 2009 @1:29 am  

thank you

July 3rd, 2009 @7:25 am  

cool work. very nice sliding movement

July 6th, 2009 @11:20 am  

Is there a way where it will slide up and down when you scroll up and down?

July 7th, 2009 @3:50 pm  

thank

July 7th, 2009 @10:17 pm  

thx so much!

July 21st, 2009 @6:34 am  

I couldn’t get this working properly in latest version of safari and I’ve never really used MooTools in anger. I didn’t have much time to work on a proper fix but I have fixed it by setting sideBarContents display to none initially and then in the javascript display or hide it depending on expanding or collapsing.

CSS:

#sideBarContents{
overflow:hidden !important;
float:left;
display:none;
}

side-bar.js:

function extendContract(){
if(isExtended == 0){
sideBarSlide(0, height, 0, width);
sideBarOpacity(0, 1);
isExtended = 1;
// make expand tab arrow image face left (inwards)
$(’sideBarTab’).childNodes[0].src = $(’sideBarTab’).childNodes[0].src.replace(/(\.[^.]+)$/, ‘-active$1′);
$(’sideBarContents’).style.display=”block”;
}
else{
sideBarSlide(height, 0, width, 0);
sideBarOpacity(1, 0);
isExtended = 0;
// make expand tab arrow image face right (outwards)
$(’sideBarTab’).childNodes[0].src = $(’sideBarTab’).childNodes[0].src.replace(/-active(\.[^.]+)$/, ‘$1′);
$(’sideBarContents’).style.display=”none”;
}
}

Hope this is useful to someone :)

July 21st, 2009 @7:23 am  

Appologies for the double posting, but I’ve got a little more to add.

I wanted to beable to scroll down a long page and open/close it at any time without it taking you back to the top.

To do this I’ve removed the href=”#” in the html so the opening tab is now just:

Then in the sidebar.js i’ve changed the init function (as recommended by Andy here: http://www.andrewsellick.com/35/sexy-sliding-javascript-side-bar-menu-using-mootools#comment-23917) to:

function init(){
$(’sideBarTab’).addEvent(’click’, function(e){extendContract()});e = new Event(e); e.stop();
}

Now this works but because it’s no longer a link, you lose the “hand” cursor to tell you it’s a link. To get this back, add cursor:pointer; to #sideBarTab to get something like this:

#sideBarTab{
float:left;
height:137px;
width:28px;
cursor:pointer;
}

Hope this is useful to someone too :)

July 21st, 2009 @7:26 am  

Oops, forgot to add that I keep the menu at the same point on the screen (to allow me to scroll down the page with it still there). I did this by changing the #sideBar position to fixed:

#sideBar{
position: fixed;
width: auto;
height: auto;
top: 200px;
right:-7px;
background-image:url(images/background.gif);
background-position:top left;
background-repeat:repeat-y;
}

Last post, promise :)

July 29th, 2009 @6:22 am  

Very interesting sites.,

August 12th, 2009 @7:19 am  

you can even use jQuery for such effects..i am already using it.. its very easy and flexible… anyway nice work…

August 15th, 2009 @12:33 am  

Very nice job but how can I do to make multiple slide-in bar?

August 15th, 2009 @12:33 am  

ThanSs Yavyummm

September 26th, 2009 @5:01 pm  

Wondering if anyone can help me with this script. I’ve tried several different outlets and options, but nothing is working.

I need to duplicate this script, to have 2 separate bars on a website. I need 2 because they are for 2 different uses. I have duplicated some of the css tags, and have added a second div tag with different links below the first, however only one of my bars is working. I also tried to duplicate the side-bar.js file into a side-bar2.js file and changed some of the tags to match the new #2 css tags, but the only thing that did was make the second animation run overtop the first.

Can anyone tell me how I can duplicate this properly to have 2 separate bars on the website, with different links? Thanks!

September 28th, 2009 @2:37 pm  

cool script. very nice sliding movement

October 9th, 2009 @9:15 am  

6K9Rb3 ydojabdfhzun, [url=http://lxqdpnfafcct.com/]lxqdpnfafcct[/url], [link=http://uuirdupyncmt.com/]uuirdupyncmt[/link], http://xqzrctdieawr.com/

October 22nd, 2009 @8:34 am  

But supporting the uprising owing to its progressive content is on the same plane as supporting the regime owing to the progressive content of its economic policies and structures. ,

October 23rd, 2009 @5:42 am  

I am getting more and more media stating they will not speak to an author if they do not have a good website. ,

October 24th, 2009 @10:41 am  

cool script

October 29th, 2009 @1:48 pm  

claritin drugs Order anafranil cumming family medicine statistics on smoking uk national ban moderately severe depression
http://rxdrugs24×7.com/product/cardizem-hci.html

December 18th, 2009 @6:17 am  

hai i am sexyboy

December 20th, 2009 @10:36 pm  

nicely done and u made it appear real easy, i mean just copy and paste.
thnx

December 25th, 2009 @5:25 am  

I am so glad that this still works so seamlessly. Thank you.

January 5th, 2010 @3:37 am  

thanks for this type of article.after a long surfing i got this one.thanks again.

January 5th, 2010 @7:48 pm  

Hey,

I have to mention that CraigDouglas’ fix for Safari/Chrome worked for me. That said, you can initially set your CSS for

#sideBarContents

to

display: none

but have both the extend and retract action in the JS do :

$(’sideBarContents’).style.display=”block”;

I found that his original fix lost you the slide-in animation, while this seems to work for me on Safari 4.0.4 and Google Chrome. There is an odd flshing thingy happening, but it works.

January 5th, 2010 @8:36 pm  

Oh, and I’ve found that the html code uses a line stating :

to listen for the click on the JS side.
Trying to use this with MODx CMS, the href=”#” call triggers a page change on a php page. You fix that by using a tag to listen for the click, leaving the page peaceful and very unreloaded. Like this :

January 8th, 2010 @5:26 pm  

Just to improve the Chrome / Safari fix above.

In order to preserve the animation effect guys just include the display: none; property in a timeout.

Eg:

setTimeout ( “$(’sideBarContents’).style.display=’none’;”, 1000 );

This will preserve the effects along the fix for chrome/safari.

PS. The last integer is the actual timeout, you need to have it set the same as your slideDuration variable.

The only problem that I’m having with this script is when using png’s as background images for #sideBar on Internet Explorer 6. No png fix seems to work, hence I cannot use tranparent background(gif sucks) in IE6 only.

January 17th, 2010 @12:29 am  

Nice menu. Very interesting for sexy developments.

January 20th, 2010 @5:48 am  

Hi ! Nice menu !
I’m briging a question from the dead here … i have the same doubt as ‘mutlu dogan’(May 9th, 2007) hahahahaha …
i really tried to change the side of the bar (from right to left) and is it possible to turn this sliding into a kindda ‘drop-downish’ menu? Like flipping the button 90 degrees?

Thanks
Victor

January 25th, 2010 @9:28 pm  

Thanks Bebem

Pingback & Trackback
Pingback from Sexy Sliding SideBar using mootools at Van2T in July 2nd, 2007 @6:04 am  
Pingback from Name and Shame at Andrew Sellick in July 13th, 2007 @6:39 am  
Pingback from 20 Awesome Java script CSS Menus in October 31st, 2007 @2:09 pm  
Pingback from i say that | Best Of October 2007 in December 14th, 2007 @6:17 am  
Pingback from Powerful CSS-Techniques For Effective Coding in February 23rd, 2008 @9:27 am  
Pingback from Profesyonel Ajax ve Javascript’ler « kamer) in April 25th, 2008 @9:26 am  
Pingback from CSS Tricks und Tutorials | Photoclinique in July 28th, 2008 @11:40 pm  
Pingback from The Best CSS / Javascript Menu’s | Net Feast in August 16th, 2008 @1:34 am  
Pingback from 25 Awesome tutorials for web designers | Boxed CSS in August 16th, 2008 @6:54 am  
Pingback from Menu coulissant en Mootools | Web design in August 19th, 2008 @8:24 pm  
Pingback from RSSA聚合 » 25 Awesome tutorials for web designers in September 9th, 2008 @1:45 am  
Pingback from JavaScript and CSS Menu Libraries catalog in October 22nd, 2008 @2:22 am  
Pingback from 110+ javascript / Ajax bookmarks for web developers in October 29th, 2008 @11:40 am  
Pingback from 30 Adet Javascript Menü in June 6th, 2009 @2:22 am  
Pingback from 7 Great Javascript CSS Menus | denbagus blog in November 4th, 2009 @5:16 am  
Pingback from 13 Javascript CSS Menus « VECTOR Tutorial in November 15th, 2009 @3:35 pm  
Pingback from 13 Awesome Javascript CSS Menus | Theme Center in November 19th, 2009 @8:05 am  
Leave A Reply

Please Note: Comments maybe under moderation after you submit your comments so there is no need to resubmit your comment again