piers
07-21-2009, 05:21 AM
1) Script Title: Animated Collapse
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm
3) Describe problem:
I'm using the following code to execute some commands depending on the toggled state of the divs:
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){
$("div.fadeThis3").fadeTo("fast", 1.0);
$("div.fadeOut").fadeOut(500);
}
}
However when I incude the javascript function
document.movie.Play();
(see: http://developer.apple.com/documentation/QuickTime/Conceptual/QTScripting_JavaScript/bQTScripting_JavaScri_Document/QuickTimeandJavaScri.html#//apple_ref/doc/uid/TP40001526-CH001-DontLinkElementID_14)
I get an alert from the browser saying that document.movie.Play() is not a function...
do I somehow have to convert it to a jquery function to nest it in the above code?
Thanks
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm
3) Describe problem:
I'm using the following code to execute some commands depending on the toggled state of the divs:
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){
$("div.fadeThis3").fadeTo("fast", 1.0);
$("div.fadeOut").fadeOut(500);
}
}
However when I incude the javascript function
document.movie.Play();
(see: http://developer.apple.com/documentation/QuickTime/Conceptual/QTScripting_JavaScript/bQTScripting_JavaScri_Document/QuickTimeandJavaScri.html#//apple_ref/doc/uid/TP40001526-CH001-DontLinkElementID_14)
I get an alert from the browser saying that document.movie.Play() is not a function...
do I somehow have to convert it to a jquery function to nest it in the above code?
Thanks