Posts

Showing posts from February, 2011

Clear on mouse click function

http://www.java-scripts.net/javascripts/Clear-Form-Field-Value-on-Click.phtml Clear default form value script- By Ada Shimar (ada@chalktv.com) */ function clearText(thefield){ if (thefield.defaultValue==thefield.value) thefield.value = "" } </script> <form> <input type="text" value="Search this site" onFocus="clearText(this)"> </form>

PHP truncating text function

http://www.the-art-of-web.com/php/truncate/ here is very good and cool function for truncating text. function myTruncate($string, $limit, $break=".", $pad="...") { // return with no change if string is shorter than $limit if( strlen ($string) <= $limit) return $string; // is $break present between $limit and the end of the string? if(false !== ($breakpoint = strpos ($string, $break, $limit))) { if($breakpoint < strlen($string) - 1) { $string = substr ($string, 0, $breakpoint) . $pad; } } return $string; }

Advertising websites

You can Monetize your Gaming website using this Great sites. Will add more later http://www.metanetwork.com/ https://www.cpmstar.com/ http://mmotraffic.com/ http://www.criteo.com http://www.google.com/doubleclick http://www.openx.org/ http://www.zedo.com/

Antivirus Tools

I often forgets name of my precious Antivirus tools. It is time to note them. For hidden folders and system fixes - RRT - Sergiwa  http://www.sergiwa.com For virus removal - Kaspersky, Kaspersky Virus Removal Tool   http://www.kaspersky.com/virus-removal-tools  Big but powerful. For system registry fix - CCleaner -  http://download.cnet.com/ccleaner/