<?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>Sad Code Monkey</title>
	<atom:link href="http://sadcodemonkey.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://sadcodemonkey.com</link>
	<description>Sad, yes, but also brilliant.</description>
	<lastBuildDate>Fri, 20 Jan 2012 21:50:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Captivate &#8211; the horror show that is navigation buttons and audio</title>
		<link>http://sadcodemonkey.com/2012/01/captivate-the-horror-show-that-is-navigation-buttons-and-audio/</link>
		<comments>http://sadcodemonkey.com/2012/01/captivate-the-horror-show-that-is-navigation-buttons-and-audio/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 21:49:02 +0000</pubDate>
		<dc:creator>bigwavedave</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[Captivate]]></category>
		<category><![CDATA[editing]]></category>

		<guid isPermaLink="false">http://sadcodemonkey.com/?p=130</guid>
		<description><![CDATA[If you have added back and forward buttons in Captivate and also have an audio cut on every slide, you may notice that when you test the file and start using the buttons, that the audio doesn&#8217;t stop. Or it stops and starts, or doesn&#8217;t start, or whatever. Well, I accidentally found a workaround. I noticed [...]]]></description>
			<content:encoded><![CDATA[<p>If you have added back and forward buttons in Captivate and also have an audio cut on every slide, you may notice that when you test the file and start using the buttons, that the audio doesn&#8217;t stop. Or it stops and starts, or doesn&#8217;t start, or whatever. Well, I accidentally found a workaround.</p>
<p><span id="more-130"></span></p>
<p>I noticed that the audio was behaving well on a few select slides, so I inspected them to see what was different about them. Can you find the solution in this image?</p>
<p><a href="http://sadcodemonkey.com/wp-content/uploads/2012/01/Picture-1.png"><img class="aligncenter size-full wp-image-131" title="Captivate timeline" src="http://sadcodemonkey.com/wp-content/uploads/2012/01/Picture-1.png" alt="Captivate timeline" width="469" height="301" /></a></p>
<p>The audio had mistakenly been nudged over a few tenths of a second. When I went back and nudged it on an entire section, it worked perfectly. And you won&#8217;t find this on Adobe.</p>
<p><em>Once again, you&#8217;re quite welcome.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://sadcodemonkey.com/2012/01/captivate-the-horror-show-that-is-navigation-buttons-and-audio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NOBR, Your Friend for Phone Numbers and Other Persnickety Strings</title>
		<link>http://sadcodemonkey.com/2012/01/nobr-your-friend-for-phone-numbers-and-other-persnickety-strings/</link>
		<comments>http://sadcodemonkey.com/2012/01/nobr-your-friend-for-phone-numbers-and-other-persnickety-strings/#comments</comments>
		<pubDate>Wed, 04 Jan 2012 19:53:03 +0000</pubDate>
		<dc:creator>bigwavedave</dc:creator>
				<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://sadcodemonkey.com/?p=104</guid>
		<description><![CDATA[Well, I&#8217;ve avoided it long enough. Use NOBR when you don&#8217;t want any part of a string to break. I&#8217;ve avoided using it on phone numbers forever, basically because I&#8217;m lazy. But I finally buckled to the pressure and gave it a go. NOBR also helps avoid the dreaded widows. Here&#8217;s a sample code: &#60;p&#62;To [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I&#8217;ve avoided it long enough. Use NOBR when you don&#8217;t want any part of a string to break. I&#8217;ve avoided using it on phone numbers forever, basically because I&#8217;m lazy. But I finally buckled to the pressure and gave it a go. NOBR also helps avoid the dreaded widows. Here&#8217;s a sample code:</p>
<p>&lt;p&gt;To book your travel, please contact Mega World Travel at &lt;NOBR&gt;888-555-1111&lt;/NOBR&gt; as soon as possible. More event details coming soon.&lt;/p&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://sadcodemonkey.com/2012/01/nobr-your-friend-for-phone-numbers-and-other-persnickety-strings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Loading an SWF movie in Flash</title>
		<link>http://sadcodemonkey.com/2011/09/loading-an-swf-movie-in-flash/</link>
		<comments>http://sadcodemonkey.com/2011/09/loading-an-swf-movie-in-flash/#comments</comments>
		<pubDate>Tue, 27 Sep 2011 20:36:23 +0000</pubDate>
		<dc:creator>bigwavedave</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://sadcodemonkey.com/?p=109</guid>
		<description><![CDATA[Let&#8217;s keep this one simple. There are different ways to code loading a SWF into the main movie depending on where you are. Here are the two scenarios: If you&#8217;re coding on the timeline, main movie. Say we want to load another SWF and we want to scale it to 50%. Decide at what keyframe [...]]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s keep this one simple. There are different ways to code loading a SWF into the main movie depending on where you are. Here are the two scenarios:</p>
<p><span id="more-109"></span></p>
<p><strong>If you&#8217;re coding on the timeline, main movie.</strong></p>
<p>Say we want to load another SWF and we want to scale it to 50%. Decide at what keyframe in the main movie timeline you want the SWF to load and add the following code:</p>
<p>loadMovie(&#8220;my_movie.swf&#8221;, &#8220;_level5&#8243;);<br />
_level5._x=0;<br />
_level5._y=0;<br />
_level5._xscale=50;<br />
_level5._xscale=50;</p>
<p>The level can be any number you want. It just can&#8217;t be level 0 – that&#8217;s the main timeline. The four lines of code below the loadMovie command place the SWF at the top left corner of the main movie (0,0) and make it 50% size. If and when you want to remove the SWF, you simply place the following code in another keyframe on the main timeline:</p>
<p>unloadMovie(&#8220;_level5&#8243;);</p>
<p><strong>If you&#8217;re coding a button.</strong></p>
<p>If you&#8217;re coding a button, simply put the following code into your ActionScript panel:</p>
<p>on (release) {<br />
loadMovie(&#8220;my_movie.swf&#8221;, &#8220;_level5&#8243;);<br />
}</p>
<p>For a button to remove the SWF, add this code:</p>
<p>on (release) {<br />
unloadMovie(&#8220;_level5&#8243;);<br />
}</p>
<p>Notice here that you only need to declare the level of the movie. The code will remove any movie that is occupying level 5. I hope I kept it simple enough for others out there like me who just want to add and remove SWF files.</p>
]]></content:encoded>
			<wfw:commentRss>http://sadcodemonkey.com/2011/09/loading-an-swf-movie-in-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash &#8211; Hide hand cursor and disable all buttons underneath!</title>
		<link>http://sadcodemonkey.com/2011/09/flash-hide-hand-cursor-and-disable-all-buttons-underneath/</link>
		<comments>http://sadcodemonkey.com/2011/09/flash-hide-hand-cursor-and-disable-all-buttons-underneath/#comments</comments>
		<pubDate>Fri, 23 Sep 2011 19:03:22 +0000</pubDate>
		<dc:creator>bigwavedave</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://sadcodemonkey.com/?p=105</guid>
		<description><![CDATA[OK, you&#8217;ve attached a nice library item in Flash, or loaded a SWF movie over your main movie. You go to test, and, crap!, all of the buttons below the loaded movie are still active. You roll over the stage and your cursor seems to turn into a hand at random. Fear not! Simply create [...]]]></description>
			<content:encoded><![CDATA[<p>OK, you&#8217;ve attached a nice library item in Flash, or loaded a SWF movie over your main movie. You go to test, and, crap!, all of the buttons below the loaded movie are still active. You roll over the stage and your cursor seems to turn into a hand at random.</p>
<p>Fear not! Simply create a symbol to serve as a background in your loaded movie (either matching the main movie bkg color or a transparent box) and add the action below to the instance. Remember to put this instance all alone on the lowest layer of your attached/loaded movie.</p>
<p>on (rollOver) {<br />
this.useHandCursor = false;<br />
}</p>
<p>This miraculously serves two functions. First, it disables all of the buttons below, since you&#8217;ve basically created a big button over everything. Second, you&#8217;ve hidden the hand cursor on the whole stage while the movie is attached/loaded. And all buttons above this layer will work like a charm.</p>
]]></content:encoded>
			<wfw:commentRss>http://sadcodemonkey.com/2011/09/flash-hide-hand-cursor-and-disable-all-buttons-underneath/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal Modules</title>
		<link>http://sadcodemonkey.com/2011/08/drupal-modules/</link>
		<comments>http://sadcodemonkey.com/2011/08/drupal-modules/#comments</comments>
		<pubDate>Tue, 09 Aug 2011 14:27:27 +0000</pubDate>
		<dc:creator>blinkilite</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://sadcodemonkey.com/?p=102</guid>
		<description><![CDATA[I have been using Drupal as a beginner for a while now, and have come to find that I was doing everything the hard way (editing code directly to make modifications). Recently, I went to a great Drupal conference in Philadelphia (Drupaldelphia) where I learned a lot about ways to streamline the process and make [...]]]></description>
			<content:encoded><![CDATA[<p>I have been using Drupal as a beginner for a while now, and have come to find that I was doing everything the hard way (editing code directly to make modifications). Recently, I went to a great Drupal conference in Philadelphia (<a href="http://www.drupaldelphia.com/" target="_blank">Drupaldelphia</a>) where I learned a lot about ways to streamline the process and make Drupal easier and accessible to more people. Drupal is a great content management system that is very flexible and customizable for any type of client, especially for larger sites that have a lot of content. The best part is that it is free and open-source, with help available via their user forums. <img src='http://sadcodemonkey.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://drupal.org/" target="_blank">Get Drupal here</a></p>
<p>Read more about some very useful Drupal modules below the jump</p>
<p><span id="more-102"></span></p>
<ul>
<li><strong>Feeds</strong> &#8211; <a href="http://drupal.org/project/feeds" target="_blank">http://drupal.org/project/feeds</a> (D7 beta)<br />
Import or aggregate data as nodes, users, taxonomy terms or simple database records.</li>
<li><strong>Dashboard</strong> &#8211; <a href="http://drupal.org/project/dashboard" target="_blank">http://drupal.org/project/dashboard</a> (D6)<br />
can create custom views for each user role<br />
creates a homepage overview of the site that is easy to understand for non-techy folks</li>
<li><strong>Workbench</strong> &#8211; <a href="http://drupal.org/project/workbench" target="_blank">http://drupal.org/project/workbench</a> (D7 only)<br />
integration with media files<br />
draft view/unpublished items<br />
integration with workflow and access views via user role</li>
<li><strong>Reference Preview</strong> &#8211; <a href="http://drupal.org/project/reference_preview" target="_blank">http://drupal.org/project/reference_preview</a> (D6)<br />
when adding a node reference, it allows you to see a preview of the content (teaser + image)</li>
<li><strong>Block Reference</strong> – <a href="http://drupal.org/project/blockreference" target="_blank">http://drupal.org/project/blockreference</a> (D6 &amp; D7)<br />
same as above, but with blocks. Example: reference the sidebar content for a member discount after user has logged into the site.</li>
<li><strong>Node relationships</strong> &#8211; <a href="http://drupal.org/project/noderelationships" target="_blank">http://drupal.org/project/noderelationships</a> (D6)<br />
allows you to create children of other nodes</li>
<li><strong>Login destination</strong> &#8211; <a href="http://drupal.org/project/login_destination" target="_blank">http://drupal.org/project/login_destination</a> (D6 &amp; D7)<br />
Route people to a specific page after login, to the dashboard perhaps, can be edited based on user role.</li>
<li><strong>Markup</strong> &#8211; <a href="http://drupal.org/project/markup" target="_blank">http://drupal.org/project/markup</a> (D6)<br />
create contextual help within the node creation form</li>
<li><strong>Node form settings</strong> &#8211; <a href="http://drupal.org/project/settings" target="_blank">http://drupal.org/project/settings</a> (D6 &#8211; I think this is the right link)<br />
remove any unnecessary things that may confuse or deter non-techy users.</li>
<li><strong>Multistep</strong> &#8211; <a href="http://drupal.org/project/multistep" target="_blank">http://drupal.org/project/multistep</a> (D6, D7 beta)<br />
splits a giant form into more manageable steps</li>
<li><strong>Conditional Fields</strong> &#8211; <a href="http://drupal.org/project/conditional_fields" target="_blank">http://drupal.org/project/conditional_fields</a> (D6, D7 beta)<br />
enable/disable form fields based on contextual need</li>
<li><strong>Views Bulk Operations</strong> &#8211; <a href="http://drupal.org/project/views_bulk_operations" target="_blank">http://drupal.org/project/views_bulk_operations</a> (D6 &amp; D7)<br />
able to do bulk actions, based on conditions checked</li>
<li><strong>Edit View</strong> &#8211; <a href="http://drupal.org/project/editview" target="_blank">http://drupal.org/project/editview</a> (D6 only)<br />
view node edit forms stacked on top of each other, so all can be completed at once</li>
<li><strong>Editable Fields</strong> &#8211; <a href="http://drupal.org/project/editablefields" target="_blank">http://drupal.org/project/editablefields</a> (D6)<br />
gives people the ability to edit fields right on the page without going into node edit (works with CCK). Might be a good idea for simple things that a content user could edit a single item but still not give them admin editing access.</li>
<li><strong>WYSIWYG</strong> &#8211; <a href="http://drupal.org/project/wysiwyg" target="_blank">http://drupal.org/project/wysiwyg</a> (D6 &amp; D7)<br />
allows a force cleanup on paste, you can set up different abilities based on user role. Works with CCK.<br />
** remember when using this &amp; CCK – only use specific styles from your CSS file available in your dropdown menu… or eliminate the style dropdown completely to help keep content look consistent.</li>
<li><strong>Media</strong> &#8211; <a href="http://drupal.org/project/media" target="_blank">http://drupal.org/project/media</a> (D7 beta)<br />
good image/file management tool if this type of thing is needed for your site.</li>
<li><strong>Browscap</strong> – <a href="http://drupal.org/project/browscap" target="_blank">http://drupal.org/project/browscap</a> (D6)<br />
a module to determine what browser a user is using (for mobile sites or for analytics)</li>
<li><strong>Wurfl</strong> – <a href="http://drupal.org/project/wurfl" target="_blank">http://drupal.org/project/wurfl</a> (D6)<br />
helps detect devices</li>
<li><strong>Mobile Tools</strong> &#8211; <a href="http://drupal.org/project/mobile_tools" target="_blank">http://drupal.org/project/mobile_tools</a> (D6, D7 beta)<br />
a module that assists in making a site mobile-friendly. Detection of user agent, redirect to mobile site, automatic theme switching, integration with Panels and many other features</li>
<li><strong>Panels</strong> &#8211; <a href="http://drupal.org/project/panels" target="_blank">http://drupal.org/project/panels</a> (D6 &amp; D7)<br />
The Panels module allows a site administrator to create customized layouts for multiple uses.</li>
<li><strong>CTools</strong> – <a href="http://drupal.org/project/ctools" target="_blank">http://drupal.org/project/ctools</a> (D6 &amp; D7)<br />
required to work with Panels</li>
<li><strong>Features</strong> &#8211; <a href="http://drupal.org/project/features" target="_blank">http://drupal.org/project/features</a> (D6 &amp; D7)<br />
this module allows you to capture and export your code into a features module – this is good to do when using panels and you have overly complex code. This can be used as a backup of the code. Easier to recover your panels configurations if they are changed or modified. Recommend “syncing” daily if on a heavy traffic website.</li>
<li><strong>Arrange Fields</strong> &#8211; <a href="http://drupal.org/project/arrange_fields" target="_blank">http://drupal.org/project/arrange_fields</a><br />
arrange node input fields or web forms with a simple drag &amp; drop interface</li>
<li><strong>Mega Menus</strong> &#8211; <a href="http://drupal.org/project/megamenu" target="_blank">http://drupal.org/project/megamenu</a><br />
allows for fancy dropdown menu features such as icons, images, two-column dropdowns</li>
<li><strong>Views Slideshow</strong> &#8211; <a href="http://drupal.org/project/views_slideshow" target="_blank">http://drupal.org/project/views_slideshow</a><br />
jQuery slideshow that can create a slideshow of any content, not just images.</li>
<li><strong>Quicktabs</strong> &#8211; <a href="http://drupal.org/project/quicktabs" target="_blank">http://drupal.org/project/quicktabs</a><br />
allows you to create blocks of tabbed content</li>
<li><strong>Webform Alt UI</strong> &#8211; <a href="http://drupal.org/project/webform_alt_ui" target="_blank">http://drupal.org/project/webform_alt_ui</a><br />
requires other modules to work, but allows drag &amp; drop building of web forms. More of a web forms for dummies ☺</li>
<li><strong>elFinder</strong> &#8211; <a href="http://drupal.org/project/elfinder" target="_blank">http://drupal.org/project/elfinder</a><br />
open source AJAX file manager</li>
<li><strong>Chosen</strong> &#8211; <a href="http://drupal.org/project/chosen" target="_blank">http://drupal.org/project/chosen</a><br />
jQuery plugin to allow you to select multiple items from a drop-down menu</li>
</ul>
<p>&nbsp;</p>
<p>**note at the time this post was written, Drupal is in transition between Drupal 6 and Drupal 7. Drupal 7 core release is available and stable, however many of the modules have not yet been updated to work with Drupal 7, so a lot of people are still using Drupal 6. This will likely change as modules are updated and Drupal 7 becomes more widely accepted.</p>
]]></content:encoded>
			<wfw:commentRss>http://sadcodemonkey.com/2011/08/drupal-modules/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backing up Dreamweaver site files</title>
		<link>http://sadcodemonkey.com/2010/11/backing-up-dreamweaver-site-files/</link>
		<comments>http://sadcodemonkey.com/2010/11/backing-up-dreamweaver-site-files/#comments</comments>
		<pubDate>Fri, 12 Nov 2010 20:18:52 +0000</pubDate>
		<dc:creator>bigwavedave</dc:creator>
				<category><![CDATA[Dreamweaver]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://sadcodemonkey.com/?p=97</guid>
		<description><![CDATA[There is a simple way to backup your site files in Dreamweaver. Just go to &#8220;Manage Sites&#8221; and click &#8220;Export&#8221; and it will export all your site information with logins and passwords and local paths into .ste files. Then, if you ever have to re-install Dreamweaver, you can just re-import these files and save yourself [...]]]></description>
			<content:encoded><![CDATA[<p>There is a simple way to backup your site files in Dreamweaver. Just go  to &#8220;Manage Sites&#8221; and click &#8220;Export&#8221; and it will export all your site  information with logins and passwords and local paths into .ste files. Then, if you ever have to re-install Dreamweaver, you can just re-import  these files and save yourself a lot of time &#8230; plus its always good to  have backups.</p>
]]></content:encoded>
			<wfw:commentRss>http://sadcodemonkey.com/2010/11/backing-up-dreamweaver-site-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Background image maps, in CSS</title>
		<link>http://sadcodemonkey.com/2010/09/a-virtual-image-map-on-a-background-image-in-css/</link>
		<comments>http://sadcodemonkey.com/2010/09/a-virtual-image-map-on-a-background-image-in-css/#comments</comments>
		<pubDate>Tue, 28 Sep 2010 19:39:06 +0000</pubDate>
		<dc:creator>blinkilite</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Image Maps]]></category>

		<guid isPermaLink="false">http://sadcodemonkey.com/?p=92</guid>
		<description><![CDATA[Here&#8217;s the scenario: You have a background image in your layout&#8230; like a header logo, and you want to apply a link to that logo &#8211; back to the home page, for example. In old HTML days we would have had an image file in place (not a CSS background) and apply an image map. [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s the scenario: You have a background image in your layout&#8230; like a header logo, and you want to apply a link to that logo &#8211; back to the home page, for example.</p>
<p>In old HTML days we would have had an image file in place (not a CSS background) and apply an image map. Now you might suggest adding a transparent spacer.gif image to apply a link to&#8230; or some other fancy schmancy thing&#8230; but you can do the whole thing with CSS!!</p>
<p><span id="more-92"></span>A co-worker pointed me to this website: <a href="http://www.position-relative.com/tutorials/tute1_css_bg_image.php">http://www.position-relative.com/tutorials/tute1_css_bg_image.php</a> and I want to give them the credit they deserve&#8230; but also put the code here so I can quickly reference it.</p>
<p>Here&#8217;s what you do:</p>
<p>On the div box which has the background image (for instance box1), make sure the CSS specs have it assigned &#8220;position: relative;&#8221;.<br />
That is most important to make this work&#8230;</p>
<p>Then, create a transparent box in the CSS to create the link:</p>
<blockquote><p>#box-link {<br />
position: absolute;<br />
top: 8px;<br />
left: 20px;<br />
width: 83px;<br />
height: 83px;<br />
background-color: transparent;<br />
border: 1px solid yellow; }</p></blockquote>
<p>**make sure to remove the border if you want it hidden</p>
<p>and here is the HTML to create the box link:</p>
<blockquote><p>&lt;div class=&#8221;box1&#8243;&gt;<br />
&lt;a id=&#8221;box-link&#8221; href=&#8221;#&#8221;&gt;&lt;/a&gt;<br />
&lt;p&gt;The background of this box is an image.&lt;/p&gt;<br />
&lt;/div&gt;</p></blockquote>
<p>and there you have it! tried this out today and it works on all browsers IE7 and newer.</p>
<p>Thanks again to <a href="http://www.position-relative.com">www.position-relative.com</a> for the lesson.</p>
]]></content:encoded>
			<wfw:commentRss>http://sadcodemonkey.com/2010/09/a-virtual-image-map-on-a-background-image-in-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The evil that is Spry Menus&#8230;</title>
		<link>http://sadcodemonkey.com/2010/07/the-evil-that-is-spry-menus/</link>
		<comments>http://sadcodemonkey.com/2010/07/the-evil-that-is-spry-menus/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 15:34:25 +0000</pubDate>
		<dc:creator>blinkilite</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Spry Menus]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Dreamweaver]]></category>
		<category><![CDATA[navigation bar styles]]></category>

		<guid isPermaLink="false">http://sadcodemonkey.com/?p=84</guid>
		<description><![CDATA[When using Dreamweaver, it seems easy to create a Spry Menu navigation bar for your website. All you have to do is go into the CSS and change the colors, etc to match your design and you&#8217;re set&#8230; right? Well, depending on how much you have changed, the answer could be no. And sometimes your [...]]]></description>
			<content:encoded><![CDATA[<p>When using Dreamweaver, it seems easy to create a Spry Menu navigation bar for your website. All you have to do is go into the CSS and change the colors, etc to match your design and you&#8217;re set&#8230; right? Well, depending on how much you have changed, the answer could be no. And sometimes your pretty Spry Menu will break in IE6 or IE7 for seemingly no apparent reason. This leads to many headaches and hours of trial and error to see where the problem is&#8230;<span id="more-84"></span></p>
<p>Then I found this website:</p>
<p><a href="http://dwcourse.com/dreamweaver/ten-commandments-spry-menubars.php" target="_blank">The Ten Commandments for Editing Dreamweaver’s  Spry Menubars</a></p>
<p>It was like an awakening&#8230; you mean Spry Menus actually DO work on ALL browsers? <img src='http://sadcodemonkey.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>The biggest error of most users (at least in my experience) is Commandment II: <strong>Thou shalt not edit the styles haphazardly.</strong></p>
<p>Everyone I know seems to make edits to the CSS numerous times without thinking about what the outcome will be, just changing this here and that there, and basically going through a trial and error process until it shows up correctly. This is a very bad idea to do with Spry Menus. They are finicky and don&#8217;t like being told to do things they don&#8217;t like. They also don&#8217;t play well with serious customizations.</p>
<p>If you are going to use Spry Menus, the best bet is to keep it simple. Keep the files the way Dreamweaver set it up for you. Make sure you load all of the javascript files into the right folders on your server and that those relative paths are to the correct folders. Keep the stylesheet for the Spry Menus separate from your main style.css file. Don&#8217;t paste the Spry CSS into your style.css file thinking it will work fine&#8230; chances are it will not. (I speak from experience here&#8230;)</p>
<p>Also when customizing, keep it simple. Edit a color. Test it out. Edit a text style. Test it out. Edit a font. Keep doing small things and testing. Don&#8217;t work in the CSS file for 3 hours programming what you think will style the whole nav bar and then test it. Its best to keep building little pieces at a time, so if something breaks it&#8217;s easier to find what caused the problem, and it will save you a lot of headaches.</p>
<p>If you keep these things in mind, you will be able to use Spry Menus as a drop down menu system that works across all browsers, even IE. *gasp*</p>
<p>One problem I did encounter is that the code provided by Dreamweaver assumes that you want to style the navigation bar and the dropdown menus the same. For the projects I have worked on, this is not the case, and it took some finagling to get it to work by adding my own code. Here is a code snippet for child menus that are a different style than the parent navigation bar:</p>
<blockquote><p>ul.MenuBarHorizontal ul li<br />
{<br />
/* this style applies to the li element of child menus. stick to simple block element things and don&#8217;t apply your text styles here */<br />
}</p>
<p>ul.MenuBarHorizontal ul a<br />
{<br />
/* this style applies to the links in your child menu. use it for styling the background color, padding, text properties, text decoration, etc. */<br />
}</p>
<p>ul.MenuBarHorizontal ul a:hover, ul.MenuBarHorizontal ul a:focus<br />
{<br />
/*this style applies to hover/focus states of the links in your child menus. apply different colors/styles for those states here.*/<br />
}</p></blockquote>
<p>I placed this code at the bottom of the &#8220;DESIGN INFORMATION&#8221; section of SpryMenuBarHorizontal.css which should be found in your sites SpryAssets folder.</p>
<p>A few other things to remember:</p>
<ul>
<li>Don&#8217;t spec height in your CSS file. Get the desired effect you want by applying padding to your menu link &lt;a&gt; styles.</li>
<li>Don&#8217;t apply padding/margin to the list items, or the &lt;li&gt; items in your CSS.</li>
<li>Don&#8217;t apply width to your links. Width is applied to the parent list item &lt;li&gt; styles. Use display: block; in the &lt;a&gt; styles and that will guarantee that it will fill its parent list item.</li>
</ul>
<p>These of course are covered in more depth in the <a href="http://dwcourse.com/dreamweaver/ten-commandments-spry-menubars.php" target="_blank">The Ten Commandments for Editing Dreamweaver’s  Spry Menubars</a>.</p>
<p>Good Luck with your Spry Menus. <img src='http://sadcodemonkey.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://sadcodemonkey.com/2010/07/the-evil-that-is-spry-menus/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Flash Play/Pause button</title>
		<link>http://sadcodemonkey.com/2010/04/flash-playpause-button/</link>
		<comments>http://sadcodemonkey.com/2010/04/flash-playpause-button/#comments</comments>
		<pubDate>Fri, 09 Apr 2010 14:41:48 +0000</pubDate>
		<dc:creator>blinkilite</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Play Pause Button]]></category>

		<guid isPermaLink="false">http://sadcodemonkey.com/?p=72</guid>
		<description><![CDATA[When presenting flash movies and animations to clients, it is a huge advantage to be able to pause and play your flash file. However when I thought to make this, I had a very complicated movie, with many layers, embedded movies, and external movies brought in with actionscript. This lead to many re-dos and errors [...]]]></description>
			<content:encoded><![CDATA[<p>When presenting flash movies and animations to clients, it is a huge advantage to be able to pause and play your flash file.<span id="more-72"></span></p>
<p>However when I thought to make this, I had a very complicated movie, with many layers, embedded movies, and external movies brought in with actionscript. This lead to many re-dos and errors and frustration. Then after some research and trial and error, I was able to get it to work with the &#8216;_level0.&#8217; code.</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_playpause_516219878"
			class="flashmovie"
			width="160"
			height="160">
	<param name="movie" value="swf/playpause.swf" />
	<param name="quality" value="high" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="swf/playpause.swf"
			name="fm_playpause_516219878"
			width="160"
			height="160">
		<param name="quality" value="high" />
	<!--<![endif]-->
		<br />

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>This flash button is a global play pause button. It will pause the movie wherever you happen to be in the movie&#8217;s timeline, and when you hit play, it resumes where you left off. If you are somewhat savvy with actionscript you could duplicate this button and make a rewind to beginning button too.</p>
<p>Place the button on its own layer above all of your other content on the first frame of your movie. Either at frame (1) or the first frame after any preloaders. Place this actionscript code on the button itself.</p>
<blockquote><p>onClipEvent (mouseDown) {<br />
if (isStopped) {<br />
isStopped=false<br />
_level0.gotoAndPlay(_level0._currentframe);<br />
_level0.mc_playpause.gotoAndPlay(2);<br />
}else{<br />
_level0.stop();<br />
isStopped=true;<br />
_level0.mc_playpause.gotoAndPlay(1);<br />
}<br />
}</p></blockquote>
<p>Place this actionscript code on the actions layer of the main timeline at the same keyframe as your button.</p>
<blockquote><p>var isStopped:Boolean=false;</p></blockquote>
<p><a href="http://www.sadcodemonkey.com/files/playpause.zip">Download the button</a> you see above, so you can see how it works. <img src='http://sadcodemonkey.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  This Flash file is CS3, Actionscript 2.0.</p>
]]></content:encoded>
			<wfw:commentRss>http://sadcodemonkey.com/2010/04/flash-playpause-button/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Javascript 101: Print, Back, Close</title>
		<link>http://sadcodemonkey.com/2010/01/javascript-101-print-back-close/</link>
		<comments>http://sadcodemonkey.com/2010/01/javascript-101-print-back-close/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 20:59:35 +0000</pubDate>
		<dc:creator>bigwavedave</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://sadcodemonkey.com/?p=66</guid>
		<description><![CDATA[Do you want some easy code for printing a page, going back in your browser, or closing a window? Just copy and paste this E-Z code.Print button: &#60;input type=&#8221;button&#8221; value=&#8221; Print &#8221; onclick=&#8221;window.print();return false;&#8221; /&#62; Print text: &#60;a href=&#8221;#&#8221; onclick=&#8221;window.print();return false;&#8221;&#62;Print&#60;/a&#62; Back button (if you want to style it, you&#8217;re on your own): &#60;input type=&#8221;button&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>Do you want some easy code for printing a page, going back in your browser, or closing a window? Just copy and paste this E-Z code.<span id="more-66"></span>Print button:</p>
<blockquote><p>&lt;input type=&#8221;button&#8221;               value=&#8221; Print &#8221; onclick=&#8221;window.print();return false;&#8221;               /&gt;</p></blockquote>
<p>Print text:</p>
<blockquote><p>&lt;a href=&#8221;#&#8221;               onclick=&#8221;window.print();return               false;&#8221;&gt;Print&lt;/a&gt;</p></blockquote>
<p>Back button (if you want to style it, you&#8217;re on your own):</p>
<blockquote><p>&lt;input type=&#8221;button&#8221;             value=&#8221; Back &#8221;             onclick=&#8221;history.go(-1);return false;&#8221;             /&gt;</p></blockquote>
<p>Back text:</p>
<p>&lt;a href=&#8221;#&#8221;             onclick=&#8221;history.go(-1);return             false;&#8221;&gt;Back&lt;/a&gt;</p>
<p>Close button:</p>
<blockquote><p>&lt;input type=&#8221;button&#8221; value=&#8221;Close Window&#8221; onclick=&#8221;window.close()&#8221;&gt;</p></blockquote>
<p>For the buttons, you can enclose them in form tags: &lt;form&gt;&lt;/form&gt; if it doesn&#8217;t work without them. Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://sadcodemonkey.com/2010/01/javascript-101-print-back-close/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

