<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>dwcourse.com &#187; Tutorials</title>
	<atom:link href="http://www.dwcourse.com/dreamweaver/category/tutorials/feed" rel="self" type="application/rss+xml" />
	<link>http://www.dwcourse.com</link>
	<description>Adobe Dreamweaver Tips, Tricks and Tutorials</description>
	<lastBuildDate>Fri, 23 Jul 2010 09:26:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Purchasing and Configuring Web Hosting (HostGator)</title>
		<link>http://www.dwcourse.com/dreamweaver/purchase-configur-web-hosting-hostgator.php</link>
		<comments>http://www.dwcourse.com/dreamweaver/purchase-configur-web-hosting-hostgator.php#comments</comments>
		<pubDate>Sat, 22 May 2010 20:06:29 +0000</pubDate>
		<dc:creator>jcook</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[domain names]]></category>
		<category><![CDATA[domain registration]]></category>
		<category><![CDATA[somains]]></category>
		<category><![CDATA[web hosting]]></category>

		<guid isPermaLink="false">http://dwcourse.com/?p=1232</guid>
		<description><![CDATA[If you think of your domain name as your web site’s address, then the server provided by your hosting company is the “home” the address points to. It’s where your completed site will reside so that it is accessible to anyone with an Internet connection and a browser. Reliable hosting is critical to your website’s [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><script src="http://www.dpbolvw.net/placeholder-3779758?target=_top&amp;mouseover=N" type="text/javascript"></script></p>
<p>If you think of your domain name as your web site’s address, then the server provided by your hosting company is the “home” the address points to. It’s where your completed site will reside so that it is accessible to anyone with an Internet connection and a browser.</p>
<p>Reliable hosting is critical to your website’s success. Without it the world will never see the results of all your hard work. Fortunately, hosting is very affordable. Depending upon your needs you can expect to pay from $5 to $25 per month.</p>
<div class="warning">
<p><strong>Note:</strong> While free hosting is available from a number of sources, these services usually litter your site with advertisements and are very restrictive in the services and support they offer. You’re better off investing a few bucks and going with a commercial hosting service.</p>
</div>
<p>Over the years I’ve used more hosting companies than I care to remember and I’ve learned two lessons the hard way:</p>
<ul>
<li>Cheapest isn’t always (or even very often) the best.</li>
<li>Live customer support (via online chat or phone) is critical. If there is a problem with your server, you don’t want to wait around for an email from customer support, you want help <strong>Right Now!</strong></li>
</ul>
<p>Based upon my experience and recommendations from other web developers, I currently recommend Hostgator<img width="3" height="3" src="/wp-content/images/clip_image002.png" alt="http://www.ftjcfx.com/h6116wquiom7BCBCEEA798C98G99" /> for reasonably priced, reliable hosting.</p>
<p><span id="more-1232"></span></p>
<h2>1 Select your hosting plan</h2>
<p>Go to Hostgator.com<img width="3" height="3" src="/wp-content/images/clip_image004.png" alt="http://www.ftjcfx.com/h6116wquiom7BCBCEEA798C98G99" />.</p>
<div class="fig-caption">
<p><img width="434" height="197" src="/wp-content/images/clip_image006.png" alt="Picture 7" /></p>
<p>Fig. B.1</p>
</div>
<p>You’ll notice HostGator offers several types of hosting. All of them offer 99.9% uptime guarantees and 24/7 live support. We’re interested in basic Hosting which starts at $4.95 a month. So click on the Learn More… link in the Hosting box.</p>
<p>Now we’ll compare Linux Web Hosting plans. Unless your website is technically demanding (unlikely, since this is an introductory tutorial) the Hatchling plan should be more than adequate. If you’ll be adding additional websites with their own domains later, move up to the Baby plan.</p>
<div class="fig-caption">
<p><img width="434" height="308" src="/wp-content/images/clip_image008.png" alt="Picture 42" /></p>
<p>Fig. B.2 </p>
</div>
<p>Once you’ve determined which plan is right for you, click the orange Order Now button in the corresponding column.<strong><em><br clear="all" /><br />
</em></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dwcourse.com/dreamweaver/purchase-configur-web-hosting-hostgator.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Registering a domain name (GoDaddy)</title>
		<link>http://www.dwcourse.com/dreamweaver/register-domain-name.php</link>
		<comments>http://www.dwcourse.com/dreamweaver/register-domain-name.php#comments</comments>
		<pubDate>Sat, 22 May 2010 20:03:51 +0000</pubDate>
		<dc:creator>jcook</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[domain names]]></category>
		<category><![CDATA[domain registration]]></category>
		<category><![CDATA[domains]]></category>
		<category><![CDATA[web hosting]]></category>

		<guid isPermaLink="false">http://dwcourse.com/?p=1225</guid>
		<description><![CDATA[While it’s easy to think of choosing a domain name and acquiring a web host as the last steps of building your site, they should really be among your first. That way, you’ll be able to completely define your site (Chapter 2) at the beginning of the development process and you’ll be able to upload [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><script src="http://www.jdoqocy.com/n3115g73tvx-63wx9IMQRLKKR?target=_blank&amp;mouseover=N" type="text/javascript"></script></p>
<p>While it’s easy to think of choosing a domain name and acquiring a web host as the last steps of building your site, they should really be among your first. That way, you’ll be able to completely define your site (Chapter 2) at the beginning of the development process and you’ll be able to upload and test your pages as you develop them (rather than discovering problems at the end of the process).</p>
<p><span id="more-1225"></span></p>
<p>In this chapter, I’ll discuss the process of registering a domain name, which is basically the address where your website will live online (such as DWcourse.com). In my next post, Purchasing and Configuring Web Hosting (HostGator), I’ll cover the process of choosing a company to host your website and configuring your domain servers. </p>
<h4>Domain Names</h4>
<p>In the beginning of the Internet era, domain names were available through only one company (Network Solutions) and were relatively expensive to register ($70 for two years). These days, you can register domains with a variety of companies and, depending on the company, expect to pay about $10 to $15 per year.</p>
<p>Based upon my personal experience and the advice of several web professionals, I recommend registering your domains through GoDaddy<img width="3" height="3" src="/wp-content/images/0clip_image002.png" alt="http://www.lduhtrp.net/qq83elpdjh267679952436AB739" />. They’re a reliable registrar, and are currently offering .com domains for less than $10 per year.<strong><em><br clear="all" /><br />
</em></strong></p>
<p><strong><em>So, let&#8217;s get started…</em></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dwcourse.com/dreamweaver/register-domain-name.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dominate Dreamweaver Registration Opening Soon</title>
		<link>http://www.dwcourse.com/dreamweaver/dominate-dreamweaver-registration-open.php</link>
		<comments>http://www.dwcourse.com/dreamweaver/dominate-dreamweaver-registration-open.php#comments</comments>
		<pubDate>Sat, 27 Feb 2010 22:00:07 +0000</pubDate>
		<dc:creator>jcook</dc:creator>
				<category><![CDATA[Dominate Dreamweaver]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://dwcourse.com/?p=528</guid>
		<description><![CDATA[Registration Opening Soon Registration for the Dominate Dreamweaver will reopen the week of July 12. Please contact me if you have any questions.]]></description>
			<content:encoded><![CDATA[<p></p><h2 style="font-size: 1.5em;">Registration Opening Soon</h2>
<p>Registration for the Dominate Dreamweaver will reopen the week of July 12.</p>
<p>Please contact me if you have any questions.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dwcourse.com/dreamweaver/dominate-dreamweaver-registration-open.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open Browser Window and Bring to Front</title>
		<link>http://www.dwcourse.com/dreamweaver/open-browser-window-in-front.php</link>
		<comments>http://www.dwcourse.com/dreamweaver/open-browser-window-in-front.php#comments</comments>
		<pubDate>Thu, 23 Jul 2009 18:33:29 +0000</pubDate>
		<dc:creator>jcook</dc:creator>
				<category><![CDATA[Tip of the Day]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[behaviors]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[open browser window]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://dwcourse.com/?p=346</guid>
		<description><![CDATA[One Dreamweaver feature that been around for a while is the Open Browser Window (OBW for short) behavior. Described simply, the behavior is a JavaScript that opens a page in a new window while at the same time specifying the size, attributes (scrollbars, resize handles. etc.) and name of the window. Once a window is [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>One Dreamweaver feature that been around for a while is the Open Browser Window (OBW for short) behavior. Described simply, the behavior is a JavaScript that  opens a page in a new window while at the same time specifying the size, attributes (scrollbars, resize handles. etc.) and name of the  window. Once a window is created and named in this manner it can be targeted by additional instances of the OBW behavior or even regular links.</p>
<p>The problem is that &#8211; <strong>in Explorer and Firefox</strong> &#8211; when you target a preexisting window with the OBW behavior, the new page opens  but the targeted window does not come to the front (technically, the targeted window does not gain focus). That means that your new page opens but the user doesn&#8217;t see it because it&#8217;s hidden. Probably not the solution you were looking for.<span id="more-346"></span></p>
<p><script type="text/javascript">// <![CDATA[
 function DWC_openBrWindow(theURL,winName,features) { 
newwindow=window.open(theURL,winName,features); 
if (window.focus) {newwindow.focus()} 
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
// ]]&gt;</script></p>
<p>Here&#8217;s an example created using DW&#8217;s built-in OBW behavior. If you&#8217;re using Explorer of Firefox (Safari users don&#8217;t have this problem), click on the first link below and a new window &#8211; which I&#8217;m naming &#8220;popup&#8221; &#8211; will open. Make sure that &#8220;popup is positioned over this window, leave it open, return to this page and click on the second link.</p>
<p align="center"><a onclick="MM_openBrWindow('/test-pages/page1.html','popup','width=200,height=200');return false;" href="#">Open Page 1</a> then come back and <a onclick="MM_openBrWindow('/test-pages/page2.html','popup','width=200,height=200');return false;" href="#">Open Page 2</a><a href="#"></a></p>
<p>The second link opens a new page in the existing &#8220;popup&#8217; window but you won&#8217;t see it because it&#8217;s hidden behind this window. To verify that the new page opened, minimize (<strong>But don&#8217;t close!</strong>) this window. I&#8217;d hate to lose you just when things are getting interesting! Once you&#8217;re curiosity is satisfied, leave the pop-up window open and maximize this window.</p>
<p>What you&#8217;d really like to happen is what happens when you click on the link below.</p>
<p align="center"><a onclick="DWC_openBrWindow('/test-pages/page3.html','popup','width=200,height=200');return false;" href="#">Open Page 3</a></p>
<p>Notice that the new page opens in the existing &#8220;popup&#8221; window AND the window comes to the front. Fortunately, all it takes to work this magic is the substitution of a few lines of code in the JavaScript function  <strong>MM_openBrWindow</strong> that Dreamweaver creates to handle the OBW behavior. Here&#8217;s all you need to do:</p>
<ol>
<li>In Dreamweaver, using the Behaviors palette,  attach the OPB behavior to an object in your page.</li>
<li>Switch to either the Code or Split view.</li>
<li>Near the top of the code of your page, somewhere between the opening head and closing head tags (&lt;head&gt; and &lt;/head&gt; respectively) locate the following three lines of code which define the <strong>MM_openBrWindow</strong> function:<br />
<code>function MM_openBrWindow(theURL,winName,features) { //v2.0<br />
window.open(theURL,winName,features);<br />
}</code></li>
<li>Copy the code below  and use it to replace the code you located in step 3 above.<br />
<code>function MM_openBrWindow(theURL,winName,features) {<br />
newwindow=window.open(theURL,winName,features);<br />
if (window.focus) {newwindow.focus()}<br />
}</code></li>
<li>That&#8217;s it! Now whenever you use the Open Browser Window Behavior in your page you can rest assured the window will pop to the front and be visible. Just remember, since DW inserts the JavaScript in the page (and that&#8217;s where we customized it), you&#8217;ll need to make this change on every page where you use the OBW behavior.</li>
</ol>
<p><em><strong>Note:</strong> When using the <strong>links relative to site root</strong> option, this customized script will fail  using DW&#8217;s Preview in Browser feature. However it will function properly when uploaded to your web server. Using <strong>links relative to document</strong> avoids the problem all together.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dwcourse.com/dreamweaver/open-browser-window-in-front.php/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>An Introduction to Dreamweaver</title>
		<link>http://www.dwcourse.com/dreamweaver/an-introduction-to-dreamweaver.php</link>
		<comments>http://www.dwcourse.com/dreamweaver/an-introduction-to-dreamweaver.php#comments</comments>
		<pubDate>Fri, 08 May 2009 04:25:42 +0000</pubDate>
		<dc:creator>jcook</dc:creator>
				<category><![CDATA[Dreamweaver Tips]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Page Design]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://dwcourse.com/?p=257</guid>
		<description><![CDATA[As I mentioned earlier this week, I&#8217;ve been busily working to expand the amount of information we provide here at DWcourse. Well, after some long hours and late nights, I&#8217;m proud to announce the release of Let&#8217;s Get Started with Dreamweaver, my introductory mini-course to Dreamweaver. It&#8217;s a FREE 50+ page PDF that walks you [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>As I mentioned <a href="http://dwcourse.com/dreamweaver/hostgator.php">earlier this week</a>, I&#8217;ve been busily working to expand the amount of information we provide here at DWcourse.</p>
<p>Well, after some long hours and late nights, I&#8217;m proud to announce the release of <a href="http://dwcourse.com/dreamweaver-mini-course">Let&#8217;s Get Started with Dreamweaver</a>, my introductory mini-course to Dreamweaver.</p>
<p><a href="http://dwcourse.com/dreamweaver-mini-course"><img class="alignnone" title="Lets Get Started with Dreamweaver" src="http://dwcourse.com/wp-content/uploads/2009/05/dwcourse-intro-wide.jpg" alt="" width="500" height="232" /></a></p>
<p>It&#8217;s a <strong>FREE</strong> 50+ page PDF that walks you step-by-step through the most basic steps you need to master when starting to work with Dreamweaver.</p>
<p>If you&#8217;ve been working with Dreamweaver for years, this information is probably old hat to you by now. However, if you&#8217;re relatively new to Dreamweaver this mini-course covers everything I wish someone had told me when I first started using DW.</p>
<p>It covers the kinds of things that a lot of people screw up early on, get frustrated with, and then quit before even giving the program a real chance.</p>
<p>Ok, enough with the sales pitch. If you&#8217;re interested just <a href="http://dwcourse.com/dreamweaver-mini-course" target="_blank">go enter your name</a> &amp; email address and I&#8217;ll send it over to you.</p>
<p>If you&#8217;re already registered for our newsletter you don&#8217;t need to sign up again, there&#8217;s a copy on its way to your inbox shortly.</p>
<p>Anyway, I really hope this helps and as always, if you have any questions feel free to email me or message me on Twitter.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dwcourse.com/dreamweaver/an-introduction-to-dreamweaver.php/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Creating and Customizing Vertical Spry Menu Bars in Dreamweaver CS3</title>
		<link>http://www.dwcourse.com/dreamweaver/more-spry-menu-bars.php</link>
		<comments>http://www.dwcourse.com/dreamweaver/more-spry-menu-bars.php#comments</comments>
		<pubDate>Tue, 17 Jul 2007 22:48:40 +0000</pubDate>
		<dc:creator>jcook</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[spry]]></category>
		<category><![CDATA[spry menus]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.designrefugee.com/design-blog/more-spry-menu-bars.html</guid>
		<description><![CDATA[If you enjoy this tutorial, you may be interested in Dominate Dreamweaver. My 12-week online course which will take your from the Dreamweaver basics through building complex spry menubars and much more is now accepting registrations. The cost for the course is $397 (or three payments of $149.99). Click here for more information or use [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>If you enjoy this tutorial, you may be interested in <a href="http://dwcourse.com/enroll-session2">Dominate Dreamweaver</a>. My 12-week online course which will take your from the Dreamweaver basics through building complex spry menubars and much more is now accepting registrations. The cost for the course is $397 (or three payments of $149.99).</p>
<p><em>Click here for <a href="http://dwcourse.com/enroll-session2">more information</a> or use the button below to register now.</em></p>
<p><a href="http://dwcourse.com/amember/signup.php"><img class="aligncenter size-full wp-image-515" title="order-button" src="http://dwcourse.com/wp-content/uploads/2009/09/order-button.jpg" alt="order-button" width="263" height="159" /></a></p>
<hr />
<p><em><strong>Note:</strong> This is our second tutorial on customizing Spry menu bars in Dreamweaver CS3. The first covered <a href="http://dwcourse.com/dreamweaver/spry-menu-bars.php">customizing horizontal menu bars</a>. Many of the steps for creating and customizing vertical menu bars are the same as those for horizontal menu bars. That information is repeated here so you won’t have to refer back to the previous article.</em><span id="more-71"></span></p>
<p>As I’ve said already Adobe has documented the CSS files that control the appearance of the menu bars with ample notes to guide the adventurous. They’ve also included a help file that’s actually helpful. You can use the information you&#8217;ll find there to expand on the lessons of this tutorial.</p>
<h2>Getting started:</h2>
<p><em>Before you begin, make sure you have properly defined your website within Dreamweaver.</em></p>
<h2>Creating a vertical menu bar:</h2>
<ol>
<li>Open an existing document or create and save a new one. Dreamweaver CS3 won’t allow you to add a menu bar to an unsaved document. If you try, you’ll be prompted to save the document before proceeding.</li>
<li>Select the location in your document where you want the menu bar to appear.</li>
<li>Select the Spry tab in the Insert palette. (If the Insert pallet is not visible, select Insert from the Windows menu to display it.)<br />
<img src="http://www.designrefugee.com/design-blog/wp-content/insert.jpg" alt="Dreamweaver CS3 Insert Palette" /></li>
<li>Click on the Spry Menu Bar icon in the Insert palette.</li>
<li>You will be asked to select horizontal or vertical for your menu bar layout. Since we’re making a verical menu bar, select verical and click OK. Your menu bar will be placed on the page.</li>
<li>Immediately save the document. You will be informed that your menu bar requires a number of supporting files and prompted to save them. Click OK and DW will save the files in a SpryAssets folder it will create within the root folder of your website.</li>
<li>With the menu selected, you can use the Properties palette to define the links, menus and submenus of your menu bar (to select the menu bar, click on the blue box labeled “Spry Menu Bar for xxxxx” that appears immediately above your menu bar).<br />
<img src="http://www.designrefugee.com/design-blog/wp-content/properties.jpg" alt="Dreamweaver CS3 Menu Bar Properties Palette" /><br />
<em>Note that the Properties palette also contains a link, “Customize this widget.” That leads to the Help file that you are hoping to ignore by reading this. Take my word for it, clicking that link will be worth your while. Go ahead, I’ll wait for you.</em></li>
</ol>
<h2>Customizing the look of the menu bar:</h2>
<p><img title="Vertical Styles" src="http://www.designrefugee.com/design-blog/wp-content/vertical-styles.jpg" alt="Vertical Styles" hspace="6" align="right" /><em>Good, you’re back. In case you didn’t figure it out from the help file, I should let you know that the look of your menu bar is controlled by the styles in the CSS file (SpryMenuBarVertical.css) that Dreamweaver graciously created in the SpryAssets folder. Since we’ll be editing these styles, you’ll need at least a minimal understanding of CSS styles in DW.</em></p>
<p><strong>Type style and size:</strong></p>
<p>DW does not specify styles for the text in its menu bars so the style attributes are picked up from the page element(s) that enclose the menu bar. If you would like to use a specific font, size, weight, style, variant or case attribute for ALL the text in your menu bar, specify it in the ul.MenuBarVertical style. The color of the text will be defined elsewhere.</p>
<p><strong>Menu bar width:</strong></p>
<p><em><strong>Note: </strong>This is the area that differs significantly from the procedure for customizing horizontal menu bars. </em></p>
<p>By default, the width of the top-level menu and each menu item is set to 8 ems.</p>
<p><strong>To specify a specific pixel width for the top-level menu: </strong>In BOTH <strong>ul.MenuBarVertical</strong> and <strong>ul.MenuBarVertical li</strong> styles replace width: 8ems with width: XXXpx.</p>
<p><em>Note that changes made to <strong>ul.MenuBarVertical </strong> and <strong>ul.MenuBarVertical li</strong> affect only the items in your top level menu. The width of pull-down menus is not affected.</em></p>
<p><strong>Menu bar height:</strong></p>
<p><em>Caution! </em>You can control the height of items in your menu bar by specifying a height attribute in the <strong>ul.MenuBarVertical a</strong> style. But be careful. This can cause type to be cropped or even disappear if text is resized or a menu item unexpectedly wraps to a second line. It’s more flexible to let the height of your menu items be determined automatically by the font-size (specified in <strong>ul.MenuBarVertical</strong>) and the padding (specified in <strong>ul.MenuBarVertical a</strong>).</p>
<p><strong>Color of menu items:</strong></p>
<p>The color of menu items in the link state (when they are not being hovered over or clicked) is determined by the <strong>ul.MenuBarVertical a</strong> style. To change the look of your menu items, simply change the default background-color and color styles DW has provided. This is also the place to add borders if you want to visually separate the menu items.</p>
<p><strong>Rollover color of menu items:</strong></p>
<p>To keep it simple, set the background-color and color styles to your preferred rollover colors in the following two style definitions:</p>
<ol>
<li><strong>ul.MenuBarVertical a:hover, ul.MenuBarVertical a:focus</strong></li>
<li><strong>ul.MenuBarVertical a.MenuBarItemHover, etc.</strong></li>
</ol>
<p><em>In THEORY, the first definition determines the hover state of menu items and the second definition controls the appearance of menu items with open submenus. In REALITY that’s the way it works in Explorer. However in Firefox and Safari BOTH the hover state and the appearance of menu items with open submenus are governed by the second definition. I usually just make sure both definitions have the same settings for background-color and color and forget about it.</em></p>
<p><strong>Menu bar arrows:</strong></p>
<p>In DW’s vertical menu bars, menu items which open to submenus have a right-pointing arrow at their far right edge. These arrows are actually background images. If you change the background color of menu items or their rollover state, the arrows may become difficult to see.</p>
<p>To change the arrows, edit the background image attribute in the appropriate style definition as described below:</p>
<ul>
<li>Edit <strong>ul.MenuBarVertical a.MenuBarItemSubmenu</strong> for menu items with a submenu.</li>
<li>Edit <strong>ul.MenuBarVertical a.MenuBarItemSubmenuHover</strong> for the hover (rollover) state of menu items with a submenu.</li>
</ul>
<p>For reference, DW makes available the following images in the SpryAssets folder:</p>
<ul>
<li>SpryMenuBarRight.gif &#8211; black arrow pointing right</li>
<li>SpryMenuBarRightHover.gif &#8211; white arrow pointing right</li>
</ul>
<hr />
<h3>Looking for More Dreamweaver Tips, Tricks &amp; Tutorials?</h3>
<p>If you&#8217;d like to receive more tips and tutorials like this subscribe to my Dreamweaver Tips, Tricks &amp; Tutorials newsletter by completing the form below:<br />
<script src="http://forms.aweber.com/form/77/1825650877.js" type="text/javascript"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dwcourse.com/dreamweaver/more-spry-menu-bars.php/feed</wfw:commentRss>
		<slash:comments>249</slash:comments>
		</item>
		<item>
		<title>Creating and Customizing Horizontal Spry Menu Bars in Dreamweaver CS3</title>
		<link>http://www.dwcourse.com/dreamweaver/spry-menu-bars.php</link>
		<comments>http://www.dwcourse.com/dreamweaver/spry-menu-bars.php#comments</comments>
		<pubDate>Sat, 14 Jul 2007 22:53:05 +0000</pubDate>
		<dc:creator>jcook</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[menus]]></category>
		<category><![CDATA[spry]]></category>
		<category><![CDATA[spry menus]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.designrefugee.com/design-blog/spry-menu-bars.html</guid>
		<description><![CDATA[If you enjoy this tutorial, you may be interested in Dominate Dreamweaver. My 12-week online course which will take your from the Dreamweaver basics through building complex spry menubars and much more is now accepting registrations. The cost for the course is $397 (or three payments of $149.99). Click here for more information or use [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>If you enjoy this tutorial, you may be interested in <a href="http://dwcourse.com/enroll-session2">Dominate Dreamweaver</a>. My 12-week online course which will take your from the Dreamweaver basics through building complex spry menubars and much more is now accepting registrations. The cost for the course is $397 (or three payments of $149.99).</p>
<p><em>Click here for <a href="http://dwcourse.com/enroll-session2">more information</a> or use the button below to register now.</em></p>
<p><a href="http://dwcourse.com/amember/signup.php"><img class="aligncenter size-full wp-image-515" title="order-button" src="http://dwcourse.com/wp-content/uploads/2009/09/order-button.jpg" alt="order-button" width="263" height="159" /></a></p>
<hr />
<p>I should start by saying that Adobe has done an excellent job implementing spry menu bars. More to the point, they have documented the CSS files that control the appearance of the menu bars with ample notes to guide the adventurous. They’ve even included a help file that’s actually helpful. Still, in my experience, a program’s documentation is the last place people look for help so I’ve put together this little tutorial.</p>
<p><span id="more-70"></span></p>
<p><strong><em>Note:</em></strong><em> For the most part the process of customizing horizontal and vertical menu bars is the same but there are differences so I’ll follow up this post with one devoted to vertical menus. However, if you can’t wait, the instructions offered here should provide a good basis for your own experimentation with vertical menu bars.</em></p>
<h2>Getting started:</h2>
<p><em>Before you begin, make sure you have properly defined your website within Dreamweaver. </em></p>
<h2>Create a horizontal menu:</h2>
<ol type="1">
<li>Open an existing document or create and save a new one. Dreamweaver CS3 won’t allow you to add a menu bar to an unsaved document. If you try, you’ll be prompted to save the document before proceeding.</li>
<li>Select the location in your      document where you want the menu bar to appear.</li>
<li>Select the Spry tab in the      Insert palette. (if the Insert pallet is not visible, select Insert from      the Windows menu to display it.)<img title="Dreamweaver CS3 Insert Palette" src="http://www.designrefugee.com/design-blog/wp-content/insert.jpg" alt="Dreamweaver CS3 Insert Palette" vspace="9" /></li>
<li>Click on the Spry Menu Bar      icon in the Insert palette.</li>
<li>You will be asked to select horizontal      or vertical for your menu bar layout. Since we’re making a horizontal menu      bar, select horizontal and click OK. Your menu bar will be placed on the      page.</li>
<li><em>Immediately save the      document. </em>You will be informed that      your menu bar requires a number of supporting files and prompted to save      them. Click OK and DW will save the files in a SpryAssets folder it will      create within the root folder of your website.</li>
<li>With the menu selected, you can use the Properties palette to define the links, menus and submenus of      your menu bar (to select the menu bar, click on the blue box labeled “Spry      Menu Bar for xxxxx” that appears immediately above your menu bar). <em><br />
</em></p>
<p><img title="Dreamweaver CS3 Menu Bar Properties Palette" src="http://www.designrefugee.com/design-blog/wp-content/properties.jpg" alt="Dreamweaver CS3 Menu Bar Properties Palette" vspace="9" /></p>
<p><em>Note that the Properties palette also contains a link, “Customize this widget.” That leads to the Help file that you are hoping to ignore by reading this. Take my word for it, clicking that link will be worth your while. Go ahead, I&#8217;ll wait for you.</em></li>
</ol>
<h2>Customizing the look of the menu bar:</h2>
<p><img title="Menu Bar CSS" src="http://www.designrefugee.com/design-blog/wp-content/css.jpg" alt="Menu Bar CSS" hspace="9" align="right" /><em>Good, you&#8217;re back. In case you didn&#8217;t figure it out from the help file, I should let you know that the look of your menu bar is controlled by the styles in the CSS file (SpryMenuBarHorizontal.css) that Dreamweaver graciously created in the SpryAssets folder. Since we&#8217;ll be editing these styles, you&#8217;ll need at least a minimal understanding of CSS styles in DW. For instance, you should know &#8211; or be able to figure out &#8211; that when I say “set width: 20%” you should change the style definition so that the width attribute is set to 20%.</em></p>
<p><strong>Type style and size:</strong></p>
<p>DW does not specify styles for the text in its menu bars so the style attributes are picked up from the page element(s) that enclose the menu bar. If you would like to use a specific font, size, weight, style, variant or case attribute for ALL the text in your menu bar, specify it in the <strong>ul.MenuBarHorizontal</strong> style. <em>The color of the text will be defined elsewhere.</em></p>
<p><strong>Menu bar width:</strong></p>
<p>By default, the width of each menu item is set to 8 ems and the overall menu width is set to auto (determined automatically by the width and number of menu items).</p>
<p><strong>To specify a specific pixel width for a menu bar:</strong> In the <strong>ul.MenuBarHorizontal</strong> style replace width: auto with width: XXXpx AND set the width attribute in <strong>ul.MenuBarHorizontal li</strong> to an appropriate value in either percent or pixels.</p>
<p>In other words, if <strong>ul.MenuBarHorizontal</strong> is set to width: 600px and there are four items in the top-level menu, an appropriate setting for <strong>ul.MenuBarHorizontal li</strong> would be either width: 150px OR width: 25%. For a 600 pixel wide top-level menu with 5 items the appropriate setting for <strong>ul.MenuBarHorizontal li</strong> would be width: 20% or width: 120px. Just make sure everything adds up or you may get unexpected results.</p>
<p><em>Note that changes made to <strong>ul.MenuBarHorizontal li</strong> affect only the items in your top level menu. The width of pull-down menus is not affected. Also, you should avoid adding borders to the </em><em><strong>ul.MenuBarHorizontal li </strong></em><em>style. They’ll throw off the width calculations we made above.</em></p>
<p><strong>Menu bar height:</strong></p>
<p><em>Caution!</em> You can control the height of your menu bar by specifying a height attribute in the <strong>ul.MenuBarHorizontal a</strong> style. But be careful. This can cause type to be cropped or even disappear if text is resized or a menu item unexpectedly wraps to a second line.</p>
<p><strong>Color of menu items:</strong></p>
<p>The color of menu items in the link state (when they are not being hovered over or clicked) is determined by the <strong>ul.MenuBarHorizontal a</strong> style. To change the look of your menu items, simply change the default background-color and color styles DW has provided. This is also the place to add borders if you want to visually separate the menu items.</p>
<p><strong>Rollover color of menu items:</strong></p>
<p>To keep it simple, set the background-color and color styles to your preferred rollover colors in the following two style definitions:</p>
<ul>
<li><strong>ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus</strong></li>
<li><strong>ul.MenuBarHorizontal a.MenuBarItemHover, etc.</strong></li>
</ul>
<p><em>In THEORY, the first definition determines the hover state of menu items and the second definition controls the appearance of menu items with open submenus. In REALITY that’s the way it works in Explorer. However in Firefox and Safari BOTH the hover state and the appearance of menu items with open submenus are governed by the second definition. I usually just make sure both definitions have the same settings for background-color and color and forget about it.</em></p>
<p><strong>Menu bar arrows:</strong></p>
<p>The way DW menu bars are constructed, menu items which open to submenus have an arrow (downward -pointing for top-level menus, right pointing for sub-menus) at their far right edge. These arrows are actually background images. If you change the background color of menu items or their rollover state, the arrows may become difficult to see.</p>
<p>To change the arrows, edit the background image attribute in the appropriate style definition as described below:</p>
<ul>
<li>Edit <strong>ul.MenuBarHorizontal a.MenuBarItemSubmenu</strong> for top level menu items with a submenu.</li>
<li>Edit <strong>ul.MenuBarHorizontal a.MenuBarItemSubmenuHover</strong> for the hover (rollover) state of top level menu items with a submenu.</li>
<li>Edit <strong>ul.MenuBarHorizontal ul a.MenuBarItemSubmenu</strong> for submenus with a second-level submenu beneath them.</li>
<li>Edit <strong>ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover</strong> for the hover (rollover) state of submenus with a second-level submenu beneath them.</li>
</ul>
<p>For reference, DW makes available the following images in the SpryAssets folder:</p>
<ul>
<li>SpryMenuBarDown.gif – black arrow pointing down</li>
<li>SpryMenuBarDownHover.gif – white arrow pointing down</li>
<li>SpryMenuBarRight.gif &#8211; black arrow pointing right</li>
<li>SpryMenuBarRightHover.gif &#8211; white arrow pointing right</li>
</ul>
<hr />
<h3>Looking for More Dreamweaver Tips, Tricks &amp; Tutorials?</h3>
<p>If you&#8217;d like to receive more tips and tutorials like this subscribe to my Dreamweaver Tips, Tricks &amp; Tutorials newsletter by completing the form below:<br />
<script src="http://forms.aweber.com/form/77/1825650877.js" type="text/javascript"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dwcourse.com/dreamweaver/spry-menu-bars.php/feed</wfw:commentRss>
		<slash:comments>243</slash:comments>
		</item>
	</channel>
</rss>
