Visualizzazione dei risultati da 1 a 2 su 2
  1. #1

    Mootools problema con IE(8?)

    Ciao a tutti,
    ho un problemone: sto sviluppando un sito utilizzando le librerie mootools.
    Quando sono in firefox, tutto fuziona alla perfezione, mentre se vado su IE (8 nel mio caso), non funziona proprio niente di niente.

    Questo è il link alla pagina che sto portando avanti: http://trez.altervista.org/inprogress

    Per semplicità, incollo anche il codice di quella priam schermata:

    Codice PHP:
    window.addEvent('domready', function(){    
        
    //var szNormal = 170, szSmall  = 130, szFull   = 330;
        
    var szNormal 139szSmall  104szFull   322;
        
        var 
    kwicks = $$("#menu .chapter");
        var 
    fx = new Fx.Elements(kwicks,{
            
    waitfalse,
            
    duration300,
            
    transitionFx.Transitions.Back.easeOut,
            });
        
    kwicks.each(function(kwicki){
            
    //kwick.setStyle('opacity',0.8);
        
    });
        
    kwicks.each(function(kwicki) {
            
    kwick.addEvent("click", function(event){
                if(
    menuAnimation == 0){
                    
    menuAnimation 1;
                    var 
    container = $("menu_container");
                    var 
    fxShortMenu = new Fx.Elements(kwicks, {
                        
    waitfalse,
                        
    duration500,
                        
    onComplete: function(element){
                            
    window.location "home.php";
                        }
    //onComplete
                        
    }); //transition: Fx.Transitions.Back.easeOut
                    
    var fxShortContainer = new Fx.Tween(container, {
                        
    waitfalse,
                        
    duration500,
                        
    onComplete: function(element){
                            
    window.location "home.php";
                        }
    //onComplete
                        
    }); //transition: Fx.Transitions.Bounce.easeOut
                    
    var previousHeight 362;
                    var 
    nextHeight 50;
                    var 
    menus = {};
                    
    kwicks.each(function(elementk){
                        
    menus[k] = {height: [previousHeightnextHeight]};
                    });
                    
    fxShortMenu.start(menus);
                    
    fxShortContainer.start('height',previousHeightnextHeight);
                }
    //if
                //else{
                    //Sono dentro un ciclo, quindi passerò uno ad uno tutti i div.
                    //event.stop();
                    
    if(== 0){ ajaxRequest('user_home.php'); }//home
                    
    if(== 1){ ajaxRequest('user_chi.php'); }//chi siamo
                    
    if(== 2){ ajaxRequest('user_dove.php'); }//dove siamo
                    
    if(== 3){ ajaxRequest('user_news.php'); }//news
                    
    if(== 4){ ajaxRequest('db_get_element.php'); }//contatti     //if(i == 4){ ajaxRequest('user_contatti.php'); }//contatti
                    
    if(== 5){ ajaxRequest('user_news.php'); }//news
                    
                //}//else
            
    });//kwick.each
            
            
    kwick.addEvent("mouseenter", function(event) {
                var 
    = {};
                
    o[i] = {width: [kwick.getStyle("width").toInt(), szFull]}
                
    //kwick.setStyle('opacity',1);
                
    kwicks.each(function(otherj) {
                    if(
    != j) {
                        var 
    other.getStyle("width").toInt();
                        if(
    != szSmallo[j] = {width: [wszSmall]};
                    }
                });
                
    fx.start(o);
            });
    //event mouseenter
            
            
    kwick.addEvent("mouseleave", function(event) {
                var 
    = {};
                
    kwicks.each(function(kwicki) {
                    
    o[i] = {width: [kwick.getStyle("width").toInt(), szNormal]}
                    
    //kwick.setStyle('opacity',0.8);
                
    });
                
    fx.start(o);
            });
    //event mouseleave
        
    });//kwicks.each
        
    loadVetrina();
    }); 

    Grazie mille per il prezioso aiuto!
    Ciao!

  2. #2
    trailing commas!!

    dopo l'ultimo elemento della lista nn ci va la virgola.

    Codice PHP:
       transitionFx.Transitions.Back.easeOut
    (se poi c'è altro nn ti saprei dire :P)

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.