Visual Elements
From Best Toolbars
Q: How can I make some buttons or menu items disabled by default?
A: The BUTTON and ITEM tags have the visibility attribute. Setting visibility= to 0 makes a button or menu item invisible until it is enabled in the options page. <BUTTON id="btclrcnt" caption="CLEARCOUNT" img="4" command="clearcount" visibility="0" />
Q: How can I reload the content of a BANNER tag only in case the user is on my site and there is a state changing which is shown in the BANNER tag. Is there a way to reload the content using javascript?
A: Sure you can have a local.html page that you will display in the banner to contain IFRAME referencing your site. Please also pass the URL visited by the user to that local.html file: <BANNER name="Ticker" url="local.html?curl=%url" width="200" id="tb_bnr_uxfYdZMb"/> The Javascript inside local.html can extract the URL from the string and depending on the contents can referesh the HTML from your server in IFRAME.
Q: Can I set up to rotate multiple banners ( banner1.htm banner2.htm banner3.htm) in the same space on the toolbar?
A: You can use a local HTML file that you mention in your BANNER, which has to contain JavaScript used to redirect to different files.
Q: I'm trying to edit the basis.xml file to contain a list box. Clicking each list item has to redirect to a different site. What are the attributes for the VALUE tag that I can use?
A: You can use the following code: <COMBO id="se_search_option" name="se_search_option" hint="" limit="45" command="goSite"> <WIDTH>100</WIDTH> <VALUE display="Site1">http://URL of site1</VALUE> <VALUE display="Site2">http://URL of site2</VALUE> </COMBO> And the below WEBJUMP command: <WEBJUMP name="goSite" href="%se_search_option"/>
Q: I know that the Option page use id=".." to control the buttons, what will happen if I set 2 or more button with the same id? Will this mean that the chick box for this id will be controlling all the button with the same id?
A: The id has to be unique. But you can use the JavaScript inside your options.html to link 2 checkboxes together (and clicking one should trigger another). You can even hide these checkboxes on the html page but JavaScript to switch them on/off.
Q: Please tell me whether everyone who installs the same toolbar will be given a unique toolbar id or is there a chance of two or more installations getting the same toolbar id.
A: ToolbarID is unique per installation and will remain the same if the toolbar is updated.
Q: How can I change the icon used for "word-find" toolbar buttons
A: Word find buttons always use the icon number 1 from icons.bmp file. So if you wish to change this icon, just change the icon number 1.

