This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function truncateString($str, $max, $rep = '...') { | |
if(strlen($str) > $max) { | |
$leave = $max - strlen($rep); | |
return substr_replace($str, $rep, $leave); | |
} else { | |
return $str; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
list($width, $height) = getimagesize($img); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if($_SERVER["REQUEST_METHOD"] == "POST") { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(window.attachEvent) { | |
window.attachEvent('onload', yourFunctionName); | |
} else { | |
if(window.onload) { | |
var curronload = window.onload; | |
var newonload = function() { | |
curronload(); | |
yourFunctionName(); | |
}; | |
window.onload = newonload; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setTimeout(function(){myFunction(parameter); parameter = null},myTimeout); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Script by hscripts.com --> | |
<!-- copyright of HIOX INDIA --> | |
<!-- Free javascripts @ http://www.hscripts.com --> | |
<script type="text/javascript"> | |
checked=false; | |
function checkedAll (frm1) { | |
var aa= document.getElementById('frm1'); | |
if (checked == false) | |
{ | |
checked = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* This script and many more are available free online at | |
The JavaScript Source!! http://javascript.internet.com | |
Created by: Greg Burghardt | http://www.geocities.com/greg_burghardt/ */ | |
var _GET = {}; | |
function readURL() { | |
var tLoc = "", tPairs = ""; | |
var tGet = []; | |
var foundGet = -1; | |
tLoc = window.location + ""; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function IsEmpty(aTextField) { | |
if ((aTextField.value.length==0) || | |
(aTextField.value==null)) { | |
return true; | |
} | |
else { return false; } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.onbeforeunload = confirmExit; | |
function confirmExit() { | |
//return "To save your portfolio, click Cancel and then click the SAVE button.\n\nTo leave the page without saving your portfolio, click OK."; | |
} | |
<? } ?> |