Drago,
So what behaviour do you get in IE? It's hard to disgnose without knowing the symptoms.
Airshow
Airshow
WiFi Lounge Lizard
2,683 posts since Apr 2009
Reputation Points: 321
Solved Threads: 372
So does IE give a javascript error?
Airshow
WiFi Lounge Lizard
2,683 posts since Apr 2009
Reputation Points: 321
Solved Threads: 372
Have a look at the HTML for the swf. If I recall correctly, the gets an ID while the gets a NAME.
I guess you need to find the right syntax to address the by name (or is it the ?) in Prototype speak.
In either case, the Prototype API should tell you how.
Airshow
Airshow
WiFi Lounge Lizard
2,683 posts since Apr 2009
Reputation Points: 321
Solved Threads: 372
Drago,
If that works, then so might this:
.s_large {
width:427px;
height:405px;
}
.s_small {
width:227px;
height:205px;
}
var checker = true;
$('sparanimatieB').observe('click', function(event){
if(checker==true){
$('sparanimatie').writeAttribute("class","s_large");
$('sparanimatie3').writeAttribute("class","s_large");
checker = false;
}
else{
$('sparanimatie').writeAttribute("class","s_small");
$('sparanimatie3').writeAttribute("class","s_small");
checker = true;
}
});
In fact, if this works, then the javascript will boil right down to:
var checker = true;
$('sparanimatieB').observe('click', function(event){
var c = (checker) ? "s_large" : "s_small";
$('sparanimatie').writeAttribute("class", c);
$('sparanimatie3').writeAttribute("class", c);
checker = !checker;
}
});
It seems better, if you can, to have the same mechanism (class swapping) for both cases. Also I sense something dangerous in id swapping.Airshow
Airshow
WiFi Lounge Lizard
2,683 posts since Apr 2009
Reputation Points: 321
Solved Threads: 372