<?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>Once Upon Design &#187; Web Design</title>
	<atom:link href="http://onceupondesign.com/tag/web-design/feed/" rel="self" type="application/rss+xml" />
	<link>http://onceupondesign.com</link>
	<description>Web Development</description>
	<lastBuildDate>Fri, 30 Oct 2009 20:54:55 +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>jQuery Mac style dock with fixed positioning</title>
		<link>http://onceupondesign.com/2009/10/30/jquery-mac-style-dock-with-fixed-positioning/</link>
		<comments>http://onceupondesign.com/2009/10/30/jquery-mac-style-dock-with-fixed-positioning/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 20:32:03 +0000</pubDate>
		<dc:creator>Noah</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://onceupondesign.com/?p=33</guid>
		<description><![CDATA[Ok, so I&#8217;ve been looking at http://www.ndesign-studio.com/blog/mac/css-dock-menu and trying to get the dock to be fixed to the bottom of the screen. Generally when making this a fixed dock, the scaling mouseovers disappear. Many people asked on the comments about this, but I didn&#8217;t see a solution so this is what I did. I  have [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, so I&#8217;ve been looking at <a href="http://www.ndesign-studio.com/blog/mac/css-dock-menu">http://www.ndesign-studio.com/blog/mac/css-dock-menu</a> and trying to get the dock to be fixed to the bottom of the screen. Generally when making this a fixed dock, the scaling mouseovers disappear. Many people asked on the comments about this, but I didn&#8217;t see a solution so this is what I did. I  have not thoroughly tested it, I know that it works in ff3.5, safari 4, IE7, &amp;  IE8.</p>
<p>So, here is how it&#8217;s done in your CSS file set #dock to fixed.</p>
<p>#dock {<br />
width: 100%;<br />
bottom: 10px;<br />
position: fixed;<br />
left: 0px;<br />
}</p>
<p>This will lock it to the bottom of your screen. After setting your css, go to <a href="http://interface.eyecon.ro/download">http://interface.eyecon.ro/download </a>and download the source files (<a href="http://interface.eyecon.ro/interface/interface_1.2.zip">or click here</a>.)</p>
<p>There are 2 files in this collection that are used on this menu fisheye.js, and iutil.js. The only one we need to edit is fisheye.js.</p>
<p>Look for the following  line</p>
<p style="padding-left: 30px;">var posx = pointer.x &#8211; el.fisheyeCfg.pos.x;</p>
<p>and add the following lines of code afterwards</p>
<p style="padding-left: 30px;">var windowHeight = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight;</p>
<p>if(pointer.y &gt; windowHeight)<br />
{<br />
pointer.y = windowHeight;<br />
}</p>
<p>now for a little explanation. When you scroll down, pointer.y increases because it represents the location of the cursor (vertically) in relation to the page. All I did, was look at the height of the window and limited the value of pointer.y to that value.</p>
<p><strong>Note: </strong>The window Height code came from http://snipplr.com/view/2638/height-of-window/</p>
]]></content:encoded>
			<wfw:commentRss>http://onceupondesign.com/2009/10/30/jquery-mac-style-dock-with-fixed-positioning/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
