I am using the Tab Slide Out jQuery plugin. http://wpaoli.building58.com/2009/09/jquery-tab-slide-out-plugin/
I have one tab that appears on the left, but I need another independent tab on the right. When I duplicate the css, js and div blocks, a tab appears on the right, but I can only activate one of them if I activate it on the right.
Also, the contact image appears only on the right, so I can only activate the right tab. How to do this so that I can have more than one tab on one page and activate it myself?
$(function(){ $('.slide-out-div').tabSlideOut({ tabHandle: '.handle', //class of the element that will be your tab pathToTabImage: 'images/contact_tab.gif', //path to the image for the tab (optionaly can be set using css) imageHeight: '122px', //height of tab image imageWidth: '40px', //width of tab image tabLocation: 'left', //side of screen where tab lives, top, right, bottom, or left speed: 300, //speed of animation action: 'click', //options: 'click' or 'hover', action to trigger animation topPos: '200px', //position from the top fixedPosition: false //options: true makes it stick(fixed position) on scroll }); $('.slide-out-div-apps').tabSlideOut({ tabHandle: '.handle', //class of the element that will be your tab pathToTabImage: 'images/contact_tab.gif', //path to the image for the tab (optionaly can be set using css) imageHeight: '122px', //height of tab image imageWidth: '40px', //width of tab image tabLocation: 'right', //side of screen where tab lives, top, right, bottom, or left speed: 300, //speed of animation action: 'click', //options: 'click' or 'hover', action to trigger animation topPos: '200px', //position from the top fixedPosition: false //options: true makes it stick(fixed position) on scroll }); });
Here is my css
.slide-out-div { padding: 20px; width: 250px; background: #f2f2f2; border: #29216d 2px solid; } .slide-out-div-apps { padding: 20px; width: 250px; background: #f2f2f2; border: #29216d 2px solid; }