I have been working on my newest iteration of our site and ran into a
hundred problems.

The issue is (like always) Internet Explorer.   I am not getting errors to
help my navigate to the issue, but my mootools isn't working.  (just so you
can see it http://74.63.9.58/ and it works great in Firefox)

the main code for the homepage is

------------------------------home.js------------------------------

window.addEvent('domready', function(){

var szNormal = 294, szSmall  = 70, szFull   = 750;

var kwicks = $$(".kwicks");
var fx = new Fx.Elements(kwicks, {wait: false, duration: 900});
kwicks.each(function(kwick, i) {
    kwick.addEvent("mouseenter", function(event) {
        var o = {};
        o[i] = {width: [kwick.getStyle("width").toInt(), szFull]}
        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);
    });
});

$("home_headwrap").addEvent("mouseleave", function(event) {
    var o = {};
    kwicks.each(function(kwick, i) {
        o[i] = {width: [kwick.getStyle("width").toInt(), szNormal]}
    });
    fx.start(o);
})

var rotater = new Rotater('.slide',{         //Class of elements that should
rotate.
    slideInterval:8000,                     //Length of showing each
element, in milliseconds
    transitionDuration:1000                 //Length crossfading transition,
in milliseconds
});



var scroll = new Fx.Scroll('tutorwrap', {
    wait: false,
    duration: 2500,
});

var varible1 = 0;

$('scroll_down').addEvent('click', function(event) {
    event = new Event(event).stop();

    varible2 = varible1 + 1;

    scroll.toElement("section" + varible2);
    varible1 = varible2;
});


variblea1 = varible1;

$('scroll_up').addEvent('click', function(event2) {
    event2 = new Event(event2).stop();

    variblea2 = varible1 - 1;

    scroll.toElement("section" + variblea2);
    varible1 = variblea2;
});

});

------------------------------end.js------------------------------

It might not be pretty.  BUt it is the best i can do.

So nothing happens on the homepage in Internet explorer.  Not the Accordian
(like thing) not the scrolling... not the login.  Is there a better way i
can find the javascript error on IE?

Thanks.

Reply via email to