Well I'm using it elsewhere with no problems - but to be sure I just called it on page load:
Code:
<body onload="document.movie.Play()">
and there's no alert from the browser...
I tried it again in FF and get the alert:
An error exists inside your "ontoggle" function:
TypeError: document.movie.Play is not a function
Aborting execution of function.
No problems, seemingly, in Safari tho'
the exact code I use is:
Code:
animatedcollapse.ontoggle = function ($, divobj, state) {
var oneisopen = false
$.each(animatedcollapse.divholders, function () {
if (this.$divref.css('display') != 'none') {
oneisopen = true
}
})
if (!oneisopen) {
$("div.fadeThis3").fadeOut('slow');
$("div.mt").fadeOut('slow');
$("div.fadeOut").fadeIn(3000);
}
if (oneisopen) {
document.movie.Play();
$("div.fadeThis3").fadeTo("fast", 1.0);
$("div.fadeOut").fadeOut(500);
}
}
Bookmarks