* Options parameter will need a start, end, href, target and src.
* Start is the time that you want this plug-in to execute
* End is the time that you want this plug-in to stop executing
- * href is the url of the destination of a link
+ * href is the url of the destination of a link - optional
* Target is the id of the document element that the iframe needs to be attached to,
* this target element must exist on the DOM
* Src is the url of the image that you want to display
+ * text is the overlayed text on the image - optional
*
* @param {Object} options
*
},
_setup: function( options ) {
+ var st;
options.link = document.createElement( 'a' );
options.link.style.position = "relative";
fontSize: fontHeight,
color: "black",
fontWeight : "bold",
- zIndex: "10",
+ zIndex: "10"
};
for ( st in divTextStyle ) {
divText.style[ st ] = divTextStyle[ st ];
target: 'imagediv'
} );
- interval = setInterval( function() {
+ popped.exec( 2, function() {
if( popped.currentTime() > 1 && popped.currentTime() < 3 ) {
ok( /display: block;/.test( imagediv.innerHTML ), "Div contents are displayed" );
plus();
ok( /img/.test( imagediv.innerHTML ), "An image exists" );
plus();
- clearInterval( interval );
}
- }, 500);
+ });
- interval2 = setInterval( function() {
+ popped.exec( 4, function() {
if( popped.currentTime() > 3 ) {
ok( /display: none;/.test( imagediv.innerHTML ), "Div contents are hidden again" );
plus();
- clearInterval( interval2 );
}
- }, 500);
- popped.volume(0);
- popped.play();
+ });
+ popped.volume(0);
+ popped.play();
});