Easy Tabs 1.1 – free Tab Menu
Update 10.07.2007
There is a brand new Version of the Tab Menu available - it's called Easy Tabs 1.2 and you can find and download it here.
The first Version of my free Tab Menu has been downloaded over 5000 times. The script was ok but far away from perfect. So i've optimized the code (as good as i could) and made a few improvements to the menu. The Menu is now called Easy Tabs 1.1 (free for private and commercial projects).
Features and Infos
- successfully tested in IE5.0, IE5.5, IE6, IE7, Firefox 2, Opera 9.2
- if Javascript is disabled - the content is now visible
- You can navigate between the tabs with the keyboard TAB Key
- you can easy define which Tab shoud be active @ start
- it's really easy now to add more tabmenus @ the same site [see the examples below]
- 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 below 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.
Live Examples
Here are three basic examples:
Code Explanation
There are 4 Settings you have to set in the javascript:
//Set the id names of your tablink (without a number at the end)
var tablink_idname = new Array("tablink")
//Set the id name of your tabcontentarea (without a number at the end)
var tabcontent_idname = new Array("tabcontent")
//Set the number of your tabs
var tabcount = new Array("4")
//Set the Tab wich should load at start (In this Example:Tab 2 is visible on load)
var loadtabs = new Array("2")
If you have more than one tabmenu, just enter another value in the Arrays for Example:
//Set the id names of your tablinks (without a number at the end)
var tablink_idname = new Array("tablink","anotherlink")
//Set the id names of your tabcontentareas (without a number at the end)
var tabcontent_idname = new Array("tabcontent","anothercontent")
//Set the number of your tabs in each menu
var tabcount = new Array("4","6")
//Set the Tabs wich should load at start (In this Example:Menu 1 -> Tab 2 visible on load, Menu 2 -> Tab 5 visible on load)
var loadtabs = new Array("2","5")
For better understanding -> In the tablinks you call the easytabs function with 2 values. The first value is the Menu and the second the Tabnumber. So the easytabs call for the third tab of the first menu would be:
onmouseover="easytabs('1', '3');"
The call for the 4 tab in the 3rd menu would be:
onmouseover="easytabs('3', '4');"
I hope this Tab Menu is useful for you, if you have questions or improvements please post a comment, thank you.
Download EasyTabs 1.1 Example Package
Easy Tabs 1.1 (7,0 KiB, 9.954 hits)
Download EasyTabs 1.2 Example Package - New Version (Infos here)
Easy Tabs 1.2 (9,9 KiB, 567.080 hits)
Another live Example
This Related Posts, Tags, Rating, Statistic Menu:

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

