ETS Escaping Parse
ETS will parse anything between {} in order to escape the parse use the following.
{# {escaped code} #}
2741 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
{# {escaped code} #}
<SCRIPT TYPE="text/javascript"> <!-- // copyright 1999 Idocs, Inc. http://www.idocs.com // Distribute this script freely but keep this notice in place function numbersonly(myfield, e, dec) { var key; var keychar; if (window.event) key = window.event.keyCode; else if (e) key = e.which; else return true; keychar = String.fromCharCode(key); // control keys if ((key==null) || (key==0) || (key==8) || (key==9) || (key==13) || (key==27) ) return true; // numbers else if ((("0123456789").indexOf(keychar) > -1)) return true; // decimal point jump else if (dec && (keychar == ".")) { myfield.form.elements[dec].focus(); return false; } else return false; } //--> </SCRIPT>
<FORM ACTION="../cgi-bin/mycgi.pl" METHOD=POST> U.S. ZIP Code: <INPUT NAME="dollar" SIZE=5 MAXLENGTH=5 onKeyPress="return numbersonly(this, event)"> <INPUT TYPE=SUBMIT VALUE="go"> </FORM>
{if: {php}strlen({phoneNumber}){/php} >= 10}({php}substr({phoneNumber}, -10, 3){/php}) {/if}{php}substr({phoneNumber}, -7, 3){/php}-{php}substr({phoneNumber}, -4){/php}
<img src="some_image.jpg" onload="someFunction();">
overflow-y: scroll;
.cssClass { width:expression(document.body.clientWidth > 900? "900px": "auto" ); }
<!--[if lt IE 7]> <script language="JavaScript"> function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6. { var arVersion = navigator.appVersion.split("MSIE") var version = parseFloat(arVersion[1]) if ((version >= 5.5) && (document.body.filters)) { for(var i=0; i<document.images.length; i++) { var img = document.images[i] var imgName = img.src.toUpperCase() if (imgName.substring(imgName.length-3, imgName.length) == "PNG") { var imgID = (img.id) ? "id='" + img.id + "' " : "" var imgClass = (img.className) ? "class='" + img.className + "' " : "" var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' " var imgStyle = "display:inline-block;" + img.style.cssText if (img.align == "left") imgStyle = "float:left;" + imgStyle if (img.align == "right") imgStyle = "float:right;" + imgStyle if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle var strNewHTML = "<span " + imgID + imgClass + imgTitle + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";" + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" img.outerHTML = strNewHTML i = i-1 } } } } window.attachEvent("onload", correctPNG); </script> <![endif]-->
<INPUT TYPE="checkbox" NAME="MyCheckbox" VALUE="Select Me" DISABLED> document.forms[0].MyCheckbox.disabled = true;
function checkUncheckAll(checkAllState, cbGroup) { // Check that the group has more than one element if(cbGroup.length > 0) { // Loop through the array for (i = 0; i < cbGroup.length; i++) { cbGroup[i].checked = checkAllState.checked; } } else { // Single element so not an array cbGroup.checked = checkAllState.checked; } }
<input type=checkbox name=checkall onclick="checkUncheckAll(this, grp1);"> <input type=checkbox name=grp1 id=bx1> <input type=checkbox name=grp1 id=bx2> <input type=checkbox name=grp1 id=bx3> <input type=checkbox name=grp1 id=bx4>
ln -s /home/dir_to /home/dir_from //dir_to is the existing directory you want dir_from to point to symbolically
<td onmousedown="return false;" onselectstart="return false;">