If the status HTML will always be images, you can modify the script so you merely enter the paths to the images (instead of its entire HTML), and have the script output the image accordingly. Inside the .js file, edit the setStatus() function so it looks like this instead (changes in red):
Code:
switchcontent.prototype.setStatus=function(openHTML, closeHTML){ //PUBLIC: Set open/ closing HTML indicator. Optional
this.statusOpen='<img src="'+openHTML+'" alt="open" />'
this.statusClosed='<img src="'+closeHTML+'" alt="close" />'
}
Then, in your HTML when calling this method, do:
Code:
bobexample.setStatus('../jscripts/close.gif', '../jscripts/open.gif')
Bookmarks