Ambos códigos son muy simples, por lo que no hablaré muchas tonterías aquí, solo sube el código
Código 1,
function ntabs (thisObj, num) {if (thisObj.className == "activo") return; var tabobj = thisObj.ParentNode.id; var tablist = document.getElementById (Tabobj) .getElementsBytagName ("li"); for (i = 0; i <tablist.length; i ++) {if (i == num) {thisObj.className = "activo"; document.getElementById (Tabobj+"_ cont"+i) .style.display = "bloque"; } else {tablista [i] .classname = "normal"; document.getElementById (Tabobj+"_ cont"+i) .style.display = "Ninguno"; }}}Código 2,
$ (documento) .Ready (function () {var $ tab_li = $ ('. Tab ul li'); $ tab_li.hover (function () {$ (this) .addclass ('seleccionado'). Siblings (). RemoveClass ('Selected'); var index = $ tab_li.index (this); $ ('div.tab_box> div '). EQ (índice) .show (). SIBLES (). Hid ();