mismouss2306
Messages postés1Date d'inscriptionmardi 14 août 2007StatutMembreDernière intervention22 août 2008
-
22 août 2008 à 19:12
bizibiz17
Messages postés142Date d'inscriptionmardi 17 janvier 2006StatutMembreDernière intervention29 août 2009
-
1 sept. 2008 à 14:00
Bonjour,
J'ai un problème avec ce script qui fonctione sous IE7 mais pas sous FIREFOX :
//** Ultimate Tabbed Product Menu **
var enabletabpersistence=1 //remember last visited tab? 1=yes, 0=no
////NO NEED TO EDIT BELOW////////////////////////
var tabcontentIDs=new Object()
function expandcontent(linkobj){
var ulid=linkobj.parentNode.parentNode.id //id of UL element
var isMozilla = (navigator.userAgent.toLowerCase().indexOf('gecko')!=-1) ? true : false;
var ullist=document.getElementById(ulid).getElementsByTagName("li") //get list of LIs corresponding to the tab contents
for (var i=0; i<ullist.length; i++){
ullist[i].id="" //deselect all tabs
if (typeof tabcontentIDs[ulid][i]!="undefined") //if tab content within this array index exists (exception: More tabs than there are tab contents)
document.getElementById(tabcontentIDs[ulid][i]).style.display="none" //hide all tab contents
}
linkobj.parentNode.id="selected" //highlight currently clicked on tab