<?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>ItHowTo.ro &#187; Web Programming</title>
	<atom:link href="http://www.ithowto.ro/category/web-programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ithowto.ro</link>
	<description>Blog about IT realated stuff by WSS</description>
	<lastBuildDate>Tue, 06 Jul 2010 16:35:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Error:  data.dircontent is undefined [***] plugins/Archiv/php/fileLoader.php?file=javascript 165 tinymce archiv</title>
		<link>http://www.ithowto.ro/2010/03/error-data-dircontent-is-undefined-pluginsarchivphpfileloader-phpfilejavascript-165-tinymce-archiv/</link>
		<comments>http://www.ithowto.ro/2010/03/error-data-dircontent-is-undefined-pluginsarchivphpfileloader-phpfilejavascript-165-tinymce-archiv/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 07:54:18 +0000</pubDate>
		<dc:creator>gkoo</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[Archiv]]></category>
		<category><![CDATA[tinyMce]]></category>

		<guid isPermaLink="false">http://www.ithowto.ro/?p=133</guid>
		<description><![CDATA[I really needed a file and image manager plugin for tinyMCE. As most of you know the official tinyMCE file manager isn&#8217;t free so after a few searches i ran over Archiv. Archiv is a very nice and free image manager. You can find the official website here.
The plugin is easy to integrate but a [...]]]></description>
			<content:encoded><![CDATA[<p>I really needed a file and image manager plugin for tinyMCE. As most of you know the official tinyMCE file manager isn&#8217;t free so after a few searches i ran over Archiv. Archiv is a very nice and free image manager. You can find the official website <a href="http://archiv.pwnd.nl/" target="_blank">here</a>.</p>
<p>The plugin is easy to integrate but a little tricky to configure. There are 2 places where you need to edit:</p>
<p>1) The tinyMCE init function where you&#8217;ll have to add:</p>
<p><em>tinyMCE.init({<br />
mode : &#8220;textareas&#8221;,<br />
theme : &#8220;advanced&#8221;,<br />
plugins : &#8220;Archiv&#8221;,<br />
Archiv_settings_file : &#8220;/abs/path/to/config.php&#8221;,<br />
theme_advanced_buttons1_add : &#8220;Archiv_files,Archiv_images&#8221;<br />
});</em><br />
2) The config file of the plugin in which the paths are required to be full paths not relative but i&#8217;ve tricked them like this:</p>
<p><em># full path to upload files to and show files from<br />
&#8216;upload_path&#8217;            =&gt; $_SERVER['DOCUMENT_ROOT']. &#8216;uploaded/&#8217;,<br />
# full URI to upload directory<br />
&#8216;upload_uri&#8217;            =&gt; &#8216;http://&#8217;. $_SERVER['HTTP_HOST']. &#8216;/uploaded/&#8217;,</em></p>
<p>This should get you up and running. Tune the rest of the config options to suit your needs and enjoy this wonderful plugin. Many thanks to the authors.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ithowto.ro/2010/03/error-data-dircontent-is-undefined-pluginsarchivphpfileloader-phpfilejavascript-165-tinymce-archiv/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HowTo: test if suPHP works with your apache installation.</title>
		<link>http://www.ithowto.ro/2010/03/howto-test-if-suphp-works-with-your-apache-installation/</link>
		<comments>http://www.ithowto.ro/2010/03/howto-test-if-suphp-works-with-your-apache-installation/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 18:49:12 +0000</pubDate>
		<dc:creator>gkoo</dc:creator>
				<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[linux administration]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Php]]></category>

		<guid isPermaLink="false">http://www.ithowto.ro/?p=119</guid>
		<description><![CDATA[I wrote this small script to verify that my suPHP was infact working on the server.
Copy &#38; paste this in to a file test.php on your server and run it on your favourite browser.
If the current script owner is the same as the user that php runs as, than suPHP works.
&#60;?php
echo &#8216;Current script owner: &#8216; [...]]]></description>
			<content:encoded><![CDATA[<p>I wrote this small script to verify that my suPHP was infact working on the server.</p>
<p>Copy &amp; paste this in to a file test.php on your server and run it on your favourite browser.</p>
<p>If the current script owner is the same as the user that php runs as, than suPHP works.</p>
<p><em>&lt;?php</p>
<p>echo &#8216;Current script owner: &#8216; . get_current_user(). &#8216;&lt;br&gt;&#8217;;<br />
echo &#8216;UID:&#8217; . getmyuid() . &#8216;&lt;br&gt;&#8217;;<br />
echo &#8216;GID:&#8217; . getmygid() . &#8216;&lt;br&gt;&#8217;;<br />
echo &#8216;PID:&#8217; . getmypid() . &#8216;&lt;br&gt;&#8217;;<br />
echo &#8216;&lt;br&gt;&#8217;;<br />
echo &#8220;PHP runs under the user: [" . system('whoami') . "]&lt;br&gt;&#8221;;<br />
</em></p>
<p><em>?&gt;</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ithowto.ro/2010/03/howto-test-if-suphp-works-with-your-apache-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fix: Internet Explorer 6 div height when less than 20px</title>
		<link>http://www.ithowto.ro/2009/11/fix-internet-explorer-6-div-height-when-less-than-20px/</link>
		<comments>http://www.ithowto.ro/2009/11/fix-internet-explorer-6-div-height-when-less-than-20px/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 17:10:47 +0000</pubDate>
		<dc:creator>gkoo</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[ie6]]></category>

		<guid isPermaLink="false">http://www.ithowto.ro/?p=116</guid>
		<description><![CDATA[Empty divs in IE6 seem to have a minimum height more or less equal
to the current line-height so if you want to have an emty div of 10px for example IE will render it as
being 20px in height.
To fix this add a html comment inside the div:
&#60;div id=&#8221;smalldiv&#8221;&#62; &#60;!&#8211; &#8211;&#62; &#60;/div&#62;d
  
]]></description>
			<content:encoded><![CDATA[<p>Empty divs in IE6 seem to have a minimum height more or less equal<br />
to the current line-height so if you want to have an emty div of 10px for example IE will render it as<br />
being 20px in height.</p>
<p>To fix this add a html comment inside the div:</p>
<p>&lt;div id=&#8221;smalldiv&#8221;&gt; <strong>&lt;!&#8211; &#8211;&gt;</strong> &lt;/div&gt;d</p>
<p> <img src='http://www.ithowto.ro/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.ithowto.ro/2009/11/fix-internet-explorer-6-div-height-when-less-than-20px/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HowTo: write circular text with php and gd</title>
		<link>http://www.ithowto.ro/2009/03/howto-write-circular-text-with-php-and-gd/</link>
		<comments>http://www.ithowto.ro/2009/03/howto-write-circular-text-with-php-and-gd/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 10:20:14 +0000</pubDate>
		<dc:creator>radone</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[circular text]]></category>
		<category><![CDATA[gd]]></category>

		<guid isPermaLink="false">http://www.ithowto.ro/?p=77</guid>
		<description><![CDATA[I had a project in which I had to generate an image based on a string. The problem was that the text had to be displayed circulary. After hours of internet searching I&#8217;ve came across http://www.phpgd.com and found this piece of code which did the job quite nicely.
&#60;?php
$text = &#8220;Around and around around and around [...]]]></description>
			<content:encoded><![CDATA[<p>I had a project in which I had to generate an image based on a string. The problem was that the text had to be displayed circulary. After hours of internet searching I&#8217;ve came across <a href="http://www.phpgd.com" target="_blank">http://www.phpgd.com</a> and found this piece of code which did the job quite nicely.</p>
<p>&lt;?php</p>
<p>$text = &#8220;Around and around around and around and around &#8220;;</p>
<p>$image = imagecreatetruecolor(400,400);<br />
$white = imagecolorallocate($image,255,255,255);<br />
imagefill($image,0,0,$white);<br />
$red = imagecolorallocate($image,255,0,0);</p>
<p>$degrees = (360/strlen($text));</p>
<p>for ($i=0;$i&lt;strlen($text);$i++) {</p>
<p>$a = ($degrees*$i)+180;</p>
<p>$cos = cos(deg2rad($a));<br />
$sin = sin(deg2rad($a));<br />
$x = 0;<br />
$y = 180;<br />
$xt = round($cos*($x) &#8211; $sin*($y));<br />
$yt = round($sin*($x) + $cos*($y));<br />
imagettftext($image,20,180-($a),200+$xt,200+$yt,$red,&#8221;fonts/arial.ttf&#8221;,$text[$i]);</p>
<p>}</p>
<p>header(&#8220;Content-type: image/jpeg&#8221;);<br />
imagejpeg($image,&#8221;",100);<br />
imagedestroy($image);</p>
<p>?&gt;</p>
<p>Here is the direct link to the script <a href="http://www.phpgd.com/scripts.php?script=25" target="_blank">http://www.phpgd.com/scripts.php?script=25</a>. You might look through the site because there are other many interesting scripts which may come useful in your projects.</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ithowto.ro/2009/03/howto-write-circular-text-with-php-and-gd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HowTo: Disable yellow colored inputs in firefox because of google toolbar</title>
		<link>http://www.ithowto.ro/2009/03/howto-disable-yellow-colored-inputs-in-firefox-because-of-google-toolbar/</link>
		<comments>http://www.ithowto.ro/2009/03/howto-disable-yellow-colored-inputs-in-firefox-because-of-google-toolbar/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 17:27:36 +0000</pubDate>
		<dc:creator>gkoo</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[google toolbar]]></category>
		<category><![CDATA[yellow input]]></category>

		<guid isPermaLink="false">http://www.ithowto.ro/?p=73</guid>
		<description><![CDATA[You might have noticed that once installed, google toolbar will automatically fill with yellow the e-mail inputs in your nicely developed website. Now this might be ruining your design and functionality when you&#8217;ve got a dark background and a light color for the inputed text ( white or yellow ).
You can easily get rid of [...]]]></description>
			<content:encoded><![CDATA[<p>You might have noticed that once installed, google toolbar will automatically fill with yellow the e-mail inputs in your nicely developed website. Now this might be ruining your design and functionality when you&#8217;ve got a dark background and a light color for the inputed text ( white or yellow ).</p>
<p>You can easily get rid of this so called &#8220;feature&#8221; by adding the following in the css style for your input:</p>
<p><em><strong>background: #(your own color code) !important;</strong></em></p>
<p>Adding &#8220;!important&#8221; will force the browser to use your code instead of the google toolbar color.</p>
<p>Enjoy !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ithowto.ro/2009/03/howto-disable-yellow-colored-inputs-in-firefox-because-of-google-toolbar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HowTo: Create Picture Thumbnails with PHP and GD</title>
		<link>http://www.ithowto.ro/2009/01/howto-create-picture-thumbnails-with-php-and-gd/</link>
		<comments>http://www.ithowto.ro/2009/01/howto-create-picture-thumbnails-with-php-and-gd/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 18:35:21 +0000</pubDate>
		<dc:creator>gkoo</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[php thumbnails gd]]></category>

		<guid isPermaLink="false">http://www.ithowto.ro/?p=42</guid>
		<description><![CDATA[Hi, first of all I&#8217;d like to wish you all a Happy New Year. Hope you enjoyed your holidays, because I know most of us are now behind the desks again, working.
Now, here&#8217;s a nice PHP plugin you can use to generate thumbnails in PHP. It&#8217;s called phpThumb and you can get it from phpthumb.sourceforge.net.
First [...]]]></description>
			<content:encoded><![CDATA[<p>Hi, first of all I&#8217;d like to wish you all a Happy New Year. Hope you enjoyed your holidays, because I know most of us are now behind the desks again, working.</p>
<p>Now, here&#8217;s a nice PHP plugin you can use to generate thumbnails in PHP. It&#8217;s called phpThumb and you can get it from <a href="http://sourceforge.net/projects/phpthumb/"><strong></strong></a><strong><a title="Php Thumb" href="http://phpthumb.sourceforge.net/" target="_blank">phpthumb.sourceforge.net</a>.</strong></p>
<p>First of all take note that this plugin uses the <strong><a title="GD Graphics Library" href="http://www.boutell.com/gd/">GD</a> </strong>or <strong><a title="ImageMagick" href="http://www.imagemagick.org/">ImageMagick</a> </strong>library so be sure you have at least one of them installed on your server/host. I&#8217;m using GD and it works just fine. ImageMagick has some extra features that I didn&#8217;t need, so be sure to check the official site for more details.</p>
<p><strong>How To use phpThumb:</strong></p>
<p>Copy the contents of the plugin somwhere in your site&#8217;s directory ( eg. /lib/phpThumb/ )</p>
<p>Rename the <strong>phpThumb.config.php.default</strong> to <strong>phpThumb.config.php</strong>. I didn&#8217;t modify this config at all but you might take a look inside it if you&#8217;d like to setup various parameters.</p>
<p>Having that done you can easily generate thumbnails like this:</p>
<p><em>&lt;img src=&#8221;lib/phpthumb/phpThumb.php?src=<strong>nameofthefile.jpg</strong>&amp;w=150&amp;h=50&amp;zc=1&#8243;  alt =&#8221;someText&#8221; /&gt;</em></p>
<p><strong>w </strong>stands for width of course and <strong>h </strong>stands for height. <strong>zc </strong>means zoomCrop.</p>
<p>The plugin has a lot of other options and tweaks to play with, check&#8217;em out <a title="Functions of phpThumb" href="http://phpthumb.sourceforge.net/demo/demo/phpThumb.demo.demo.php" target="_blank">here</a>.</p>
<p>Enjoy</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ithowto.ro/2009/01/howto-create-picture-thumbnails-with-php-and-gd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>URL rewriting with .htaccess</title>
		<link>http://www.ithowto.ro/2008/12/url-rewriting-with-htaccess/</link>
		<comments>http://www.ithowto.ro/2008/12/url-rewriting-with-htaccess/#comments</comments>
		<pubDate>Thu, 18 Dec 2008 17:21:21 +0000</pubDate>
		<dc:creator>rocky</dc:creator>
				<category><![CDATA[Server-side]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[url rewriting]]></category>

		<guid isPermaLink="false">http://www.ithowto.ro/?p=33</guid>
		<description><![CDATA[If you&#8217;re looking for this, you know why you need it. But just in case you&#8217;ve stumbled upon this and are curious, URL rewriting is useful for several reasons:
1. Accessibility: most people will rather remember a path that looks like http://www.example.com/products/shoes/12/ than http://www.example.com/index.php?category=products&#38;type=shoes&#38;productid=12
2. Security: granted, this is security through obscurity, but at the very least [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re looking for this, you know why you need it. But just in case you&#8217;ve stumbled upon this and are curious, URL rewriting is useful for several reasons:</p>
<p>1. <strong>Accessibility:</strong> most people will rather remember a path that looks like <em>http://www.example.com/products/shoes/12/</em> than <em>http://www.example.com/index.php?category=products&amp;type=shoes&amp;productid=12</em></p>
<p>2. <strong>Security:</strong> granted, this is security through obscurity, but at the very least it will hide from most users the server-side technology used (PHP, ASP, etc) and the passed variable names</p>
<p>3. <strong>SEO compliance:</strong> Web crawlers work by following links and caching the content found; however, they don&#8217;t parse anything beyond the filename, so generally <em>index.php?category=products</em>, <em>index.php?category=pages</em> and <em>index.php</em> are seen as a single address, <em>index.php</em>. On the other hand, <em>/products/</em>, <em>/pages/</em> and <em>/</em> are seen as 3 separate folders, and your content will thus be indexed correctly.</p>
<p>So, you&#8217;re thinking &#8220;Yes, that would be nice&#8221; (or alternatively, &#8220;Yeah yeah,get to the point already&#8221;). What do you need?</p>
<p>Well, first of all, your pages have to be hosted on an Apache server. Since over <a href="http://news.netcraft.com/archives/2008/11/19/november_2008_web_server_survey.html#more" target="_blank">50% of the servers in the world run on Apache</a>, that shouldn&#8217;t be a problem.</p>
<p>Secondly, it should have <em>mod_rewrite</em> activated. This is a bit trickier; most hosts have it on by default, but you should probably check with your host.</p>
<p>Finally, a good grasp of <a href="http://en.wikipedia.org/wiki/Regular_expressions" target="_blank">regular expressions</a> helps, but isn&#8217;t mandatory.</p>
<p>So,  for basic URL rewriting, create a new file containing the following:</p>
<p><strong>RewriteEngine On<br />
RewriteRule ^$ index.php<br />
RewriteRule ^([a-z0-9]+)(/)?$ index.php?page=$1 [NC]</strong></p>
<p>This assumes, of course, that your paging is driven by  a variable called <em>page</em> <img src='http://www.ithowto.ro/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Save this file as <strong>.htaccess</strong></p>
<p>Please note that .htaccess is the actual extension of the file, the filename being blank. If you save it as, for instance, .htaccess.txt, it <strong>will not work</strong>.</p>
<p>Here, the first line activates mod_rewrite. The second line redirects all incoming requests to index.php. Finally, the last one takes any input, followed by a slash or not, case-insensitive, and redirects it to <em>index.php?page=[the input]</em></p>
<p>You should however be careful with this, as a user with malicious intent might exploit this. Thus, in your code, you should sanitize all the inputs, or, in case you only have a few &#8220;main&#8221; pages (such as About, Tutorials, Links and Downloads, for instance) you could modify the last rule thus:</p>
<p><strong>RewriteRule ^(about|tutorials|links|downloads)(/)?$ index.php?page=$1 [NC]</strong></p>
<p>This can be further modified, adding whatever RegEx you need. So, you use our first example, you can write</p>
<p><strong>RewriteRule ^([a-z0-9]+)/([a-z0-9]+)/([0-9]+)(/)?$ index.php?category=$1&amp;type=$2&amp;productid=$3 [NC]</strong></p>
<p>I hope you found this useful <img src='http://www.ithowto.ro/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>Update:</strong> For RegEx goodness, have a look at this article Mike Malone has posted: <a href="http://immike.net/blog/2007/04/06/the-absolute-bare-minimum-every-programmer-should-know-about-regular-expressions/">The absolute bare minimum every programmer should know about regular expressions</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ithowto.ro/2008/12/url-rewriting-with-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript Website Preloader</title>
		<link>http://www.ithowto.ro/2008/12/javascript-website-preloader/</link>
		<comments>http://www.ithowto.ro/2008/12/javascript-website-preloader/#comments</comments>
		<pubDate>Thu, 18 Dec 2008 08:43:36 +0000</pubDate>
		<dc:creator>gkoo</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[javascript website preloader]]></category>

		<guid isPermaLink="false">http://www.ithowto.ro/?p=16</guid>
		<description><![CDATA[Here&#8217;s a nice java based website preloader I found recently. I needed it for a project and I think this might be useful to others too. Credits for this go to USINGIT.COM.
So here&#8217;s how you should use it :
Copy the following lines in to the header of the webpage:
&#60;SCRIPT LANGUAGE=&#8221;JavaScript&#8221;&#62;
&#60;!&#8211; Begin
function clearPreloadPage() { //DOM
if (document.getElementById){
document.getElementById(&#8216;prepage&#8217;).style.visibility=&#8217;hidden&#8217;;
}else{
if [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a nice java based website preloader I found recently. I needed it for a project and I think this might be useful to others too. Credits for this go to USINGIT.COM.</p>
<p>So here&#8217;s how you should use it :</p>
<p>Copy the following lines in to the header of the webpage:</p>
<p><strong>&lt;SCRIPT LANGUAGE=&#8221;JavaScript&#8221;&gt;</strong></p>
<p><strong>&lt;!&#8211; Begin<br />
function clearPreloadPage() { //DOM<br />
if (document.getElementById){<br />
document.getElementById(&#8216;prepage&#8217;).style.visibility=&#8217;hidden&#8217;;<br />
}else{<br />
if (document.layers){ //NS4<br />
document.prepage.visibility = &#8216;hidden&#8217;;<br />
}<br />
else { //IE4<br />
document.all.prepage.style.visibility = &#8216;hidden&#8217;;<br />
}<br />
}<br />
}<br />
// End &#8211;&gt;<br />
&lt;/SCRIPT&gt;</strong></p>
<p>Now add this to you body tag:</p>
<p><strong>&lt;BODY onLoad=&#8221;clearPreloadPage();&#8221;&gt;</strong></p>
<p>Then, in the body of the actual website, add the following that will display a loading message until the content of yout page is fully loaded.</p>
<p><strong> &lt;div id=&#8221;prepage&#8221; style=&#8221;position:absolute; font-family:arial; font-size:16; left:0px;top:0px; background-image:url(images/mainBg.gif); background-repeat:repeat; height:100%; width:100%;&#8221;&gt;<br />
&lt;div style=&#8221;padding-top:350px; text-align:center;&#8221;&gt;&lt;img src=&#8221;images/loading.gif&#8221; height=&#8221;20&#8243; width=&#8221;20&#8243; /&gt;&lt;span style=&#8221;font-size:19px; color:#000000; height:&#8221;&gt; Se Incarca&#8230;&lt;/span&gt;&lt;/div&gt;</strong></p>
<p>You can customise the first div and add your own background or whatever you want but keep its <strong>id = &#8220;prepage&#8221;</strong> and the <strong>position:absolute;</strong> <strong>left:0px;top:0px;</strong> elements in its style. Then, in the second div, place whatever text or animated gif you&#8217;d like to be displayed until the page is loaded.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ithowto.ro/2008/12/javascript-website-preloader/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
