Rate: (4 Ratings)
Dreamweaver CS3 came equipped with new functions labeled Spry, which are a WYSIWYG way to add AJAX to a web page. They automatically provide you with HTML, CSS and JavaScripts to perform certain interactive functions. In this article, you'll learn how to use the Spry menu bar widget.
Comments
Veesites said
on 4/11/2008 MarkfromOZ -- that URL didn't work. Try this:
http://redmelon.net/tstme/box_model/
Veesites said
on 4/11/2008 MarkfromOz said "thank you for your input, when i enter auto in the properties you suggested, the menu items shorten. As the main width is 955px, setting 136px for each menu item results in a gap of 3px at the right side end of my menu items. Could someone please correct me where i am going wrong or should i use a 3rd party menu builder to work in with my DreamweaverCS3 web software?"
I had the idea that you wanted each of the menu items to expand or contract to fit the size of the words that were there. Sorry, I guess I misunderstood. Width: auto would make each item size individually.
955 divided by 7 is 136.4. You may not be able to set the item width exactly for that, however, because you need take into account padding and borders. I don't see a how to about the box model at eHow (guess I should write one :) ), but you'll find an explanation here http://redmelon.net/tstme/box_m
MarkfromOz said
on 4/10/2008 thank you for your input, when i enter auto in the properties you suggested, the menu items shorten. As the main width is 955px, setting 136px for each menu item results in a gap of 3px at the right side end of my menu items. Could someone please correct me where i am going wrong or should i use a 3rd party menu builder to work in with my DreamweaverCS3 web software?
Veesites said
on 4/10/2008 linoz, Spry is the WYSIWYG tool Dreamweaver uses to automate some functions that use AJAX. You don't really learn AJAX using Dreamweaver to do this. It just gives you some help with certain things.
Here's the definition of AJAX:
Ajax (Asynchronous JavaScript and XML) is a method of building interactive applications for the Web that process user requests immediately. Ajax combines several programming tools including JavaScript, dynamic HTML (DHTML), Extensible Markup Language (XML), cascading style sheets (CSS), the Document Object Model (DOM), and the Microsoft object, XMLHttpRequest.
Veesites said
on 4/10/2008 MarkfromOz, The style selector to control the appearance is ul.MenuBarHorizontal a, and ul.MenuBarHorizonal a.MenuBarItemHover. The Dreamweaver style only comes with color and background color, but you are free to add any additional styles you want, such as background images or border lines. If you want varying widths on the menu items, set the width to auto.
The main width is set in ul.MenuBarHorizontal. The width of the pop ups is set in ul.MenuBarHorizontal ul li.