Script Access
Along with the SelectedCaption parameter (which lets you choose a caption to be expanded when the menu first appears), you can use JavaScript to dynamically change the expanded caption (in compatible browsers).

This can be useful in two situations in particular:

  1. If you use a non-framed site, with QuickBar in every page, you can use script to open the menu to the correct caption in each page. Without using script, you would have to use a different datafile (containing a different SelectedCaption parameter) in each page.

  2. If you have a frames-based site, you may want to do the same thing, so that if users navigate by clicking HTML links in the pages, or using the Back button, the menu can be adjusted to expand a particular caption.

To use this feature, add this script to the page (in the head or the body):

<script language="JavaScript" type="text/javascript">
<!--
function selectItem(i) {if (window.document.QuickBar) window.document.QuickBar.SetVariable("selectitem", i);}
// -->
</script>

To expand a particular caption, just call this function with the index number of the required caption. For example:

<body onload="selectItem(3)">