<?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"
	>

<channel>
	<title>Kongtechnology.com &#187; Web design and programming</title>
	<atom:link href="http://www.kongtechnology.com/category/web-design-and-programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kongtechnology.com</link>
	<description>Blogging, Microsoft, Apple Ipod, Mozilla, Google Adsense, USB Drives, Web2.0</description>
	<pubDate>Thu, 20 Nov 2008 10:37:47 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Beautiful pop-up window</title>
		<link>http://www.kongtechnology.com/2008/10/29/beautiful-pop-up-window/</link>
		<comments>http://www.kongtechnology.com/2008/10/29/beautiful-pop-up-window/#comments</comments>
		<pubDate>Wed, 29 Oct 2008 08:31:07 +0000</pubDate>
		<dc:creator>Kitkat</dc:creator>
		
		<category><![CDATA[Web design and programming]]></category>

		<category><![CDATA[javascript]]></category>

		<category><![CDATA[popup]]></category>

		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://www.kongtechnology.com/?p=570</guid>
		<description><![CDATA[When you think of pop-up windows, you may laugh at me because making a link open a new window is one of the easiest things you can do with HTML. In the old days, we simply put a &#8220;target=xxxx&#8221; tag to create a pop-up window. This can be done in almost an instant, but undeniably [...]]]></description>
			<content:encoded><![CDATA[<p>When you think of pop-up windows, you may laugh at me because making a link open a new window is one of the easiest things you can do with HTML. In the old days, we simply put a &#8220;target=xxxx&#8221; tag to create a pop-up window. This can be done in almost an instant, but undeniably it&#8217;s ugly.</p>
<p>You can of course use the Javascript:</p>
<blockquote><p>&lt;a href=&#8221;javascript:window.open(url);&#8221;&gt;Your link here&lt;/a&gt;</p></blockquote>
<p>But this is ugly and dirty, both in terms of the accessibility and pop-ed up window itself. Look at the code snippet above, the <strong>a href</strong> tag is not linking to a link but instead it is running some javascript. This means the whole meaning of the link is gone!</p>
<p>Okay, you got the point. So, how do we make it accessible and good, with clean code?</p>
<p>Very easy, we use <a href="http://orangoo.com/labs/GreyBox/" target="_out">GreyBox</a>. Basically, GreyBox makes our life easier by supplying the codes needed to build beautiful and clean pop-up windows. GreyBox uses the &#8220;rel&#8221; attribute. <strong>rel</strong> is used to describe the relationship between the <em>current page</em> and the <em>href</em> destination of the anchor. The whole line becomes something like this:</p>
<blockquote><p>&lt;a href=&#8221;http://google.com/&#8221; title=&#8221;Google&#8221; rel=&#8221;gb_page_fs[]&#8220;&gt;Launch google.com in fullscreen window&lt;/a&gt;</p></blockquote>
<p><img src="http://www.kongtechnology.com/images/greybox.jpg" alt="GreyBox" /></p>
<p>It&#8217;s very easy to setup and use GreyBox even if you are a first time user&#8230; just follow the instructions on their website. It&#8217;s FREE to download and use!</p>
<p>Why GreyBox?</p>
<ul>
<li>It does not conflict with pop-up blockers
<li>It&#8217;s only 22 KB!
<li>It&#8217;s super easy to setup
<li>It&#8217;s super easy to use
<li>You can easily alter the style as it is controlled through CSS
</ul>
<p><img src="http://www.kongtechnology.com/images/greybox-popup.jpg" alt="GreyBox popup" /></p>
<p>Now, GreyBox really creates pop-up windows that don&#8217;t suck! <img src='http://www.kongtechnology.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.kongtechnology.com/2008/10/29/beautiful-pop-up-window/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Smooth anchor links</title>
		<link>http://www.kongtechnology.com/2008/07/16/smooth-anchor-links/</link>
		<comments>http://www.kongtechnology.com/2008/07/16/smooth-anchor-links/#comments</comments>
		<pubDate>Wed, 16 Jul 2008 10:56:19 +0000</pubDate>
		<dc:creator>Kitkat</dc:creator>
		
		<category><![CDATA[Web design and programming]]></category>

		<category><![CDATA[html]]></category>

		<category><![CDATA[javascript]]></category>

		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://www.kongtechnology.com/?p=514</guid>
		<description><![CDATA[This post should be useful for designers or webmasters, but it should be informational for all readers too I guess. We will talk about &#8220;smooth anchor links&#8221;. Anchor links, are links which send you directly to the line you marked on a web page. This is used to jump within the same page and is [...]]]></description>
			<content:encoded><![CDATA[<p>This post should be useful for designers or webmasters, but it should be informational for all readers too I guess. We will talk about &#8220;smooth anchor links&#8221;. Anchor links, are links which send you directly to the line you marked on a web page. This is used to jump within the same page and is especially useful for long pages where we can use a &#8220;top&#8221; anchor to move to the top of the page, saving the user tonnes of scrolling.</p>
<p><img src="http://www.kongtechnology.com/images/smooth-scrolling.jpg" alt="Smooth scrolling" /></p>
<p>Now, the conventional anchor links always zip you to the marked lines immediately. I have always found this to be somewhat jumpy. So, when I recently stumbled upon this excellent <strong>smooth anchor links</strong> script at <a href="http://davidwalsh.name/fluid-anchors-smooth-anchors-using-mootools" target="_out" rel="external nofollow">david walsh blog</a>, which demonstrated the ability to smoothly take a user to a specific portion of a page, aka the anchor, I was totally amazed!</p>
<p>This is definitely one of the cooler scripts I have seen in a long time, and I can&#8217;t think of a reason to not share it with you! I hope you like the smooth scrolling effect and will use it in your web pages or blogs! Happy smooth-scrolling!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kongtechnology.com/2008/07/16/smooth-anchor-links/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to integrate WordPress into an existing site</title>
		<link>http://www.kongtechnology.com/2008/06/11/how-to-integrate-wordpress-into-an-existing-site/</link>
		<comments>http://www.kongtechnology.com/2008/06/11/how-to-integrate-wordpress-into-an-existing-site/#comments</comments>
		<pubDate>Tue, 10 Jun 2008 16:37:52 +0000</pubDate>
		<dc:creator>Kitkat</dc:creator>
		
		<category><![CDATA[Blogging]]></category>

		<category><![CDATA[Tips and Tricks]]></category>

		<category><![CDATA[Web design and programming]]></category>

		<guid isPermaLink="false">http://www.kongtechnology.com/?p=458</guid>
		<description><![CDATA[WordPress is a very powerful content management system, which is specifically designed as a blogging platform. You can use WordPress as what it&#8217;s designed for, a blog, or customize it into a full fledge CMS website with the help of nothing but freely available plugins.
However what&#8217;s more common is perhaps you are installing WordPress in [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress is a very powerful content management system, which is specifically designed as a blogging platform. You can use WordPress as what it&#8217;s designed for, a blog, or customize it into a full fledge <a href="http://www.kongtechnology.com/2008/02/29/how-to-turn-wordpress-into-a-cms-website/">CMS website</a> with the help of nothing but freely available plugins.</p>
<p>However what&#8217;s more common is perhaps you are installing WordPress in a sub-folder of an existing website, and after blogging for a while, you are thinking &#8220;Hey, how can I list my blog posts on my homepage?&#8221;</p>
<p><img src="http://www.kongtechnology.com/images/latest-blog-posts.jpg" alt="Latest blog posts" /></p>
<p>It&#8217;s really easy actually because WordPress has made life so much easier for us. In order to use any functions in WordPress (such as display latest blog posts, display latest comments, etc), you simply need to include the file &#8220;wp-blog-header.php&#8221;. For example, to display my latest 10 blog posts in my <a href="http://www.kongtechnology.com/games">Flash Games</a> page, I simply put the following few lines of code:</p>
<p><span id="more-458"></span></p>
<blockquote><p>
&lt;?php<br />
define(&#8217;WP_USE_THEMES&#8217;, false);<br />
require(&#8217;../wp-blog-header.php&#8217;);<br />
query_posts(&#8217;showposts=10&#8242;);<br />
?&gt;</p>
<p>&lt;ul><br />
&lt;?php if (have_posts()) : while (have_posts()) : the_post(); ?><br />
&lt;li>&lt;a href=&#8221;&lt;?php the_permalink() ?>&#8221; rel=&#8221;bookmark&#8221;>&lt;?php the_title(); ?>&lt;/a>&lt;br /><br />
	&lt;?php comments_popup_link(__(&#8217;Comments (0)&#8217;), __(&#8217;Comments (1)&#8217;), __(&#8217;Comments (%)&#8217;), &#8216;grey&#8217;); ?><br />
&lt;?php endwhile; else: ?></p>
<p>&lt;?php endif; ?><br />
&lt;/ul>
</p></blockquote>
<p>Apart from display the latest 10 posts, it also displays the number of comments each post has.</p>
<p>OK, the codes above may look a little gibberish, but the important thing is by including the file &#8220;wp-blog-header.php&#8221;, you will have access to all the WordPress functions in an instant!</p>
<p>Wonderful isn&#8217;t it? With this you can easily integrate WordPress into your existing website and make the website easier to update by making use of WordPress CMS capability.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kongtechnology.com/2008/06/11/how-to-integrate-wordpress-into-an-existing-site/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Free icons for your websites and blogs</title>
		<link>http://www.kongtechnology.com/2008/01/08/free-icons-for-your-websites-and-blogs/</link>
		<comments>http://www.kongtechnology.com/2008/01/08/free-icons-for-your-websites-and-blogs/#comments</comments>
		<pubDate>Tue, 08 Jan 2008 07:03:35 +0000</pubDate>
		<dc:creator>Kitkat</dc:creator>
		
		<category><![CDATA[Web design and programming]]></category>

		<guid isPermaLink="false">http://www.kongtechnology.com/2008/01/08/free-icons-for-your-websites-and-blogs/</guid>
		<description><![CDATA[It has always been a pleasure for me to introduce good freebies to my readers. Today, I am going to show you not one, but two websites where you can download and use thousands of free icons.
The first icons website is Iconfinder.net.

The search feature is very intuitive as it incorporates AJAX. The moment you enter [...]]]></description>
			<content:encoded><![CDATA[<p>It has always been a pleasure for me to introduce good freebies to my readers. Today, I am going to show you not one, but two websites where you can download and use thousands of free icons.</p>
<p>The first icons website is <a href="http://www.iconfinder.net/">Iconfinder.net</a>.</p>
<p><img src="http://www.kongtechnology.com/images/icon-finder.jpg" alt="Icon finder" /></p>
<p>The search feature is very intuitive as it incorporates AJAX. The moment you enter any keyword it will auto-complete and suggest some related keywords. In complete Web2.0 spirit, all icons are tagged. Once you have found the icon you are looking for in the search result, click on it to see more details such as the designer, the license and a download link.</p>
<p>Do use the download link (and not right-click-save) to download the icon as this will retain the properties of the icon, such as the transparency property.</p>
<p><span id="more-220"></span></p>
<p><img src="http://www.kongtechnology.com/images/free-icons.jpg" alt="Free icons" /></p>
<p>I am not sure how many icons are there, but some of my search results return thousands of results. So, I guess their database hosts at least tens of thousands of icons. Anyway, technically speaking, these icons are not all free completely. Most of them fall under one of these licenses, <a href="http://creativecommons.org/licenses/by/3.0/" target="_out" rel="nofollow">Creative Commons</a>, <a href="http://www.gnu.org/copyleft/gpl.html" target="_out" rel="nofollow">GPL</a> and <a href="http://www.gnu.org/licenses/lgpl.html" target="_out" rel="nofollow">LGPL</a>.</p>
<p><img src="http://www.kongtechnology.com/images/iconlet.jpg" alt="Iconlet" /></p>
<p>Another icons website worth taking a look especially if you can&#8217;t find the perfect icon you are looking for in Iconfinder.net, is <a href="http://www.iconlet.com" target="_out" rel="nofollow">Iconlet.com</a>. This icons website is less sophisticated, but it gets the job done.</p>
<p>Just like the first website, Iconlet.com also allows you to easily search for icons, view who&#8217;s the designer and license information, and of course save the icon for your own use.</p>
<p>So, there you are two more useful websites to add to your bookmark/favorites. Use them whenever you are designing a website or a blog. Make your website and blog stand out with beautiful and professional icons.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kongtechnology.com/2008/01/08/free-icons-for-your-websites-and-blogs/feed/</wfw:commentRss>
		</item>
		<item>
		<title>CSS indentation problem in IE and the workaround</title>
		<link>http://www.kongtechnology.com/2007/12/27/css-indentation-problem-in-ie-and-the-workaround/</link>
		<comments>http://www.kongtechnology.com/2007/12/27/css-indentation-problem-in-ie-and-the-workaround/#comments</comments>
		<pubDate>Thu, 27 Dec 2007 04:55:44 +0000</pubDate>
		<dc:creator>Kitkat</dc:creator>
		
		<category><![CDATA[Web design and programming]]></category>

		<guid isPermaLink="false">http://www.kongtechnology.com/2007/12/27/css-indentation-problem-in-ie-and-the-workaround/</guid>
		<description><![CDATA[I think anybody who is doing web scripting and web design is well aware of the CSS problems across browsers, especially in Internet Explorer (IE). This is especially true and frustrating with the CSS indentation problem. Holly &#8216;n John have compiled a list of Internet Explorer CSS bugs on their website if you wanted to [...]]]></description>
			<content:encoded><![CDATA[<p>I think anybody who is doing web scripting and web design is well aware of the CSS problems across browsers, especially in Internet Explorer (IE). This is especially true and frustrating with the CSS indentation problem. Holly &#8216;n John have compiled a list of <a href="http://positioniseverything.net/explorer.html" target="_out" rel="nofollow">Internet Explorer CSS bugs</a> on their website if you wanted to take a look.</p>
<p>But if you are looking for a quick solution&#8230; then read on. I was doing a quick simple page for a friend of mine when I found myself using the &lt;ul&gt; tag. Check out the following screen shots.</p>
<p><img src="http://www.kongtechnology.com/images/firefox-css.gif" alt="Firefox CSS" /></p>
<p>&lt;ul style=&#8221;margin-left:-15px; color:#3056AE&#8221;&gt;<br />
	&lt;li&gt;List item 1<br />
	&lt;li&gt;List item 2<br />
&lt;/ul&gt;</p>
<p>The list looks perfect in Firefox, right or not? I put in &#8220;margin-left:-15px&#8221; to shift the items to the left slightly. The indentation is just nice. I love you Firefox!</p>
<p><span id="more-204"></span></p>
<p><img src="http://www.kongtechnology.com/images/internet-explorer-css.gif" alt="Internet Explorer CSS" /></p>
<p>However, it&#8217;s a totally different sight for Internet Explorer, the world&#8217;s most used web browser. It looks horrible. List items are shifted too much to the left, even run off the screen! I am not sure if this is a bug, or just a weird behavior.</p>
<p>There might be a solution&#8230; perhaps a better one in CSS, but I am not going to do too much of research in this. I prefer a quick and dirty workaround. This is what I did to fix it. At least seems to have been fixed. <img src='http://www.kongtechnology.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>1.</strong> Download <a href="http://techpatterns.com/downloads/php_browser_detection.php" target="_out" rel="nofollow">PHP Browser Detection</a> script. Oh yeah, I forgot to mention my script is coded in PHP. Save the downloaded script file as &#8220;browser_detection.php&#8221;.</p>
<p><strong>2.</strong> Put the following code at the top of the existing file.</p>
<p>&lt;?php<br />
	include &#8220;browser_detection.php&#8221;;</p>
<p>	if( browser_detection( &#8216;browser&#8217; ) == &#8216;ie&#8217; )<br />
		$margin = &#8220;20px&#8221;;<br />
	else<br />
		$margin = &#8220;-15px&#8221;;<br />
?&gt;</p>
<p>The above code basically uses the function browser_detection to check what&#8217;s the browser type we are using, and sets the margin accordingly.</p>
<p><strong>3.</strong> Change the existing code to the following.</p>
<p>&lt;ul style=&#8221;margin-left:&lt;?php echo $margin; ?&gt;; color:#3056AE&#8221;&gt;<br />
	&lt;li&gt;List item 1<br />
	&lt;li&gt;List item 2<br />
&lt;/ul&gt;</p>
<p>That&#8217;s it. Now view the list items in both Internet Explorer and Firefox! They look great in both! Congratulations!</p>
<p>Should you have a nicer solution in CSS itself, please do let me know. <img src='http://www.kongtechnology.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kongtechnology.com/2007/12/27/css-indentation-problem-in-ie-and-the-workaround/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
