Easy Tabs 1.2 – now with autochange
A new Version of the free EasyTabs Script is available. You can now set a autochange modus to one of your menus. Accessible compact and compatible with all browsers as always.
Examples
Here are three basic examples:
Basic Infos and Features
- Free for private and commercial projects
- successfully tested in IE5.0, IE5.5, IE6, IE7, Firefox 2, Opera 9.2
- if Javascript is disabled - all contentboxes are visible
- you can navigate between the tabs with the keyboard TAB Key
- you can easy define which Tab shoud be active @ start
- you can easy add as much tabmenus as you want on one site
- If you want that the tabs are changing on click and not on mouseover -> then just change the onmouseover to onclick
- Of course you can set a link to each Menu Tab - just set the linkurl in the href and delete the onclick="return false"
- In the Examples i've packed everything (Html, CSS, Javascript) in 1 File - but you can also put the css in an external css file and the javascript in an external javascript file. I've included one clean example in the Download Zip File below.
Code Explanation
There are 3 new Settings you can set in the javascript
//Set the number of your menu which should autochange var autochangemenu = 1;
//Set the speed in seconds when tabs should change var changespeed = 3;
//should the autochange stop if the user hover over a tab from the autochangemenu? 0=no 1=yes var stoponhover = 0;
I hope this Tab Menu is useful for you, if you have questions or improvements please post a comment, thank you.
Download EasyTabs 1.2 Example Package
Easy Tabs 1.2 (9,9 KiB, 567.092 hits)
Previous Versions of Easy Tabs
EasyTabs 1.1 (Infos here)
Easy Tabs 1.1 (7,0 KiB, 9.954 hits)
EasyTabs 1.0 (Infos here)
Easy Tabs 1.0 (1,2 KiB, 8.396 hits)
Joomla Plugin JooTabs by Ricardo Sousa und Andy Sikumbang
- jooTabs english
- jooTabs deutsch [German translation by Niko Winckel]

Schalten Sie Werbung auf Kollermedia.at - über 40.000 Visitors und 70.000 Pageviews pro Monat.

