Ok, try the below modified .js file, which adds the option:
statecontrol: {initial: 'open', persist: true},
to the initialization code (defined at the end of the .js file). With it, you can set the initial state of the panel when the page loads (either "open" or "close"), and also, whether the script to recall the last known state of the panel just before the page unloads or is reloaded. The below shows the complete initialization code with the new option above added in:
Code:
/////////////Initialization code://///////////////////////////
//Usage: var unqiuevar=new expstickybar(setting)
var mystickybar=new expstickybar({
id: "stickybar", //id of sticky bar DIV
position:'bottom', //'top' or 'bottom'
revealtype:'manual', //'mouseover' or 'manual'
peekamount:35, //number of pixels to reveal when sticky bar is closed,
statecontrol: {initial: 'open', persist: true},
externalcontent:'', //path to sticky bar content file on your server, or "" if content is defined inline on the page
speed:200 //duration of animation (in millisecs)
})
Bookmarks