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, 177.667 hits)

Previous Versions of Easy Tabs

EasyTabs 1.1 (Infos here)

  Easy Tabs 1.1 (7,0 KiB, 7.958 hits)

EasyTabs 1.0 (Infos here)

  Easy Tabs 1.0 (1,2 KiB, 6.745 hits)

Joomla Plugin JooTabs by Ricardo Sousa und Andy Sikumbang


 

159 Kommentare »

20 Trackbacks

sakalli
verfasst am 5. Oktober 2009 um 21:22

hi, thanks for this! i changed the onmouseover to onclick, i.e.:
bla bla

otherwise works ok but everytime i click on a tab the page jumps up to top position. any clues how to fix this?

cheers!

sakalli
verfasst am 5. Oktober 2009 um 21:27

sorry the bla bla vas supposed to be a sample of the code. ill try once more without the tags:

onmouseover="return false;" onfocus="return false;" onclick="easytabs('2', '1');" title="" id="tablink2_1"

verfasst am 5. Oktober 2009 um 21:56

Hi Sakalli,
just write: onclick="easytabs('2', '1'); return false;"

Thats it.

sakalli
verfasst am 6. Oktober 2009 um 17:05

cheers!

verfasst am 21. Oktober 2009 um 11:15

Hey,
How can I link to a specific tabcontent from another page?
e.g a href=newpage.html#tabcontent2 to display content from the 2nd tab.

I have tried using the tags #tablink2 and #tabcontent2 - tablink does select the correct tab 'link' but still doesn't seem to click it to show the content..

i'd like to be able to link directly to specific tabs from another page if possible, so once clicked it will load that page and the tab content i specified in the url string, how can I do this?

I checked all comments and documentation and i'm scratching my head =p

verfasst am 22. Oktober 2009 um 12:04

Hello,

Very nice work. I hope you don't mind - I have added your script to my free scripts directory: http://freeajaxscripts.net/directory/Ajax_tabs/Easy_Tabs_1.2/details.html

Phaneendra
verfasst am 28. Oktober 2009 um 14:14

Hello,

nice work....! but if possible place images at tabs so that it can add life to it

securitywonks
verfasst am 23. November 2009 um 12:34

thank you for the nice script. I observed one little issue, i.e. page moving to the top, when a tab is clicked (onclick mode) or mouseovered (onmouseover mode).

this is troubling when we place the tabed content in the middle or bottom of the page. thank you.

overall, this is nice work, I hope you will fix this, thank you

securitywonks
verfasst am 23. November 2009 um 12:45

I somehow missed the solution in the above, sorry for the duplicate question, thank you for the fix up :)

securitywonks
verfasst am 23. November 2009 um 13:08

when we use onclick mode, how it will be to automatically initiate STOP autochange until a page reload or until the user clicks on restart (if stopped) link kind of, just some thoughts, thank you

securitywonks
verfasst am 23. November 2009 um 13:27

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 :)

verfasst am 13. Dezember 2009 um 8:20

that's all was amazing .. but can I load tabs content to external file ?
thanks for share dude

Sandro
verfasst am 14. Dezember 2009 um 16:13

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?

kikko
verfasst am 16. Dezember 2009 um 19:16

Hi,

How do I install this on wordpress?

Thanks!

verfasst am 26. Dezember 2009 um 22:59

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,

elp
verfasst am 1. Januar 2010 um 1:45

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?

Edduard
verfasst am 4. Januar 2010 um 6:11

it doesnt work inside a table!
wen charge it look disabled
how to fix that ?

elp
verfasst am 4. Januar 2010 um 12:18

@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.

Alidad
verfasst am 3. Februar 2010 um 23:45

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

verfasst am 10. Februar 2010 um 3:56

awesome .... nice share ... thanks dudee

verfasst am 11. Februar 2010 um 16:06

Very easy example and work in IE, Opera and Firefox
Nice!

koii
verfasst am 22. Februar 2010 um 7:15

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

Jeff
verfasst am 8. März 2010 um 21:37

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!

verfasst am 4. Mai 2010 um 12:18

Give somebody the to a site about the,

verfasst am 4. Mai 2010 um 20:04

Best,

verfasst am 4. Mai 2010 um 22:25

really great sites, thank you,

verfasst am 10. Mai 2010 um 14:22

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

Flory
verfasst am 1. Juni 2010 um 19:30

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.

Belle
verfasst am 5. Juni 2010 um 5:47

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!!

Jenell
verfasst am 8. Juni 2010 um 20:08

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

Seite 4 von 5«12345»
Kommentar schreiben

(erforderlich)

(required but will not be published)

(if you have one)

Bild einfügen:<img src="http://www.website.com/meinbild.jpg" alt="bildbeschreibung" />


 
Produced and © by Koller Jürgen | Powered by the awesome WP | Love and Joy to everyone