View comments | RSS feed

Spry

Preload images

 To preload the images used for the down and right submenu arrows, add either the imgDown option, the imgRight option, or both options to the widget constructor, as follows:
<script type="text/javascript">
	var mb1 = new Spry.Widget.MenuBar("menubar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
</script>

Add the correct path to the image as the value for the option. This path varies depending on where you store the images.


Comments


No screen name said on Jul 15, 2009 at 8:43 PM :
Question - where do you enter this code?where is the widget constructor?
when i click on the widget the code is highlighted, but where in the code do i insert the code provided on the screen?
Please help I would like to change the arrow icons in the spry menu horizontal bar.
Thank you.
jonmichael said on Jul 17, 2009 at 4:27 PM :
The widget constructor is at the bottom of the HTML page, separate from the widget.

To learn more about the full anatomy of the Menu Bar widget, see this page:

http://livedocs.adobe.com/en_US/Spry/SDG/WS692A7C97-48A1-4c26-9AC6-AF8B986E5557.html


--------------------------------------------------------------------------------

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/en_US/Spry/SDG/WS961323A5-F8E4-462c-AE05-157BB42930F5.html