tips & tricks


Calendario
dicembre 2024
lmmgvsd
2526272829301
2345678
9101112131415
16171819202122
23242526272829
303112345

Funzioni per i Tab


//------------------------------------------------



function selVersion(div) {
            
             var myLi = document.getElementById("faq").getElementsByTagName("li");
            
            
            for(i=1; i <= myLi.length; i++){
            myObj=MM_findObj('divFaq'+i);
            myLink=MM_findObj('linkFaq'+i);
                                    if (i==div) {
                                                myObj.style.display="block";
                                                myLink.className="titleActive";
                                    }else{  
                                                myObj.style.display="none";
                                                myLink.className="title";
                                    }
            }

}

//-------------------------------------------

function displayDivById(position) {
            for(i=1; i<=document.getElementById('num_cat').value; i++) {
                        var effect_1 = null;
                        if(i==position) {
                                    // document.getElementById('moto_products_'+i).style.display = "block";
                                    if(document.getElementById('div_display').value != i) {
                                                effect_1 = Effect.SlideDown('moto_products_'+i,{duration:1.0});
                                    }
                                    document.getElementById('div_display').value = i;  
                        }
                        else {
                                    document.getElementById('moto_products_'+i).style.display = "none";
                        }
            }
}

//-------------------------------------------
                               
function onMouseOverdisplayDivById(position,path) {
            MM_swapImage('image'+position,'',path, 1);

            for(i=1; i<=document.getElementById('num_cat').value; i++) {
                        var effect_1 = null;
                        if(i==position) {
                                    // document.getElementById('moto_products_'+i).style.display = "block";
                                    effect_1 = Effect.SlideDown('moto_products_'+i,{duration:1.0});
                        }
                        else {
                                    /*
                                    if(document.getElementById('moto_products_'+i).style.display == "block") {
                                                effect_1 = Effect.SlideUp('moto_products_'+i,{duration:1.0});
                                    }
                                    */
                                    document.getElementById('moto_products_'+i).style.display = "none";                                                                   
                        }
            }
}

//-------------------------------------------

Categoria: Jscript
mercoledì, 14 ott 2009 Ore. 10.33
Archivio Posts
Anno 2020

Anno 2018

Anno 2015

Anno 2013

Anno 2011

Anno 2010

Anno 2009

Anno 2008
Statistiche
  • Views Home Page: 15.072
  • Views Posts: 58.276
  • Views Gallerie: 2.837
  • n° Posts: 117
  • n° Commenti: 1
Copyright © 2002-2007 - Blogs 2.0
dotNetHell.it | Home Page Blogs
ASP.NET 2.0 Windows 2003