/g, ">" ); return('
' + $html + ''); } //================================================== // Private methods //================================================== //-------------------------------------------------- this.loop = function() { // This method is for internal use only. // This method gets called automatically by a JavaScript timeout. // It advances to the next slide, then sets the next timeout. // If the next slide image has not completed loading yet, // then do not advance to the next slide yet. // Make sure the next slide image has finished loading if (this.current < this.slides.length - 1) { next_slide = this.slides[this.current + 1]; if (next_slide.image.complete == null || next_slide.image.complete) { this.next(); } } else { // we're at the last slide this.next(); } // Keep playing the slideshow this.play( ); } //-------------------------------------------------- this.valid_image = function() { // Returns 1 if a valid image has been set for the slideshow if (!this.image) { return false; } else { return true; } } //-------------------------------------------------- this.getElementById = function(element_id) { // This method returns the element corresponding to the id if (document.getElementById) { return document.getElementById(element_id); } else if (document.all) { return document.all[element_id]; } else if (document.layers) { return document.layers[element_id]; } else { return undefined; } } //================================================== // Deprecated methods // I don't recommend the use of the following methods, // but they are included for backward compatibility. // You can delete them if you don't need them. //================================================== //-------------------------------------------------- this.set_image = function(imageobject) { // This method is deprecated; you should use // the following code instead: // s.image = document.images.myimagename; // s.update(); if (!document.images) return; this.image = imageobject; } //-------------------------------------------------- this.set_textarea = function(textareaobject) { // This method is deprecated; you should use // the following code instead: // s.textarea = document.form.textareaname; // s.update(); this.textarea = textareaobject; this.display_text(); } //-------------------------------------------------- this.set_textid = function(textidstr) { // This method is deprecated; you should use // the following code instead: // s.textid = "mytextid"; // s.update(); this.textid = textidstr; this.display_text(); } } //-->