<?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>Guimkie &#187; jQuery</title>
	<atom:link href="http://guimkie.com/tag/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://guimkie.com</link>
	<description>Tutorials and great Mac software!</description>
	<lastBuildDate>Sun, 04 Dec 2011 21:05:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>FancyBox &#8211; A Good Mixture&#8230;</title>
		<link>http://guimkie.com/iweb/fancybox-a-good-mixture/</link>
		<comments>http://guimkie.com/iweb/fancybox-a-good-mixture/#comments</comments>
		<pubDate>Tue, 04 Mar 2008 14:37:38 +0000</pubDate>
		<dc:creator>Max (from Guimkie)</dc:creator>
				<category><![CDATA[FancyBox]]></category>
		<category><![CDATA[iWeb]]></category>
		<category><![CDATA[Effects]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://guimkie.com/iweb/fancybox-a-good-mixture/</guid>
		<description><![CDATA[While I was working with a friend on the old-school iWeb application, he asked me for a good effect to enlarge images. Making images open in a new window really sucks. So, what you do is you look into the jQuery library for a script that would provide what you want. Didn&#8217;t take long and [...]]]></description>
			<content:encoded><![CDATA[<p>While I was working with a friend on the old-school iWeb application, he asked me for a good effect to enlarge images. Making images open in a new window really sucks. So, what you do is you look into the jQuery library for a script that would provide what you want. Didn&#8217;t take long and the outcome was FancyBox. FancyBox, by me, is made up of three things. jQuery, Lightbox and FancyZoom. Since it is a mixture of all of them, I called it FancyBox.</p>
<p>Now what is FancyBox? It is a jQuery based script that will make thumbnailed images zoom up and enlarge. Best way to understand what I am talking about is to look at the demo.</p>
<p>You can take a look at this awesome thing in a demo page I made in iWeb:</p>
<p><a target="_blank" href="http://guimkie.com/fancybox-beta/">http://guimkie.com/fancybox-beta/</a></p>
<p>Please only view this in FireFox and Safari on a Mac. These are the only things with which I have tested it. Camino fails completely. <img src='http://guimkie.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /> </p>
<p>I&#8217;ll open up the scripts as soon as I get it to work properly. That means I will have a pack for those who enjoy coding themselves and then I will have it integrated right into the next major update on iTweak! Yep &#8211; the next major update for iTweak, not the 1.2 version. You&#8217;ll see this stuff coming soon.</p>
<p>The more you nag me, the higher the chance I get this stuff done. I am kind of a person who always shifts things to the last minute, so tell me to be faster. <img src='http://guimkie.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://guimkie.com/iweb/fancybox-a-good-mixture/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>Beam Me Up Scotty!</title>
		<link>http://guimkie.com/wordpress/beam-me-up-scotty/</link>
		<comments>http://guimkie.com/wordpress/beam-me-up-scotty/#comments</comments>
		<pubDate>Sun, 27 Jan 2008 18:14:28 +0000</pubDate>
		<dc:creator>Max (from Guimkie)</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Effects]]></category>

		<guid isPermaLink="false">http://guimkie.com/wordpress/beam-me-up-scotty/</guid>
		<description><![CDATA[Recently I have discovered this effects library called jQuery. It allows you to call advanced functions from the jQuery scripts without much coding that you write yourself.
If you really want to see what these scripts can do, then check out the jQuery demos.
Since this is such a great library, I thought I&#8217;d do a collection [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I have discovered this effects library called <a target="_blank" href="http://jquery.com">jQuery</a>. It allows you to call advanced functions from the jQuery scripts without much coding that you write yourself.</p>
<p>If you really want to see what these scripts can do, then check out the jQuery <a href="http://jquery.com/demos">demos</a>.</p>
<p>Since this is such a great library, I thought I&#8217;d do a collection of tutorials showing all sorts of nice things. Today we are going to look at how to create a jQuery script to dynamically scroll the window back to the top if a link is clicked. This can also be used for anchors of any kind. It just makes this &#8220;in-page&#8221; linking much more attractive.</p>
<p>Not sure what I&#8217;m talking about it? Click <a href="#footer" id="beam-me-down-scotty-tutorial">here</a>.</p>
<p>Note: Apparently the link only works perfectly if you are on a page where there is not ability to post a comment. I haven&#8217;t fixed this issue yet &#8211; but I will soon do so!</p>
<p>I will focus on adding this to Wordpress but the method can also be applied for anything else.</p>
<p>We&#8217;ll start on the next page.</p>
<p><span id="more-86"></span></p>
<p style="text-align: center;">
<script type="text/javascript"><!--
google_ad_client = "pub-7241091367075931";
//Guimkie Header for Bubbled Theme
google_ad_slot = "4991557821";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>
<p>If you want to use some sample HTML files using this script, then you can download my sample project <a href="http://guimkie.com/downloads/load.php?id=25">here</a>.</p>
<ol>
<li>First thing is to create a standard link in the location you want. Define the <code>href</code> to go to an anchor. Just using <code>#</code> will go to the top in most cases &#8211; but defining the specific position is better. Do not forget to give the link a unique ID!<br />You will also have to create your position to where the anchor link should lead. You can use anything you want, a <code>table</code>, a <code>div</code> or just a <code>paragraph</code> as long as you add the name tag to it.<br />Now, let&#8217;s do some examples:
<p>This code will make your page scroll back to the top:</p>
<p><code style="text-align: left;">&lt;div&gt;Header&lt;/div&gt;<br />
...<br />
&lt;a href="#" id="beam-me-up"&gt;Beam Me Up Scotty&lt;/a&gt;</code></p>
<p>For a link going to any other position in your HTML code could look like this:</p>
<p><code style="text-align: left;">&lt;p name="comments&gt;My Commments&lt;/p&gt;<br />
...<br />
&lt;a href="#comments" id="beam-to-comments"&gt;Beam To Comments&lt;/a&gt;</code></p>
<p>Notice that the <code>name</code> tag represents the value in the <code>href</code> tag in the link! The only difference is the <code>#</code> in front! Do not delete it.<br />This is just the standard linking for anchors.</li>
<li>Now test the code that you have added. They should just be some plain anchors jumping from one spot to another.<br /> If it works, then you need to download the latest jQuery set. <a href="http://jquery.com/download/">Download</a> the minimized script, the packed script and the normal script. I am using 1.2.2 for this tutorial.</li>
<li>Now upload the three scripts to your server and connect them with your files. For Wordpress, you open the <code>header.php</code> file of your Wordpress theme. In the <code>&lt;head&gt;</code> section you will have to add this:
<p><code style="text-align: left;"><br />
&lt;script src="path/to/jquery-files.js" type="text/javascript"&gt;&lt;/script&gt;<br />
</code></p>
<p>Do this for each of the three scripts. Make sure you use the names correctly.</li>
<li>Now you will have to create a Javascript file yourself. It sounds hard &#8211; but it is not! You will just use some finished codes. So as said, open any Text Editor and create a file named <code>custom.js</code>. Make sure you have the ending <code>.js</code>. Then, in the file, copy the following contents:
<p><code style="text-align: left;"><br />
$(document).ready(function() {</p>
<p>	// Beam Me Up Scotty<br />
	// Created using the Guimkie (www.guimkie.com) Tutorial.<br />
	// Thanks to the Learning jQuery (www.learningjquery.com) Tutorial.<br />
	// Please do not delete this note!</p>
<p>	$('#LINK-ID').click(function() {<br />
	if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')<br />
	&amp;&amp; location.hostname == this.hostname) {<br />
	var $target = $(this.hash);<br />
	$target = $target.length &amp;&amp; $target<br />
	|| $('[name=' + this.hash.slice(1) +']');<br />
	if ($target.length) {<br />
	var targetOffset = $target.offset().top;<br />
	$('html,body')<br />
	.animate({scrollTop: targetOffset}, 'SPEED-VALUE');<br />
	return false;<br />
	}<br />
	}<br />
	});</p>
<p>});<br />
</code></p>
</li>
<li>In the code above, you need to change two things. First, look for <code>LINK-ID</code>. Change it to the ID name you gave the link in step one!<br />Now look for <code>SPEED-VALUE</code> and change it to either <code>slow</code>, <code>fast</code> or a time specified in seconds.<br />Then save the file and upload it to the other jQuery files on your server. Make sure you also link it to your file! I.e.:
<p><code style="text-align:left;">&lt;script src="path/to/custom.js" type="text/javascript"&gt;&lt;/script&gt;</code></p>
</li>
<li>This is it! Save your files and test it! Now let your visitors enjoy great effects while clicking boring links on your site!<br />Again, if you need help or it did not work, <a href="http://guimkie.com/downloads/load.php?id=25">download</a> the sample files and see if you get it to work that way!
</li>
<p>I will be releasing more jQuery tutorials and I am already working on a plugin for Wordpress that will &#8230; (not telling).</p>
<p>Thanks to <a href="http://learningjquery.com">Learning jQuery</a> for teaching me how to do this!</p>
]]></content:encoded>
			<wfw:commentRss>http://guimkie.com/wordpress/beam-me-up-scotty/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

