<?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>Alireza Balouch</title>
	<atom:link href="http://swape.net/w/feed/" rel="self" type="application/rss+xml" />
	<link>http://swape.net/w</link>
	<description>hmm.. I just can't think of anything to write here.</description>
	<pubDate>Wed, 02 Jul 2008 20:28:16 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<item>
		<title>Horizontal menu</title>
		<link>http://swape.net/w/2008/05/12/horizontal-menu/</link>
		<comments>http://swape.net/w/2008/05/12/horizontal-menu/#comments</comments>
		<pubDate>Mon, 12 May 2008 20:04:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Tips &amp; Tricks]]></category>

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

		<guid isPermaLink="false">http://swape.net/w/?p=24</guid>
		<description><![CDATA[Here is an old trick to make horizontal menu with CSS.
First you have to make a list with UL and LI tags.
&#160;
&#60;ul class=&#34;menu&#34;&#62;
&#60;li&#62;&#60;a href=&#34;http://swape.net&#34;&#62;My homepage&#60;/a&#62;&#60;/li&#62;
&#60;li&#62;&#60;a href=&#34;http://linux.org&#34;&#62;Linux.org&#60;/a&#62;&#60;/li&#62;
&#60;li&#62;&#60;a href=&#34;http://google.com&#34;&#62;Link to google&#60;/a&#62;&#60;/li&#62;
&#60;/ul&#62;
&#160;

My homepage
Linux.org
Link to google

Ok here is a list. Now we must make the list items to be horizontal and not vertical. So we must use CSS to set [...]]]></description>
			<content:encoded><![CDATA[<p>Here is an old trick to make horizontal menu with CSS.</p>
<p>First you have to make a list with <strong>UL</strong> and <strong>LI</strong> tags.</p>
<pre class="html4strict">&nbsp;
<span style="color: #009900;"><a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">&lt;ul</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;menu&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://swape.net&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>My homepage<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
<span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://linux.org&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Linux.org<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
<span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://google.com&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Link to google<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span>
&nbsp;</pre>
<ul>
<li><a href="http://swape.net">My homepage</a></li>
<li><a href="http://linux.org">Linux.org</a></li>
<li><a href="http://google.com">Link to google</a></li>
</ul>
<p>Ok here is a list. Now we must make the list items to be horizontal and not vertical. So we must use CSS to set the<strong> float</strong> to be <strong>left</strong> and make the<strong> list-style: none;</strong></p>
<pre class="css"><span style="color: #6666ff;">.menu</span> li<span style="color: #66cc66;">&#123;</span> <span style="color: #000000; font-weight: bold;">float</span>: <span style="color: #000000; font-weight: bold;">left</span>; <span style="color: #000000; font-weight: bold;">list-style</span>: <span style="color: #993333;">none</span>; <span style="color: #66cc66;">&#125;</span></pre>
<p>Then we must make them look like a buttons. So we add some borders and padding and margins. Then the whole CSS code look like this:</p>
<pre class="css"><span style="color: #6666ff;">.menu</span> li<span style="color: #66cc66;">&#123;</span>
<span style="color: #000000; font-weight: bold;">float</span>: <span style="color: #000000; font-weight: bold;">left</span>;
<span style="color: #000000; font-weight: bold;">list-style</span>: <span style="color: #993333;">none</span>;
<span style="color: #000000; font-weight: bold;">font</span>: <span style="color: #933;">10px</span> Verdana, Arial, Helvetica, <span style="color: #993333;">sans-serif</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #6666ff;">.menu</span> li a <span style="color: #66cc66;">&#123;</span>
display<span style="color: #3333ff;">:block</span>;
padding<span style="color: #3333ff;">:<span style="color: #933;">3px</span></span>;
margin<span style="color: #3333ff;">:<span style="color: #933;">1px</span></span>;
border<span style="color: #3333ff;">:<span style="color: #933;">1px</span></span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#ccc</span>;
text-decoration<span style="color: #3333ff;">:none</span>;
<span style="color: #000000; font-weight: bold;">color</span>:<span style="color: #cc00cc;">#<span style="color: #933;">332</span></span>;
<span style="color: #000000; font-weight: bold;">background-color</span>: <span style="color: #cc00cc;">#EEE</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #6666ff;">.menu</span> li a<span style="color: #3333ff;">:hover</span><span style="color: #66cc66;">&#123;</span>
<span style="color: #000000; font-weight: bold;">color</span>:<span style="color: #cc00cc;">#EEE</span>;
<span style="color: #000000; font-weight: bold;">background-color</span>: <span style="color: #cc00cc;">#<span style="color: #933;">331</span></span>;
<span style="color: #66cc66;">&#125;</span></pre>
<p>You can download the example file here: <a href="http://swape.net/w/wp-content/uploads/2008/05/test.zip">Horizontal CSS menu</a></p>
]]></content:encoded>
			<wfw:commentRss>http://swape.net/w/2008/05/12/horizontal-menu/feed/</wfw:commentRss>
		</item>
		<item>
		<title>VolumeSize</title>
		<link>http://swape.net/w/2008/04/24/volumesize/</link>
		<comments>http://swape.net/w/2008/04/24/volumesize/#comments</comments>
		<pubDate>Thu, 24 Apr 2008 08:51:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Apps]]></category>

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

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

		<guid isPermaLink="false">http://swape.net/w/?p=22</guid>
		<description><![CDATA[
VolumeSize is a free small mac app that shows size of all your disks that are attached to your mac. (including the internal hard drives)
Works on PPCs and Intel Macs.
Download: VolumeSize v1.0 (67.15 KB)
]]></description>
			<content:encoded><![CDATA[<p><img class="alignright alignnone size-medium wp-image-23" style="float: right;" title="VolumeSize" src="http://swape.net/w/wp-content/uploads/2008/04/picture-1-300x245.png" alt="" width="300" height="245" /><br />
VolumeSize is a free small mac app that shows size of all your disks that are attached to your mac. (including the internal hard drives)</p>
<p>Works on PPCs and Intel Macs.</p>
<p>Download: <a href="http://swape.net/d/files/VolumeSize-app.zip">VolumeSize v1.0</a> (67.15 KB)</p>
]]></content:encoded>
			<wfw:commentRss>http://swape.net/w/2008/04/24/volumesize/feed/</wfw:commentRss>
		</item>
		<item>
		<title>SwapeStarter</title>
		<link>http://swape.net/w/2008/04/24/swapestarter/</link>
		<comments>http://swape.net/w/2008/04/24/swapestarter/#comments</comments>
		<pubDate>Thu, 24 Apr 2008 08:49:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Apps]]></category>

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

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

		<guid isPermaLink="false">http://swape.net/w/?p=20</guid>
		<description><![CDATA[
This free windows program is very useful to make a startup menu from an autorun CD/DVD under windows env. Or just a menu to run a command or program.
You can list 6 different programs to start from.
All the text, heading image and titles are configurable from an ini file.
Download: Swape starter v1.0 (333.09 KB)
]]></description>
			<content:encoded><![CDATA[<p><img class="alignright alignnone size-full wp-image-21" style="float: right;" title="sstarter" src="http://swape.net/w/wp-content/uploads/2008/04/sstarter.png" alt="" width="306" height="268" /></p>
<p>This free windows program is very useful to make a startup menu from an autorun CD/DVD under windows env. Or just a menu to run a command or program.</p>
<p>You can list 6 different programs to start from.</p>
<p>All the text, heading image and titles are configurable from an ini file.</p>
<p>Download: <a href="http://swape.net/d/files/my_starter.zip">Swape starter v1.0</a> (333.09 KB)</p>
]]></content:encoded>
			<wfw:commentRss>http://swape.net/w/2008/04/24/swapestarter/feed/</wfw:commentRss>
		</item>
		<item>
		<title>PassKeeper</title>
		<link>http://swape.net/w/2008/04/24/passkeeper/</link>
		<comments>http://swape.net/w/2008/04/24/passkeeper/#comments</comments>
		<pubDate>Thu, 24 Apr 2008 08:47:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Apps]]></category>

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

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

		<guid isPermaLink="false">http://swape.net/w/?p=18</guid>
		<description><![CDATA[ 
Sometimes it is hard to remember many passwords.
PassKeeper is password manager program to stores all your password.
You can export passwords to xml file.
PassKeeper dose also generate random passwords so you can have a strong and random made passwords that is hard to crack.
 
Download: PassKeeper v1.0 (1.85 MB)

 
]]></description>
			<content:encoded><![CDATA[<p> </p>
<p>Sometimes it is hard to remember many passwords.</p>
<p>PassKeeper is password manager program to stores all your password.</p>
<p>You can export passwords to xml file.</p>
<p>PassKeeper dose also generate random passwords so you can have a strong and random made passwords that is hard to crack.</p>
<p> </p>
<p>Download: <a href="http://swape.net/d/files/passKeeper.zip">PassKeeper v1.0</a> (1.85 MB)</p>
<p><img class="alignnone size-full wp-image-19" title="passkeeper" src="http://swape.net/w/wp-content/uploads/2008/04/passkeeper.png" alt="" width="461" height="365" /></p>
<p> </p>
]]></content:encoded>
			<wfw:commentRss>http://swape.net/w/2008/04/24/passkeeper/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Key Code Make</title>
		<link>http://swape.net/w/2008/04/24/key-code-make/</link>
		<comments>http://swape.net/w/2008/04/24/key-code-make/#comments</comments>
		<pubDate>Thu, 24 Apr 2008 08:44:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Apps]]></category>

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

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

		<guid isPermaLink="false">http://swape.net/w/?p=16</guid>
		<description><![CDATA[
Key Code Maker is free windows program for making lots of 8 digit passwords.
Very useful for administrators who makes hundreds of passwords at a time.
And you can save the password-list on a file.
Download: KeyCodeMaker v1.0 (408.49 KB)
]]></description>
			<content:encoded><![CDATA[<p><img class="alignright alignnone size-medium wp-image-17" style="float: right;" title="kcm" src="http://swape.net/w/wp-content/uploads/2008/04/kcm-177x300.png" alt="" width="177" height="300" /><br />
<em>Key Code Maker</em> is free windows program for making lots of 8 digit passwords.</p>
<p>Very useful for administrators who makes hundreds of passwords at a time.<br />
And you can save the password-list on a file.</p>
<p>Download: <a href="http://swape.net/d/files/KCM_10.zip">KeyCodeMaker v1.0</a> (408.49 KB)</p>
]]></content:encoded>
			<wfw:commentRss>http://swape.net/w/2008/04/24/key-code-make/feed/</wfw:commentRss>
		</item>
		<item>
		<title>FileDate Mover v1.0</title>
		<link>http://swape.net/w/2008/04/24/filedate-mover-v10/</link>
		<comments>http://swape.net/w/2008/04/24/filedate-mover-v10/#comments</comments>
		<pubDate>Thu, 24 Apr 2008 08:41:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Apps]]></category>

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

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

		<guid isPermaLink="false">http://swape.net/w/?p=15</guid>
		<description><![CDATA[
FileDate Mover is a program that moves files from one directory to directory tree based on file date.
If you have a file that have a date 2006.12.24 then it makes directory called 2006/12/filename.ext.
This program runs through a directory and moves all the files to date-based-directory-tree.
You can edit the i18n.ini file to change the settings.
rprog = [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright alignnone size-medium wp-image-14" style="float: right;" title="datemove1" src="http://swape.net/w/wp-content/uploads/2008/04/datemove1-300x128.png" alt="" width="300" height="128" /></p>
<p>FileDate Mover is a program that moves files from one directory to directory tree based on file date.<br />
If you have a file that have a date 2006.12.24 then it makes directory called 2006/12/filename.ext.<br />
This program runs through a directory and moves all the files to date-based-directory-tree.<br />
You can edit the i18n.ini file to change the settings.</p>
<p><em>rprog = datemove.exe -d</em></p>
<p>If you remove -d, then it moves the files from this month too. But if you use -d, it will ignore files that where made this month.</p>
<p>In the zip file you find these files:</p>
<ul>
<li> <em>i18n.ini</em> settings file.</li>
<li> <em>datemove.ex</em>e CMD based version of this program. Run datemove in cmd for usage options.</li>
<li> <em>datemoveX.exe</em> Gui-based version of this program.</li>
<li> <em>src\</em> Directory containing the sourcefile in php.</li>
</ul>
<p>Download: <a href="http://swape.net/d/files/datemove.zip">FileDate Mover v1.0</a> (812.01 KB)</p>
]]></content:encoded>
			<wfw:commentRss>http://swape.net/w/2008/04/24/filedate-mover-v10/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Directory/File-chooser tool</title>
		<link>http://swape.net/w/2008/04/24/directoryfile-chooser-tool/</link>
		<comments>http://swape.net/w/2008/04/24/directoryfile-chooser-tool/#comments</comments>
		<pubDate>Thu, 24 Apr 2008 08:34:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Apps]]></category>

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

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

		<guid isPermaLink="false">http://swape.net/w/?p=13</guid>
		<description><![CDATA[
This is an open and free program.
Here is a small GUI for those old DOS command. With this program you can run programs with given file or directory input and output.
Here is how the ini file looks like:
&#160;
&#91;gui&#93;
lprog=Title of the window goes here
lin= INPUT:
lout= OUTPUT:
lrun= RUN
lexit= CLOSE
lcof= Choose a output file / directory
lcif= Choose a [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-14" title="datemove1" src="http://swape.net/w/wp-content/uploads/2008/04/datemove1.png" alt="" width="315" height="135" /><br />
This is an open and free program.</p>
<p>Here is a small GUI for those old DOS command. With this program you can run programs with given file or directory input and output.</p>
<p>Here is how the ini file looks like:</p>
<pre class="ini">&nbsp;
<span style="color: #000066; font-weight:bold;"><span style="">&#91;</span>gui<span style="">&#93;</span></span>
<span style="color: #000099;">lprog</span>=<span style="color: #660066;">Title of the window goes here</span>
<span style="color: #000099;">lin</span>=<span style="color: #660066;"> INPUT:</span>
<span style="color: #000099;">lout</span>=<span style="color: #660066;"> OUTPUT:</span>
<span style="color: #000099;">lrun</span>=<span style="color: #660066;"> RUN</span>
<span style="color: #000099;">lexit</span>=<span style="color: #660066;"> CLOSE</span>
<span style="color: #000099;">lcof</span>=<span style="color: #660066;"> Choose a output file / directory</span>
<span style="color: #000099;">lcif</span>=<span style="color: #660066;"> Choose a input file / directory</span>
<span style="color: #000099;">lrunbox</span>= <span style="color: #933;">&quot;Done!&quot;</span>
<span style="color: #000099;">lfot</span>=<span style="color: #660066;"> Out File</span>
<span style="color: #000099;">lfit</span>=<span style="color: #660066;"> Inn file</span>
<span style="color: #000066; font-weight:bold;"><span style="">&#91;</span>run<span style="">&#93;</span></span>
<span style="color: #000099;">rprog </span>=<span style="color: #660066;"> notepad.exe</span>
<span style="color: #000099;">rodir </span>=<span style="color: #660066;"> <span style="">0</span></span>
<span style="color: #000099;">ridir </span>=<span style="color: #660066;"> <span style="">0</span></span>
&nbsp;</pre>
<p>rprog ::: you can choose the program to run.<br />
rodir ::: 0=File 1=Directory<br />
ridir ::: 0=File 1=Directory (If given file or directory dose not exist, it will be created.)</p>
<p>So now you can make your own windows based GUI from those good old DOS commands.</p>
<p>Download: <a href="http://swape.net/d/files/fdc1.zip">Directory/File-chooser v1.0</a> (195.48 KB)</p>
]]></content:encoded>
			<wfw:commentRss>http://swape.net/w/2008/04/24/directoryfile-chooser-tool/feed/</wfw:commentRss>
		</item>
		<item>
		<title>swapeCaster</title>
		<link>http://swape.net/w/2008/04/22/swapecaster/</link>
		<comments>http://swape.net/w/2008/04/22/swapecaster/#comments</comments>
		<pubDate>Tue, 22 Apr 2008 08:11:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Scripts]]></category>

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

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

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

		<guid isPermaLink="false">http://swape.net/w/?p=12</guid>
		<description><![CDATA[swapeCaster is a free video/music podcasting script.
All you have to do is unzip the files in your web server, put your music/video files under the "files/" directory.
Point your podcast program (iTunes) to the place where you have the feed.php file and it will automatically generate podcast feed.
Configuration:
Just edit the lines in feed.php file to match [...]]]></description>
			<content:encoded><![CDATA[<p><strong>swapeCaster</strong> is a free video/music podcasting script.<br />
All you have to do is unzip the files in your web server, put your music/video files under the "files/" directory.<br />
Point your podcast program (iTunes) to the place where you have the <em>feed.php</em> file and it will automatically generate podcast feed.</p>
<p><strong>Configuration:</strong><br />
Just edit the lines in <em>feed.php</em> file to match your server address and other important stuff.</p>
<pre class="php">&lt; ?php
<span style="color: #808080; font-style: italic;">//------ Config</span>
<span style="color: #0000ff;">$fileDirectory</span> = <span style="color: #ff0000;">&quot;./files/&quot;</span>; <span style="color: #808080; font-style: italic;">// path to files</span>
<span style="color: #0000ff;">$webURL</span> = <span style="color: #ff0000;">&quot;http://somewhere.com/feeds/files/&quot;</span>; <span style="color: #808080; font-style: italic;">// path to files from the web</span>
<span style="color: #0000ff;">$title</span> = <span style="color: #ff0000;">&quot;Alireza Balouch private videoCasting&quot;</span>; <span style="color: #808080; font-style: italic;">// Title of the feed</span>
<span style="color: #0000ff;">$website</span> = <span style="color: #ff0000;">&quot;http://www.swape.net&quot;</span>;	<span style="color: #808080; font-style: italic;">// your homepage</span>
<span style="color: #0000ff;">$description</span> = <span style="color: #ff0000;">&quot;My podcast&quot;</span>;		<span style="color: #808080; font-style: italic;">// Description of the file</span>
<span style="color: #0000ff;">$authorEmail</span> = <span style="color: #ff0000;">&quot;me@myplace.com&quot;</span>;	<span style="color: #808080; font-style: italic;">// Your email adress</span>
<span style="color: #0000ff;">$copyright</span> = <span style="color: #ff0000;">&quot;These works are licensed under a Creative Commons License (Some Rights Reserved)&quot;</span>; <span style="color: #808080; font-style: italic;">// Copyright stuff</span>
<span style="color: #0000ff;">$ttl</span> = <span style="color: #cc66cc;">1441</span>;	<span style="color: #808080; font-style: italic;">// Time to live</span>
<span style="color: #808080; font-style: italic;">//------</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre>
<p><strong>Download:</strong> <a href="http://www.swape.net/d/files/swapeCaster0_9.zip">SwapeCaster v0.9</a> (4.03 KB)</p>
]]></content:encoded>
			<wfw:commentRss>http://swape.net/w/2008/04/22/swapecaster/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Checkbox value</title>
		<link>http://swape.net/w/2008/04/17/checkbox-value/</link>
		<comments>http://swape.net/w/2008/04/17/checkbox-value/#comments</comments>
		<pubDate>Thu, 17 Apr 2008 12:06:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Tips &amp; Tricks]]></category>

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

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

		<guid isPermaLink="false">24 at http://swape.net/d</guid>
		<description><![CDATA[When you post a form with checkbox it dose not return any value when the checkbox is not ticked.
This is something that should have been fixed a long time ago.
But for now here is the solution:
&#160;
&#60;form action=&#34;?&#34; method=&#34;post&#34;&#62;
&#60;input name=&#34;myCheckbox&#34; type=&#34;hidden&#34; value=&#34;0&#34; /&#62;
&#60;input name=&#34;myCheckbox&#34; type=&#34;checkbox&#34; /&#62;
&#60;/form&#62;
&#160;
You put an hidden input before checkbox input with the same [...]]]></description>
			<content:encoded><![CDATA[<p>When you post a form with checkbox it dose not return any value when the checkbox is not ticked.<br />
This is something that should have been fixed a long time ago.<br />
But for now here is the solution:</p>
<pre class="html4strict">&nbsp;
<span style="color: #009900;"><a href="http://december.com/html/4/element/form.html"><span style="color: #000000; font-weight: bold;">&lt;form</span></a> <span style="color: #000066;">action</span>=<span style="color: #ff0000;">&quot;?&quot;</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;post&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;">&lt;input</span></a> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;myCheckbox&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;hidden&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;0&quot;</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;">&lt;input</span></a> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;myCheckbox&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;checkbox&quot;</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/form&gt;</span></span>
&nbsp;</pre>
<p>You put an hidden input before checkbox input with the same name.<br />
Since the last checkbox overwrite the value when it is checked, the hidden input do not return "0" but when the checkbox is not checked, the hidden input with the same name returns a "0".</p>
<p>So when the checkbox is checked it returns "on" and when it is not checked it returns "0"</p>
<p>And to make it easier to click on the ckeckbox use "label" tag around the name.</p>
<p>Before:</p>
<div>
<input name="myCheckbox" type="checkbox" /> My Checkbox</div>
<p>After:</p>
<div><label><br />
<input name="myCheckbox" type="checkbox" />My Checkbox</label></div>
<p>This way you can click on the checkbox label and make it checked.<br />
The correct way to write an checkbox checked from the start is like this:</p>
<pre class="html4strict"><span style="color: #009900;"><a href="http://december.com/html/4/element/label.html"><span style="color: #000000; font-weight: bold;">&lt;label&gt;</span></a></span>
<span style="color: #009900;"><a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;">&lt;input</span></a> <span style="color: #000066;">checked</span>=<span style="color: #ff0000;">&quot;checked&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;myCheckbox&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;checkbox&quot;</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span>
My Checkbox
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/label&gt;</span></span></pre>
]]></content:encoded>
			<wfw:commentRss>http://swape.net/w/2008/04/17/checkbox-value/feed/</wfw:commentRss>
		</item>
		<item>
		<title>favicon2png</title>
		<link>http://swape.net/w/2008/02/19/favicon2png/</link>
		<comments>http://swape.net/w/2008/02/19/favicon2png/#comments</comments>
		<pubDate>Tue, 19 Feb 2008 20:22:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Scripts]]></category>

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

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

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

		<guid isPermaLink="false">23 at http://swape.net/d</guid>
		<description><![CDATA[Here is a script to download the favicon.ico files from a website and save it as a png file.
You must have imagemagick installed on your server to convert the ico file to png.
&#160;
&#60;!--- html code ----&#62;
&#60;form action=&#34;?&#34; method=&#34;post&#34;&#62;
&#60;input id=&#34;site&#34; name=&#34;site&#34; type=&#34;text&#34;
value=&#34;&#60;?php echo $_POST['site']; ?/&#62;&#34; /&#62;
&#60;input type=&#34;submit&#34; /&#62;
&#60;/form&#62;
&#160;
&#60; ?php
//--- favicon2png by Alireza Balouch @ swape.net 2008
&#160;
if&#40;$_POST&#91;'site'&#93; [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a script to download the favicon.ico files from a website and save it as a png file.</p>
<p>You must have imagemagick installed on your server to convert the ico file to png.</p>
<pre class="php">&nbsp;
&lt;!--- html code ----&gt;
&lt;form action=<span style="color: #ff0000;">&quot;?&quot;</span> method=<span style="color: #ff0000;">&quot;post&quot;</span>&gt;
&lt;input id=<span style="color: #ff0000;">&quot;site&quot;</span> name=<span style="color: #ff0000;">&quot;site&quot;</span> type=<span style="color: #ff0000;">&quot;text&quot;</span>
value=<span style="color: #ff0000;">&quot;&lt;?php echo $_POST['site']; ?/&gt;&quot;</span> /&gt;
&lt;input type=<span style="color: #ff0000;">&quot;submit&quot;</span> /&gt;
&lt;/form&gt;
&nbsp;
&lt; ?php
<span style="color: #808080; font-style: italic;">//--- favicon2png by Alireza Balouch @ swape.net 2008</span>
&nbsp;
<span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$_POST</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'site'</span><span style="color: #66cc66;">&#93;</span> != <span style="color: #ff0000;">''</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">//finding the hostname</span>
<span style="color: #0000ff;">$host</span> = <a href="http://www.php.net/parse_url"><span style="color: #000066;">parse_url</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$_POST</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'site'</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #0000ff;">$host</span> = <span style="color: #0000ff;">$host</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'host'</span><span style="color: #66cc66;">&#93;</span>;
<span style="color: #0000ff;">$host</span> = <a href="http://www.php.net/explode"><span style="color: #000066;">explode</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'.'</span> , <span style="color: #0000ff;">$host</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #0000ff;">$host</span> = <span style="color: #0000ff;">$host</span><span style="color: #66cc66;">&#91;</span><a href="http://www.php.net/count"><span style="color: #000066;">count</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$host</span><span style="color: #66cc66;">&#41;</span> <span style="color: #cc66cc;">-2</span><span style="color: #66cc66;">&#93;</span>;
<span style="color: #0000ff;">$filename</span> = <span style="color: #ff0000;">'img/'</span> . <span style="color: #0000ff;">$host</span> . <span style="color: #ff0000;">'.png'</span>;
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>!<a href="http://www.php.net/is_file"><span style="color: #000066;">is_file</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$filename</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
<span style="color: #808080; font-style: italic;">// getting the favicon</span>
<span style="color: #0000ff;">$handle</span> = <a href="http://www.php.net/fopen"><span style="color: #000066;">fopen</span></a><span style="color: #66cc66;">&#40;</span> <span style="color: #0000ff;">$_POST</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'site'</span><span style="color: #66cc66;">&#93;</span> . <span style="color: #ff0000;">'/favicon.ico'</span>, <span style="color: #ff0000;">&quot;rb&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #0000ff;">$contents</span> = stream_get_contents<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$handle</span><span style="color: #66cc66;">&#41;</span>;
<a href="http://www.php.net/fclose"><span style="color: #000066;">fclose</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$handle</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
file_put_contents<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'fav.ico'</span> , <span style="color: #0000ff;">$contents</span> <span style="color: #66cc66;">&#41;</span>;
<span style="color: #808080; font-style: italic;">// converting to png</span>
<span style="color: #0000ff;">$StrExec</span> = <span style="color: #ff0000;">'/usr/local/bin/convert fav.ico -resize 24x24<span style="color: #000099; font-weight: bold;">\></span> '</span> . <span style="color: #0000ff;">$filename</span> ;
<span style="color: #0000ff;">$ret</span> = <a href="http://www.php.net/exec"><span style="color: #000066;">exec</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$StrExec</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
<a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #ff0000;">'&lt;img src=&quot;'</span> . <span style="color: #0000ff;">$filename</span> . <span style="color: #ff0000;">'&quot; /&gt;'</span> . <span style="color: #0000ff;">$_POST</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'site'</span><span style="color: #66cc66;">&#93;</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre>
]]></content:encoded>
			<wfw:commentRss>http://swape.net/w/2008/02/19/favicon2png/feed/</wfw:commentRss>
		</item>
		<item>
		<title>swapeForm</title>
		<link>http://swape.net/w/2007/07/30/swapeform/</link>
		<comments>http://swape.net/w/2007/07/30/swapeform/#comments</comments>
		<pubDate>Mon, 30 Jul 2007 21:16:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Scripts]]></category>

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

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

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

		<guid isPermaLink="false">22 at http://swape.net/d</guid>
		<description><![CDATA[Here is an easy php 5 class to make dynamic form table.
I made this class to make dynamic forms. With this class you don't have to write html code for form and a table.
Here is how to use this class:
&#160;
&#60; ?php
include&#40;'swapeForm.php'&#41;;
&#160;
$form = new swapeForm&#40;&#41;;
$form-&#62;add&#40;'Name'&#41;;  // adding input
$form-&#62;setAttrib&#40;'id' , 'formName'&#41;;  // adding atributes to [...]]]></description>
			<content:encoded><![CDATA[<p>Here is an easy php 5 class to make dynamic form table.</p>
<p>I made this class to make dynamic forms. With this class you don't have to write html code for form and a table.</p>
<p>Here is how to use this class:</p>
<pre class="php">&nbsp;
&lt; ?php
<span style="color: #b1b100;">include</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'swapeForm.php'</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #0000ff;">$form</span> = <span style="color: #000000; font-weight: bold;">new</span> swapeForm<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #0000ff;">$form</span>-&gt;<span style="color: #006600;">add</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'Name'</span><span style="color: #66cc66;">&#41;</span>;  <span style="color: #808080; font-style: italic;">// adding input</span>
<span style="color: #0000ff;">$form</span>-&gt;<span style="color: #006600;">setAttrib</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'id'</span> , <span style="color: #ff0000;">'formName'</span><span style="color: #66cc66;">&#41;</span>;  <span style="color: #808080; font-style: italic;">// adding atributes to input</span>
<span style="color: #0000ff;">$form</span>-&gt;<span style="color: #006600;">setAttrib</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'type'</span> , <span style="color: #ff0000;">'text'</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #0000ff;">$form</span>-&gt;<span style="color: #006600;">setAttrib</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'name'</span> , <span style="color: #ff0000;">'formName'</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #0000ff;">$form</span>-&gt;<span style="color: #006600;">setAttrib</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'size'</span> , <span style="color: #ff0000;">'40'</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #0000ff;">$form</span>-&gt;<span style="color: #006600;">add</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'Password'</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #0000ff;">$form</span>-&gt;<span style="color: #006600;">setAttrib</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'id'</span> , <span style="color: #ff0000;">'formPass'</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #0000ff;">$form</span>-&gt;<span style="color: #006600;">setAttrib</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'type'</span> , <span style="color: #ff0000;">'password'</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #0000ff;">$form</span>-&gt;<span style="color: #006600;">setAttrib</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'name'</span> , <span style="color: #ff0000;">'formPass'</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #0000ff;">$form</span>-&gt;<span style="color: #006600;">addTextArea</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'Message'</span>,<span style="color: #ff0000;">'some value'</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">// adding textArea</span>
<span style="color: #0000ff;">$form</span>-&gt;<span style="color: #006600;">setAttrib</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'cols'</span> , <span style="color: #ff0000;">'20'</span><span style="color: #66cc66;">&#41;</span>;  <span style="color: #808080; font-style: italic;">// adding textarea attributes</span>
<span style="color: #0000ff;">$form</span>-&gt;<span style="color: #006600;">setAttrib</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'rows'</span> , <span style="color: #ff0000;">'5'</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #0000ff;">$form</span>-&gt;<span style="color: #006600;">setAttrib</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'id'</span> , <span style="color: #ff0000;">'formMessage'</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #0000ff;">$form</span>-&gt;<span style="color: #006600;">formInfo</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'POST'</span>,<span style="color: #ff0000;">'?'</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">// adding form method and action values</span>
<span style="color: #0000ff;">$form</span>-&gt;<span style="color: #006600;">addSubmit</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'Send values'</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #0000ff;">$form</span>-&gt;<span style="color: #006600;">show</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;</pre>
<p><a href="http://swape.net/demo/php/form/">Demo</a><br />
<a href="http://swape.net/demo/php/form/swapeForm_v02.zip">swapeForm_v02.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://swape.net/w/2007/07/30/swapeform/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Swape WebTools</title>
		<link>http://swape.net/w/2007/04/23/swape-webtools/</link>
		<comments>http://swape.net/w/2007/04/23/swape-webtools/#comments</comments>
		<pubDate>Mon, 23 Apr 2007 19:27:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Scripts]]></category>

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

		<guid isPermaLink="false">18 at http://swape.net/d</guid>
		<description><![CDATA[Swape WebTools is set of a javascripts. Unlike other web2.0 this is not going to be a big project and the code is going to be small as possible to prevent unnecessary loading time.
This is not as powerful as Dojo or jQuery or other projects.
It is written very easy for those who also want to [...]]]></description>
			<content:encoded><![CDATA[<p>Swape WebTools is set of a javascripts. Unlike other web2.0 this is not going to be a big project and the code is going to be small as possible to prevent unnecessary loading time.</p>
<p>This is not as powerful as Dojo or jQuery or other projects.<br />
It is written very easy for those who also want to learn how to code javascript.</p>
<p>More info: <a title="http://code.google.com/p/swapewebtools/" href="http://code.google.com/p/swapewebtools/">http://code.google.com/p/swapewebtools/</a></p>
<p>Download: <a title="http://code.google.com/p/swapewebtools/downloads/list" href="http://code.google.com/p/swapewebtools/downloads/list">http://code.google.com/p/swapewebtools/downloads/list</a></p>
<p><strong>Demo:</strong></p>
<p><a href="http://swape.net/demo/swapewebtools/" target="demo">Effects</a><br />
<a href="http://swape.net/demo/swapewebtools/ajaxtest.html" target="demo2">Ajax demo 1</a></p>
<p><a href="http://swape.net/demo/swapewebtools/ajaxtest2.html" target="demo3">Ajax demo 2 with php</a></p>
]]></content:encoded>
			<wfw:commentRss>http://swape.net/w/2007/04/23/swape-webtools/feed/</wfw:commentRss>
		</item>
		<item>
		<title>CSS shadow</title>
		<link>http://swape.net/w/2007/02/13/css-shadow/</link>
		<comments>http://swape.net/w/2007/02/13/css-shadow/#comments</comments>
		<pubDate>Tue, 13 Feb 2007 13:59:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Tips &amp; Tricks]]></category>

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

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

		<guid isPermaLink="false">16 at http://swape.net/d</guid>
		<description><![CDATA[Here is a fast method to make an shadow around your text boxes.
Using only CSS and not any background image, makes it easy and dynamic.

Here is how the CSS code looks like:
&#160;
&#160;
.out&#123;
  display:block;
  background:#CCC;
  position:relative;
  width:9em;
  &#125;
.in &#123;
  background:#fff;
  border:1px solid #999;
  position:relative;
  text-align:center;
  padding:5px;
 [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a fast method to make an shadow around your text boxes.<br />
Using only CSS and not any background image, makes it easy and dynamic.<br />
<!--break--><br />
Here is how the CSS code looks like:</p>
<pre class="css">&nbsp;
&nbsp;
<span style="color: #6666ff;">.out</span><span style="color: #66cc66;">&#123;</span>
  display<span style="color: #3333ff;">:block</span>;
  <span style="color: #000000; font-weight: bold;">background</span>:<span style="color: #cc00cc;">#CCC</span>;
  position<span style="color: #3333ff;">:relative</span>;
  width<span style="color: #3333ff;">:<span style="color: #933;">9em</span></span>;
  <span style="color: #66cc66;">&#125;</span>
<span style="color: #6666ff;">.in</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">background</span>:<span style="color: #cc00cc;">#fff</span>;
  border<span style="color: #3333ff;">:<span style="color: #933;">1px</span></span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#<span style="color: #933;">999</span></span>;
  position<span style="color: #3333ff;">:relative</span>;
  text-align<span style="color: #3333ff;">:center</span>;
  padding<span style="color: #3333ff;">:<span style="color: #933;">5px</span></span>;
  left<span style="color: #3333ff;">:-<span style="color: #933;">5px</span></span>;
  top<span style="color: #3333ff;">:-<span style="color: #933;">5px</span></span>;
  <span style="color: #66cc66;">&#125;</span>
&nbsp;</pre>
<p>And here is the HTML code:</p>
<pre class="html4strict">&nbsp;
<span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;out&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;in&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
CSS Shadow
Here is a little text to show how it works.
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span>
&nbsp;</pre>
<p><strong>Demo:</strong> <a href="http://swape.net/demo/css-shadow/" target="new">CSS Shadow</a></p>
<p><strong>Download:</strong> <a href="http://swape.net/d/files/css-shadow.zip">css-shadow.zip</a> (409 bytes)</p>
]]></content:encoded>
			<wfw:commentRss>http://swape.net/w/2007/02/13/css-shadow/feed/</wfw:commentRss>
		</item>
		<item>
		<title>CSS pop-ups</title>
		<link>http://swape.net/w/2007/02/07/css-pop-ups/</link>
		<comments>http://swape.net/w/2007/02/07/css-pop-ups/#comments</comments>
		<pubDate>Wed, 07 Feb 2007 19:49:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Tips &amp; Tricks]]></category>

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

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

		<guid isPermaLink="false">14 at http://swape.net/d</guid>
		<description><![CDATA[Here is an good example how to hide layers and show them on mouse over effect.

Here is how the CSS part looks like:
&#160;
div#testlinks &#123;
  position: absolute;
  top: 20px; left: 12px; width: 166px;
  font: 12px Verdana, sans-serif;
&#125;
div#testlinks a &#123;
  display: block; font: bold 1em sans-serif;
  padding: 5px 10px; margin: 0 0 [...]]]></description>
			<content:encoded><![CDATA[<p>Here is an good example how to hide layers and show them on mouse over effect.<br />
<!--break--><br />
Here is how the CSS part looks like:</p>
<pre class="css">&nbsp;
div<span style="color: #cc00cc;">#testlinks</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">position</span>: <span style="color: #993333;">absolute</span>;
  <span style="color: #000000; font-weight: bold;">top</span>: <span style="color: #933;">20px</span>; <span style="color: #000000; font-weight: bold;">left</span>: <span style="color: #933;">12px</span>; <span style="color: #000000; font-weight: bold;">width</span>: <span style="color: #933;">166px</span>;
  <span style="color: #000000; font-weight: bold;">font</span>: <span style="color: #933;">12px</span> Verdana, <span style="color: #993333;">sans-serif</span>;
<span style="color: #66cc66;">&#125;</span>
div<span style="color: #cc00cc;">#testlinks</span> a <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">display</span>: <span style="color: #993333;">block</span>; <span style="color: #000000; font-weight: bold;">font</span>: <span style="color: #993333;">bold</span> <span style="color: #933;">1em</span> <span style="color: #993333;">sans-serif</span>;
  <span style="color: #000000; font-weight: bold;">padding</span>: <span style="color: #933;">5px</span> <span style="color: #933;">10px</span>; <span style="color: #000000; font-weight: bold;">margin</span>: <span style="color: #933;">0</span> <span style="color: #933;">0</span> <span style="color: #933;">1px</span>;
  <span style="color: #000000; font-weight: bold;">border-width</span>: <span style="color: #933;">0</span>;
  <span style="color: #000000; font-weight: bold;">text-decoration</span>: <span style="color: #993333;">none</span>; <span style="color: #000000; font-weight: bold;">color</span>: <span style="color: #cc00cc;">#FFC</span>;
  <span style="color: #000000; font-weight: bold;">background</span>: <span style="color: #cc00cc;">#<span style="color: #933;">444</span></span>;
  <span style="color: #000000; font-weight: bold;">border-right</span>: <span style="color: #933;">5px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#<span style="color: #933;">505050</span></span>;
<span style="color: #66cc66;">&#125;</span>
div<span style="color: #cc00cc;">#testlinks</span> a<span style="color: #3333ff;">:hover</span> <span style="color: #66cc66;">&#123;</span>
 <span style="color: #000000; font-weight: bold;">color</span>: <span style="color: #cc00cc;">#<span style="color: #933;">411</span></span>; <span style="color: #000000; font-weight: bold;">background</span>: <span style="color: #cc00cc;">#AAA</span>;
 <span style="color: #000000; font-weight: bold;">border-right</span>: <span style="color: #933;">5px</span> <span style="color: #993333;">double</span> <span style="color: #993333;">white</span>;
<span style="color: #66cc66;">&#125;</span>
div<span style="color: #cc00cc;">#testlinks</span> a span <span style="color: #66cc66;">&#123;</span><span style="color: #000000; font-weight: bold;">display</span>: <span style="color: #993333;">none</span>;<span style="color: #66cc66;">&#125;</span>
div<span style="color: #cc00cc;">#testlinks</span> a<span style="color: #3333ff;">:hover</span> span <span style="color: #66cc66;">&#123;</span>
 <span style="color: #000000; font-weight: bold;">display</span>: <span style="color: #993333;">block</span>;
 <span style="color: #000000; font-weight: bold;">position</span>: <span style="color: #993333;">absolute</span>; <span style="color: #000000; font-weight: bold;">top</span>: <span style="color: #933;">180px</span>; <span style="color: #000000; font-weight: bold;">left</span>: <span style="color: #933;">0</span>; <span style="color: #000000; font-weight: bold;">width</span>: <span style="color: #933;">125px</span>;
 <span style="color: #000000; font-weight: bold;">padding</span>: <span style="color: #933;">5px</span>; <span style="color: #000000; font-weight: bold;">margin</span>: <span style="color: #933;">10px</span>; <span style="color: #000000; font-weight: bold;">z-index</span>: <span style="color: #933;">100</span>;
 <span style="color: #000000; font-weight: bold;">color</span>: <span style="color: #cc00cc;">#AAA</span>; <span style="color: #000000; font-weight: bold;">background</span>: <span style="color: #000000; font-weight: bold;">black</span>;
 <span style="color: #000000; font-weight: bold;">font</span>: <span style="color: #933;">10px</span> Verdana, <span style="color: #993333;">sans-serif</span>; <span style="color: #000000; font-weight: bold;">text-align</span>: <span style="color: #993333;">center</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;</pre>
<p>I just set the span layer inside the my div layer to be hidden and using "a:hover span" to show it.</p>
<p>And here is how the HTML part looks like:</p>
<pre class="html4strict">&nbsp;
<span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Home
   <span style="color: #009900;"><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">&lt;span&gt;</span></a></span>
This is the part that is showing in the box below
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/span&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span>
&nbsp;</pre>
<p><strong>Demo:</strong> <a href="http://swape.net/demo/pop.html" target="new">CSS pop-ups</a></p>
]]></content:encoded>
			<wfw:commentRss>http://swape.net/w/2007/02/07/css-pop-ups/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Swape Gallery Light</title>
		<link>http://swape.net/w/2007/02/07/swape-gallery-light/</link>
		<comments>http://swape.net/w/2007/02/07/swape-gallery-light/#comments</comments>
		<pubDate>Wed, 07 Feb 2007 13:40:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Scripts]]></category>

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

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

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

		<guid isPermaLink="false">13 at http://swape.net/d</guid>
		<description><![CDATA[SGL is a php5 script to display pictures. This Album script finds all the pictures in a directory under ./pictures/ and list up recursively and write it to xml file. This script makes menus based on directories.
All you have to do is putt your pictures in ./pictures/ directory.
You can organize your pictures by category, by [...]]]></description>
			<content:encoded><![CDATA[<p>SGL is a php5 script to display pictures. This Album script finds all the pictures in a directory under <strong>./pictures/</strong> and list up recursively and write it to xml file. This script makes menus based on directories.</p>
<p>All you have to do is putt your pictures in <strong>./pictures/</strong> directory.</p>
<p>You can organize your pictures by category, by putting it under sub-directories.</p>
<p>The thumbs/ directory must be writable (CHMOD 755) to generate thumbnails automatically first time you visit the site. It will help loading your images faster.</p>
<p><strong>HOW TO INSTALL</strong></p>
<p>All you have to do is unzip the file.<br />
Open the <strong>sgl3.php</strong> and configure the paths.</p>
<p>Putt your pictures under <strong>./pictures/</strong> directory.<br />
And don't forget to <em>chmod 755</em> thumbs directory.</p>
<p><strong>SYSTEM REQUIRED.</strong></p>
<p>Server with PHP5, php exif module and GD2.<br />
<strong>Download:</strong><br />
<a href="http://swape.net/d/files/SGL3.zip">SGL3.zip</a> (3.6 MB)</p>
<p><strong>Demo site</strong><br />
<a href="http://swape.net/demo/SGL3/">Demo SG3</a></p>
]]></content:encoded>
			<wfw:commentRss>http://swape.net/w/2007/02/07/swape-gallery-light/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Semi-transparent png fix in IE6 with CSS</title>
		<link>http://swape.net/w/2007/02/06/semi-transparent-png-fix-in-ie-with-css/</link>
		<comments>http://swape.net/w/2007/02/06/semi-transparent-png-fix-in-ie-with-css/#comments</comments>
		<pubDate>Tue, 06 Feb 2007 20:30:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Tips &amp; Tricks]]></category>

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

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

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

		<guid isPermaLink="false">7 at http://swape.net/d</guid>
		<description><![CDATA[This example shows how you can show semi-transparent png images in IE and don't mess up the code in other browsers. It uses only CSS and no JavaScript.I use the attribute style to make a style for other browsers then IE. And I'm using the filter style that works only for IE in the normal [...]]]></description>
			<content:encoded><![CDATA[<p>This example shows how you can show semi-transparent png images in IE and don't mess up the code in other browsers. It uses only CSS and no JavaScript.I use the attribute style to make a style for other browsers then IE. And I'm using the <strong>filter</strong> style that works only for IE in the normal section.But first you have to make a semi transparent png image.<br />
Then make an div layer and set a class name "mydiv"</p>
<p>And here is the CSS code:</p>
<pre class="css"><span style="color: #6666ff;">.mydiv</span><span style="color: #66cc66;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background-repeat</span>: <span style="color: #993333;">repeat</span>;
<span style="color: #000000; font-weight: bold;">position</span>: <span style="color: #993333;">relative</span>;
<span style="color: #000000; font-weight: bold;">display</span>: <span style="color: #993333;">block</span>;
width<span style="color: #3333ff;">:<span style="color: #933;">250px</span></span>;
height<span style="color: #3333ff;">:<span style="color: #933;">200px</span></span>;
<span style="color: #000000; font-weight: bold;">text-align</span>: <span style="color: #993333;">center</span>;
<span style="color: #808080; font-style: italic;">/* Mozilla Firefox and other non IE based browsers ignores the filter style*/</span>
filter<span style="color: #3333ff;">:progid</span><span style="color: #3333ff;">:DXImageTransform</span><span style="color: #6666ff;">.Microsoft</span><span style="color: #6666ff;">.AlphaImageLoader</span><span style="color: #66cc66;">&#40;</span> enabled=true, sizingMethod=scale src=<span style="color: #ff0000;">&quot;back_g.png&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>   
&nbsp;
<span style="color: #808080; font-style: italic;">/* IE ignores this part IE can not read styles with [attribute]*/</span>
<span style="color: #6666ff;">.mydiv</span><span style="color: #66cc66;">&#91;</span>class<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background-image</span>: <span style="color: #993333;">url</span><span style="color: #66cc66;">&#40;</span><span style="color: #933;">back_g<span style="color: #6666ff;">.png</span></span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
body<span style="color: #66cc66;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background-image</span>: <span style="color: #993333;">url</span><span style="color: #66cc66;">&#40;</span><span style="color: #933;">BG<span style="color: #6666ff;">.png</span></span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">background-repeat</span>: <span style="color: #993333;">repeat</span>;
<span style="color: #66cc66;">&#125;</span></pre>
<p>Since IE can not show semi-transparent png images, we have to use the filter style that only works in ie. But if we use this code we have to make sure that other browsers can show the png file as well. So we use the styles with attributes. And since IE can not read this part, we can put everything that IE dose not need to read there.</p>
<p>Here is the example file with semi-transparent png file.<br />
<strong>Demo:</strong> <a href="http://swape.net/demo/png/" target="new">semi-transparent demo</a></p>
<p><strong>Download:</strong> <a href="http://swape.net/d/files/png.zip">png.zip</a> (30.11 KB)</p>
]]></content:encoded>
			<wfw:commentRss>http://swape.net/w/2007/02/06/semi-transparent-png-fix-in-ie-with-css/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
