more on portfolio









November 2008
M T W T F S S
« May «-»  
 12
3456789
10111213141516
17181920212223
24252627282930






 

How to: Make combos with different results

Log entry of September 11th 2007 10:00:47 pm
Filed under: Codes Related, How To, Javascripts, Snippets
Here a unique code which I wrote back in 2006. Ironically, it was the very first javascript I’ve written in my entire life! Anyway, what’s this script all about?

Well…the scenario is, what happen if you have a small HTML product website and you want a JAVASCRIPTed search engine which your visitors can look through various products by just selecting for specs.

Your answers is… …

How to: Make bubbles when the mouse move

Log entry of September 6th 2007 06:44:11 am
Filed under: Codes Related, How To, Javascripts, Snippets
Although I would not use this mouse effect javascript on any of my project or any of my websites, this is mainly for those out there who wants to make their website ‘pretty’. This cool javascript effect is originally by Kurt Grigg [ official website ].

Unfortunately, the link seem to end up in an error page.
But I’ve found a site which …

How to: Delete a folder with all files inside

Log entry of August 28th 2007 05:26:08 pm
Filed under: PHP, Snippets
We all know we can find a PHP code to delete a directory, but to delete a directory will thousands and millions of files in it? Here’s the coding which is quite a hassle to find, and I’m sharing it with y’all. function del_dir($dir) { $res = @opendir($dir);if(!$res) return; while(($file = readdir($res)) !== false) { if($file !== ‘.’ && $file !== ‘..’) { $f = $dir . ‘/’ . $file; if(is_dir($f)) { del_dir($f); } else { @unlink($f); } } } closedir($res); @rmdir($dir); } Save the code above to a single PHP file …

How to: Prompt out the ‘SAVE AS’

Log entry of August 27th 2007 01:20:28 am
Filed under: Codes Related, How To, Javascripts, Snippets
I noticed that most IT dummies does not even know how to right click and image to save. And so, with many hours spending on Yahoo search engine… I found this… <script> function saveImageAs (imgOrURL) { if (typeof imgOrURL == ‘object’) imgOrURL = imgOrURL.src; window.win = open (imgOrURL); setTimeout(’win.document.execCommand(”SaveAs”)’, 500); } </script> <A href=”#” onclick=”saveImageAs(document.getElementById(’embedImage’)); return false” >save image</A> <img id=”embedImage” src=”IMAGEFILE.JPG”> Source: www.arunma.com


Newer Entries »