30 Kommentare »
6 Trackbacks
Sehr nett! Hätte ich das ein wenig früher gewusst, dann hätte ich mir mein selbst gemurxtes PHP Tab Menü auf meiner neuen Homepage fürs Fotostudio in Wien sparen können.
great script but with some accessibility issue for keyboard navigation.
If i use tab key to go trought the page :
- when the onmouseover is used i can't reach the content of the tab except for the last one)
- when the onclick is used the focus must move to the content of the tab not to the next tab then at the end of the tab content the focus must go to the next tab
Thanks.
Your tabbed menu works great for us.
We are developing site where there could be two three or four tabs on the menu depending on what content the user decides to use.
Is there a workaround for this as it seems to me that there can only be a specific number of tabs per menu.
Thanks
Hi, you can set as much tabs as you want - but you have to set the number in the javascript:
For example:
var tabcount = new Array("4","6")
(first menu 4 tabs, second menu 6 tabs)
Just check out the example:
http://www.kollermedia.at/wp-content/themes/kollermedia/specials/easytabs1.1/example_three_menus.html there are menus with 4, 6 and 3 tabs.
Great script, easy light and usefull. I will be creating new designs with your help. Once done I will not forget to post back link to your site
Thank you Benn
Hi,
I'm trying to use your script but for some reason i can't have the tab to stay active, it keeps reseting immediately to the value that is set for the "loadtabs" at start.
Thanks.
could you please send me a link - i'll have a look.
Хороший заработок в интернете. Ðужно покоментировать Ñтраницы, которые вам откроют поÑле региÑтрации, и за Ñто платÑÑ‚ денги и не малые. Я лично зарабатываю около 500$ в меÑÑц.
РегиÑтрируемÑÑ Ñ‚ÑƒÑ‚ awsurveys.com
1.Ðажимите Create A Free Account
UserName - Ð¸Ð¼Ñ Ð¿Ð¾Ð»ÑŒÐ·Ð¾Ð²Ð°Ñ‚ÐµÐ»Ñ
Password - пароль 7-15 знаков
First Name - имÑ
Last Name - ФамилиÑ
Email Address - почтовый Ñщик
Далее вводим цифорки-буковки, нажимаем кнопку Create A Free Account
Ð’Ñ‹ зарегиÑтрировалиÑÑŒ!
2.Далее видим таблицу, имеющую такой вид:
The Following Surveys are Available:
Welcome Survey -- A $6.00 Website Evaluation is Available.
A $4.00 Website Evaluation is Available.
A $4.00 Website Evaluation is Available.
A $4.00 Website Evaluation is Available.
A $4.00 Website Evaluation is Available.
A $4.00 Website Evaluation is Available.
3.Щелкаем по одной из ÑÑылок на Ñтой Ñтранице, попадаем на Ñледущюю Ñтраницу и там щелкаем по надпиÑи "Start Survey Now"
4.ЗдеÑÑŒ 2 ÑÑылки и 2 полÑ, в них нужно напиÑать отзыв о Ñайте на англ Ñзыке.
(пример: It is an excellent site, I shall advise its all, this is good job, it's very usefull web-resource и т.п)
5.Щелкае по кнопке внизу "Click to submit ..." Щелкаем по ÑÑылке "Click Here to go Home and..."
6.И так далее по ÑÑылкам и так каждый день.
7.Ð”Ð»Ñ Ð²Ñ‹Ð²Ð¾Ð´Ð° денег воÑпользуйтеÑÑŒ кнопкой "Redeem Money"
выводÑÑ‚ÑÑ Ð´ÐµÐ½ÑŒÐ³Ð¸ в ÑиÑтеме PayPal (легко переводÑÑ‚ÑÑ Ð² вебмани)
могу помочь тем кто не знаком Ñ Ñлектронными платежными ÑиÑтемами
Óñëóãè âåòåðèíàðà. Âûåçä.
Âåòåðèíàðíàÿ ïîìîùü
Hi,
I am in the process of creating a website and would really like to use your tab script. However I am a total .CSS newbie but learning fast! Could you therefore please advise when I put the code that I have downloaded.
The reason I ask this question is I cut and pasted the code into my .css style sheet and when I tried to access it from Dremweaver I found only a blank box was displayed.
Any help would be much appreciated.
Regards. John.
Hi,
Great script. It's working wonderfully. I tried taking a look under the hood to add a new tab that would open all of the divs, but I think I messed it up, because now none of the tab buttons work!
I ended up creating a new function which is just a duplicate of your easytabs function, but changing it so it loops through all the divs and changes the display to block. It works for one tab, but now the other ones don't seem to want to work.
Is there a quick way to have one tab open all of the divs? Any help would be appreciated! Thanks.
Hi Nick,
sorry i have no fast solution for your "open all divs" problem - but maybe you can make a new function and loop through all tabs..just an idea.
I will add something like this as soon as i have time.
??? «???????????????» - ?????????
???????????? ??????????????? ?????? ?? ???????????? ???????????????? ????? ? ????? ???????.
?????????? ??? ?????????????? ?? ?????????????? ????????, ? ????????? ??????? ???????????? ????????????????, ?????? ????? ????????? ? ????????????????? ???????????????????, ??????????????, ???????????? ? ???????? ?????????????????? ????????? ?? ?????? ? ??? ????? .
??????? ?????????????? ?????????? ???????? ?????????????
?.(351)235-15-50, (351)270-56-54
Email: daupadova@gmail.com
???????: ??????, ??????, ??????, ?????????, ?????????, ?????, ????????????? ??????, ????, ????????????, ?????? ????????, ????? ????????????, ????? ?????????, ????? ???????, ????? ??????????, ??????, ??????, ???? ?????????????, ????? ???????, ????? ??????, ????? ??????, ????? ????????, ????????? ???????, ????????? ?????????, ????????? ?????????, ????????? ?????????, ?????? ?????????????, ? ????? ?????, ????? ?????????????, ?????, ??????? ? ???????, ????????.
(4862) 43-90-47, 43-92-47, 43-92-48, 43-91-66
??????? ????? ? ? ??????? ?? ?????? ?????.
?????? ? ???????? ????????? ???????????? ?????????? ????? ????? - Metizorel.ru
???????? ?????? ??????? — ?????? ?????? ?? ??????? ?????????????!
??????????, ??????!
Hello: I slightly changed a bit, add another part a result, he can not take effect, I do not know where the fault lies in, thank you.
What's up to all, how is everything, I think every one is getting more from this web site, and your views are nice for new users.
Hello! I know this is kinda off topic however I'd figured I'd ask.
Would you be interested in trading links or maybe guest writing a blog post or vice-versa?
My site goes over a lot of the same topics as yours and I believe we could greatly benefit from
each other. If you happen to be interested feel free to send me
an email. I look forward to hearing from you! Great blog by the way!
Paragraph writing is also a fun, if you be acquainted with after that
you can write otherwise it is complicated to write.
An interesting disсuѕsion iѕ ԁefinitely worth сomment.
I thіnk that yοu need to publish mοгe аbout this ѕubject, it may not be a taboo matter but genеrаlly people don't speak about these topics. To the next! Cheers!!
Feel free to surf to my website: Chun
Keep on wгіting, grеаt job!