Thanks! So can I just remove them?
Bennington Purcell
www.BennPurcell.com
p: 617-435-2695
{sent from iPhone}
On Jan 13, 2009, at 5:20 PM, nutron <[email protected]> wrote:
var scroll = new Fx.Scroll('tutorwrap', {
wait: false,
duration: 2500,
});
Watch out for those trailing commas, they always make IE freak out.
On Tue, Jan 13, 2009 at 2:17 PM, Bennington Purcell (via Nabble) <ml-
user%2b167864-555698...@...> wrote:
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.
The MooTools Tutorial: www.mootorial.com Clientcide:
www.clientcide.com
View this message in context: Re: IE7 with accordian andf scroll.
Seems to load on part of the code
Sent from the MooTools Users mailing list archive at Nabble.com.