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 = 139, szSmall = 104, szFull = 322;
var kwicks = $$("#menu .chapter");
var fx = new Fx.Elements(kwicks,{
wait: false,
duration: 300,
transition: Fx.Transitions.Back.easeOut,
});
kwicks.each(function(kwick, i){
//kwick.setStyle('opacity',0.8);
});
kwicks.each(function(kwick, i) {
kwick.addEvent("click", function(event){
if(menuAnimation == 0){
menuAnimation = 1;
var container = $("menu_container");
var fxShortMenu = new Fx.Elements(kwicks, {
wait: false,
duration: 500,
onComplete: function(element){
window.location = "home.php";
}//onComplete
}); //transition: Fx.Transitions.Back.easeOut
var fxShortContainer = new Fx.Tween(container, {
wait: false,
duration: 500,
onComplete: function(element){
window.location = "home.php";
}//onComplete
}); //transition: Fx.Transitions.Bounce.easeOut
var previousHeight = 362;
var nextHeight = 50;
var menus = {};
kwicks.each(function(element, k){
menus[k] = {height: [previousHeight, nextHeight]};
});
fxShortMenu.start(menus);
fxShortContainer.start('height',previousHeight, nextHeight);
}//if
//else{
//Sono dentro un ciclo, quindi passerò uno ad uno tutti i div.
//event.stop();
if(i == 0){ ajaxRequest('user_home.php'); }//home
if(i == 1){ ajaxRequest('user_chi.php'); }//chi siamo
if(i == 2){ ajaxRequest('user_dove.php'); }//dove siamo
if(i == 3){ ajaxRequest('user_news.php'); }//news
if(i == 4){ ajaxRequest('db_get_element.php'); }//contatti //if(i == 4){ ajaxRequest('user_contatti.php'); }//contatti
if(i == 5){ ajaxRequest('user_news.php'); }//news
//}//else
});//kwick.each
kwick.addEvent("mouseenter", function(event) {
var o = {};
o[i] = {width: [kwick.getStyle("width").toInt(), szFull]}
//kwick.setStyle('opacity',1);
kwicks.each(function(other, j) {
if(i != j) {
var w = other.getStyle("width").toInt();
if(w != szSmall) o[j] = {width: [w, szSmall]};
}
});
fx.start(o);
});//event mouseenter
kwick.addEvent("mouseleave", function(event) {
var o = {};
kwicks.each(function(kwick, i) {
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!

Rispondi quotando