tips & tricks


Calendario
aprile 2024
lmmgvsd
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345

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: 13.298
  • Views Posts: 55.993
  • 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