168 Kommentare »
20 Trackbacks
enabling var stoponhover = 1; in settings when using onclick mode helps to have autochange disabled in that event either until page is refreshed or restart (if stopped) link is clicked upon.
coming to the [Stop the Change] and [Restart (if stopped)] links, when they are clicked, again the browser moves to the top. The solution is simple again, just replace "onmousedown" with "onclick", it just works
thank you for the nice script
that's all was amazing .. but can I load tabs content to external file ?
thanks for share dude
Hello, is it possibile to return (after X seconds) to the active tag chosen with JS even if the user try to navigate through the tabs?
Hi,
How do I install this on wordpress?
Thanks!
Hello,
Very nice work. It's very helpful for me. I have installed on my wordpress site: http://gioithieugame.com/
But your script does not work on Opera, could you please fix it?
Thanks,
why there's some space between first tab with the second tab when i change the border of the tab with other color than the background?
it doesnt work inside a table!
wen charge it look disabled
how to fix that ?
@Edduard
it's works 4 me. i added a table outside the tabs and also inside the tabs body ( content ). but there some bug when i view it in IE, but it runs normal in FF or opera. there a space between the tabs with the tab's body. then, after a change it with table, the space's is gone. i don't know if something's wierd with those css, but what i can make sure is, that i lack knowledge about how css runs in IE.
Hi, this tabs are great code, and i'm using this for my site, on question, where do i can change color font on the each tabs! I'm trying to find out where to change color font from default light gray on the tabs to other color, i could not figure out where to change that.
please let me know thanks.
AM
awesome .... nice share ... thanks dudee
Very easy example and work in IE, Opera and Firefox
Nice!
hello, I have some problem, why the tab content are show all in IE but in FF is OK.
how can i fix its!! thanks
For use on a Sharepoint page (as in a Web Part or in an ItemStyle XSL template) the OnLoad statement will interfere with other page content scripts. Instead, change the OnLoad into a function and push the name to Sharepoint.
E.g. change this
window.onload=function(){
var menucount=loadtabs.length; var a = 0; var b = 1; do {easytabs(b, loadtabs[a]); a++; b++;}while (b<=menucount); if (autochangemenu!=0){start_autochange();}}
to
function startEasyTabs(){
var menucount=loadtabs.length; var a = 0; var b = 1; do {easytabs(b, loadtabs[a]); a++; b++;}while (b<=menucount); if (autochangemenu!=0){start_autochange();}
}
_spBodyOnLoadFunctionNames.push('startEasyTabs');
Cheers!
Give somebody the to a site about the,
Best,
really great sites, thank you,
Valuable news and excellent sketch you got here! I would like to thank you against sharing your thoughts and occasion into the poppycock you collection!! Thumbs up
Hello,
I set 2 tabmenu, one for the featured post (this works fine) and one to display Website info in home page and in single post (this doesn't work).
If I view it in home page it works fine, but if I view it in a single post it doesn't hide all the tabs except the clicked one.
Is this a bug?
Please help me.
Thank you.
Hi,
Great work thanks for sharing! Any chance you'd share the script for the Tab Menu you have in this page which includes the Print, Email and PDF version options?
Thanks again!!
Hi- Great script..
I have it loaded and it works However content from all tabs appear when the page is first loaded. When I mouse over any tab - then the content from just that tab appears.... but on initial page load all content from all tans appears on one page.
This site isnt live yet so I cant provide an example url- but hoping you have an idea based on my description ?? please help
and thanks so much
Jenell
@ Jonell:
I have your same problem.
I solved simply using another script: jQuery UI.
Now with just one line I can make tabs with a lot of visual effects (rotate, slide, etc.).
Furthermore, jQuery is compatible with all existing browsers.
http://jqueryui.com/demos/tabs/
Is it possible to dynamically set var loadtabs? I'd like a different tab to be default depending on which page is loaded. I believe I may be able to read a session variable in javascript by writing it to a hidden text box. Any help on how to do this would be appreciated. Thanks in advance.
How does it come that, when i open my website that the comment
boxes of the differtent tabs are underneed each other...
I you open the site i want that only the comment box of tab1 is viseble.
How should i do that ?
Do you have a link for me Mathias?
@Ryann - You can do this with php: if ($page =="news") {echo "1";} else if ($page=="archiv") {echo "2";}
just echo the value in the line: var loadtabs = new Array("")
Hello,
I'm also having problems with the tabs showing up one below the other. It seems to start working once I hover on any of the tab headings. I'm using ItemStyle XSL template on my site so I believe this is why it's not working properly. I tried previous solutions but nothing seems to work.
Here's a link to one of my site's products:
http://www.carrodelectronica.com/store/index.php?_a=viewProd&productId=14037
Thanks!
Never mind... figure it out. I found an article that outlines how to add jQuery library when using Cubecart V4 shopping cart. Thanks!
http://benfrain.com/notepad/2010/01/adding-jquery-and-jquery-lightbox-to-cubecart-4.html
unpack the zip archive does not work. can you repair it?
Can not down you Easy Tabs 1.2 version get an error
Can you email it to me or provide another link?
Thanks
Easy tab 1.2 zip file is empty.
This worked perfectly for me. I run a joomla website and some times adding more functions or another jquery file can lead to conflicts. This is old school but it worked like a charm. Thank You!!!
Hi - this is not actually my site but I am trying to help the owner with a persistent problem. When a page loads the menu is expanded until I mouse over a menu/tab item, when it contracts. How can I get this behaviour to stop or at least correct itself automatically?
The file i downloaded is useless......
Thanks a lot .
what a pity !
Sorry i have a little mistake .
It is a very great thing, instead of "what a pity !"
thank you for wonderful script
I seem to have a conflict with mootools library... has anyone figured out how to fix it?
AutoTab works in FF both pc and mac, but none others with autoTab on.
What an amazing script, simple, easy to read, and without using "replace" that eay is not allow.
Thank you very much!!!
thanks for that one, it save my day
thanks,so cool
Thanks for your nice work. Now, the content is displayed when I move the mouse on a tab. What should I do if I want to read the content by clicking a tab rather than moving the mouse on a tab? Thanks.
It's ok, it easy to use, thanks
Hi there, great script, thanks for providing it. I would like to use the one tabmenu for a project. Wondering how I could make one menu, but two (or more, possibly) rows in the menu. Again, don't need a separate menu, because I want the content for all the tabs to display in the same place. However, it's going to be a menu with about 10 items in it, and there won't be enough room on most screens for it to be entirely within one horizontal line.
Or, do I just keep adding items, and perhaps they'll wrap? Is that supposed to be the strategy here? Thanks for any feedback!
Er, I just experimented a bit, and I don't think they're going to wrap automatically. At least, in Safari, they certainly don't seem to be.
Can anyone tell me how to accomplish wrapping / additional rows? Thanks!
thank you for wonderful script, how to scrip jquery ?
How come I actually i never thought of these?
Please tell. How to install wordpress?
Hi I want to add a fade in fade out function with this tab content, how can I do this. please help me out
this is china ?????????????thanks for your code,it's nice