<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: js code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Thu, 24 Jul 2008 21:36:43 GMT</pubDate>
    <description>DZone Snippets: js code</description>
    <item>
      <title>Append to Article Body</title>
      <link>http://snippets.dzone.com/posts/show/2983</link>
      <description>Here's the code to insert some bit of text to the end of your article body. For the &lt;a href="http://forum.textpattern.com/viewtopic.php?id=19647"&gt;Textpattern plugin&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;var obj = document.getElementById('body');&lt;br /&gt;obj.value = obj.value+"SOME TEXT";&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Fri, 10 Nov 2006 06:02:03 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/2983</guid>
      <author>tmcw ()</author>
    </item>
    <item>
      <title>Set a Field Equal to Something</title>
      <link>http://snippets.dzone.com/posts/show/2982</link>
      <description>A basic code sample for tcm_write_macros. It sets a custom field to a value&lt;br /&gt;&lt;code&gt;&lt;br /&gt;/* also - custom-1, custom-2, custom-3, custom-4, custom-5, etc for custom fields. */&lt;br /&gt;var obj = document.getElementById('custom-3');&lt;br /&gt;obj.value = "VALUE";&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Fri, 10 Nov 2006 05:55:58 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/2982</guid>
      <author>tmcw ()</author>
    </item>
    <item>
      <title>Encoding of HTML/XML special chars</title>
      <link>http://snippets.dzone.com/posts/show/2981</link>
      <description>&lt;code&gt;&lt;br /&gt;function encode(string) {&lt;br /&gt;	return string.replace('&amp;','&amp;amp;').replace('&lt;','&amp;lt;').replace('&gt;','&amp;gt;').replace('\'','&amp;apos;').replace('"','&amp;quot;');&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Thu, 09 Nov 2006 19:52:12 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/2981</guid>
      <author>Solid (Dmitry Polushkin)</author>
    </item>
    <item>
      <title>Javascript - Sleep</title>
      <link>http://snippets.dzone.com/posts/show/2253</link>
      <description>// Effettuare uno sleep dello script di uno script&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;function pause(millisecondi)&lt;br /&gt;{&lt;br /&gt;    var now = new Date();&lt;br /&gt;    var exitTime = now.getTime() + millisecondi;&lt;br /&gt;&lt;br /&gt;    while(true)&lt;br /&gt;    {&lt;br /&gt;        now = new Date();&lt;br /&gt;        if(now.getTime() &gt; exitTime) return;&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Fri, 07 Jul 2006 00:19:01 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/2253</guid>
      <author>whitetiger ()</author>
    </item>
    <item>
      <title>Events</title>
      <link>http://snippets.dzone.com/posts/show/2175</link>
      <description>I like being able to attach 'events' to buttons/links like this... don't think prototype can do this&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;$("a.codeButtonB").click(function(){$("pre.codeB").toggle()});&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Tue, 13 Jun 2006 01:17:42 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/2175</guid>
      <author>willcodeforfoo ()</author>
    </item>
    <item>
      <title>jQuery Example</title>
      <link>http://snippets.dzone.com/posts/show/2174</link>
      <description>&lt;code&gt;&lt;br /&gt;$("#item li, #otheritem li").click(function(){&lt;br /&gt;  $(this).css('color', '#c00');&lt;br /&gt;});&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Tue, 13 Jun 2006 01:12:54 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/2174</guid>
      <author>willcodeforfoo ()</author>
    </item>
    <item>
      <title>switching css style sheets with javascript</title>
      <link>http://snippets.dzone.com/posts/show/1577</link>
      <description>// description of your code here&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;//this part goes within the head tags&lt;br /&gt;&lt;link rel="stylesheet" type="text/css" href="standard.css" title="standard" /&gt;&lt;br /&gt;&lt;link rel="alternate stylesheet" type="text/css" href="medium.css" title="medium" /&gt;&lt;br /&gt;&lt;link rel="alternate stylesheet" type="text/css" href="large.css" title="large" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;script src="fontsize.js" type="text/javascript" language="javascript"&gt;&lt;/script&gt;&lt;br /&gt;&lt;br /&gt;//this part goes where you want the links that the user will click on to show up (the script part should probably be on one line with no breaks&lt;br /&gt;&lt;br /&gt;&lt;td valign="top" id="adjustcell"&gt;&lt;br /&gt;&lt;script type="text/javascript"&gt;&lt;br /&gt;if (document.getElementById){ document.getElementById('adjustcell').innerHTML = '&lt;table width="100" cellspacing="0" cellpadding="0" border="0"&gt;&lt;tr&gt;&lt;br /&gt;&lt;br /&gt;&lt;td colspan="4" height="10"&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="25"&gt;&amp;nbsp;&lt;/td&gt;&lt;td width="25"&gt;&lt;a href="#" onclick="setActiveStyleSheet(\'default\'); return false;"&gt;normal text size&lt;/a&gt;&lt;/td&gt;&lt;br /&gt;&lt;br /&gt;&lt;td width="25"&gt;&lt;a href="#" onclick="setActiveStyleSheet(\'medium\'); return false;"&gt;medium text size&lt;/a&gt;&lt;/td&gt;&lt;br /&gt;&lt;br /&gt;&lt;td width="25"&gt;&lt;a href="#" onclick="setActiveStyleSheet(\'large\'); return false;"&gt;large text size&lt;/a&gt;&lt;/td&gt;&lt;br /&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;td width="100" align="right" colspan="4" style="color: #ffffff;"&gt;Adjust Text Size&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;';}&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;&lt;/td&gt;&lt;br /&gt;&lt;br /&gt;//contents of fontsizeswitcher.js (some of this is to switch images if you are using images instead of text links.&lt;br /&gt;&lt;br /&gt;// var graphics_path = "" ;&lt;br /&gt;var graphics_init = 0 ;&lt;br /&gt;&lt;br /&gt;function init_path()&lt;br /&gt;	{&lt;br /&gt;	graphics_path = document.getElementById("default").src ; // "graphics" ;&lt;br /&gt;&lt;br /&gt;graphics_path = graphics_path.substring(0,graphics_path.lastIndexOf("/"));&lt;br /&gt;graphics_path = graphics_path.substring(graphics_path.indexOf(".com/")+4);&lt;br /&gt;&lt;br /&gt;	graphics_init = 1 ;&lt;br /&gt;	}&lt;br /&gt;&lt;br /&gt;function setActiveStyleSheet(title) {&lt;br /&gt;  var i, a, main;&lt;br /&gt;  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {&lt;br /&gt;    if(a.getAttribute("rel").indexOf("style") != -1 &amp;&amp; a.getAttribute("title")) {&lt;br /&gt;      a.disabled = true;&lt;br /&gt;      if(a.getAttribute("title") == title) {&lt;br /&gt;      	a.disabled = false;&lt;br /&gt;	  }&lt;br /&gt;    }&lt;br /&gt;  }&lt;br /&gt;  pressButton(title);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function unpressButton(which) {&lt;br /&gt;	if ( graphics_init == 0 )&lt;br /&gt;		{ init_path() }&lt;br /&gt;	document.getElementById(which).src = graphics_path + "/" + which + ".gif";&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;switchButtons = ["default", "medium", "large"];&lt;br /&gt;&lt;br /&gt;function pressButton(which) {&lt;br /&gt;	if ( graphics_init == 0 )&lt;br /&gt;		{ init_path() }&lt;br /&gt;	for (i = 0; i &lt; switchButtons.length; i++) {&lt;br /&gt;		if (which == switchButtons[i]) {&lt;br /&gt;			document.getElementById(which).src = graphics_path + "/" + which + "_p.gif";&lt;br /&gt;		} else {&lt;br /&gt;			document.getElementById(switchButtons[i]).src = graphics_path + "/" + switchButtons[i] + ".gif";&lt;br /&gt;		}&lt;br /&gt;	}&lt;br /&gt;	if (which == "null") {&lt;br /&gt;		document.getElementById("default").src = graphics_path + "/default_p.gif";&lt;br /&gt;	}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function getActiveStyleSheet() {&lt;br /&gt;  var i, a;&lt;br /&gt;  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {&lt;br /&gt;    if(a.getAttribute("rel").indexOf("style") != -1 &amp;&amp; a.getAttribute("title") &amp;&amp; !a.disabled) {&lt;br /&gt;    	return a.getAttribute("title");&lt;br /&gt;    }&lt;br /&gt;  }&lt;br /&gt;  return null;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function getPreferredStyleSheet() {&lt;br /&gt;  var i, a;&lt;br /&gt;  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {&lt;br /&gt;    if(a.getAttribute("rel").indexOf("style") != -1&lt;br /&gt;       &amp;&amp; a.getAttribute("rel").indexOf("alt") == -1&lt;br /&gt;       &amp;&amp; a.getAttribute("title")&lt;br /&gt;       ) return a.getAttribute("title");&lt;br /&gt;  }&lt;br /&gt;  return null;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function createCookie(name,value,days) {&lt;br /&gt;  if (days) {&lt;br /&gt;    var date = new Date();&lt;br /&gt;    date.setTime(date.getTime()+(days*24*60*60*1000));&lt;br /&gt;    var expires = "; expires="+date.toGMTString();&lt;br /&gt;  } else {&lt;br /&gt;  	expires = "";&lt;br /&gt;  }&lt;br /&gt;	document.cookie = name+"="+value+expires+"; path=/";&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function readCookie(name) {&lt;br /&gt;  var nameEQ = name + "=";&lt;br /&gt;  var ca = document.cookie.split(';');&lt;br /&gt;  for(var i=0;i &lt; ca.length;i++) {&lt;br /&gt;    var c = ca[i];&lt;br /&gt;    while (c.charAt(0)==' ') c = c.substring(1,c.length);&lt;br /&gt;    if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);&lt;br /&gt;  }&lt;br /&gt;  return null;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;window.onload = function(e) {&lt;br /&gt;  if ( graphics_init == 0 )&lt;br /&gt;    { init_path() }&lt;br /&gt;  smallpressed = new Image();&lt;br /&gt;  smallpressed.src=graphics_path + "/default_p.gif"&lt;br /&gt;  medpressed = new Image();&lt;br /&gt;  medpressed.src=graphics_path + "/medium_p.gif"&lt;br /&gt;  largepressed = new Image();&lt;br /&gt;  largepressed.src=graphics_path + "/large_p.gif"&lt;br /&gt;  if (document.getElementById) {&lt;br /&gt;    var cookie = readCookie("style");&lt;br /&gt;    var title = cookie ? cookie : getPreferredStyleSheet();&lt;br /&gt;    setActiveStyleSheet(title);&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;window.onunload = function(e) {&lt;br /&gt;  var title = getActiveStyleSheet();&lt;br /&gt;  createCookie("style", title, 365);&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Sat, 25 Feb 2006 13:56:52 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/1577</guid>
      <author>BillyChow (&#230;&#710;&#8216;&#229;&#339;&#168;&#232;&#191;&#8482;&#229;&#8222;&#191;&#229;&#8216;&#162;&#239;&#188;&#338;&#230;&#172;&#162;&#232;&#191;&#381;&#230;?&#165;&#232;&#191;&#8482;&#233;&#8225;&#338;&#228;&#184;&#381;&#230;&#710;&#8216;&#228;&#186;&#164;&#230;&#181;?&#239;&#188;?:D)</author>
    </item>
    <item>
      <title>JavaScript Object Viewer</title>
      <link>http://snippets.dzone.com/posts/show/1575</link>
      <description>/*&lt;br /&gt;  appName: JSOV 0.1&lt;br /&gt;  Author: Billy Chow&lt;br /&gt;  Webpage: http://www.dreammx.com&lt;br /&gt;  E-mail: billychow#tom.com&lt;br /&gt;*/&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;&lt;br /&gt;&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;br /&gt;&lt;head&gt;&lt;br /&gt;&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;&lt;br /&gt;&lt;title&gt;JSOV - JavaScript Object Viewer&lt;/title&gt;&lt;br /&gt;&lt;meta name="robots" content="follow,index" /&gt;&lt;br /&gt;&lt;/head&gt;&lt;br /&gt;&lt;style type="text/css"&gt;&lt;br /&gt;body  {font-family: Verdana, Tahoma, Arial;&lt;br /&gt;     font-size: 12px;&lt;br /&gt;    }&lt;br /&gt;div    {display: inline;}&lt;br /&gt;a,a:link,a:hover  {text-decoration: none;&lt;br /&gt;           color:blue;&lt;br /&gt;}&lt;br /&gt;.o_prop_name  {font-weight: bold;&lt;br /&gt;         color: blue;&lt;br /&gt;         font-size: 14px;&lt;br /&gt;}&lt;br /&gt;.o_prop_value  {font-weight: bold;&lt;br /&gt;         color: green;&lt;br /&gt;}&lt;br /&gt;&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;script language="javascript" type="text/javascript"&gt;&lt;br /&gt;/*&lt;br /&gt;  appName: JSOV 0.1&lt;br /&gt;  Author: Billy Chow&lt;br /&gt;  Webpage: http://www.dreammx.com&lt;br /&gt;  E-mail: billychow#tom.com&lt;br /&gt;*/&lt;br /&gt;function showObj(obj) {&lt;br /&gt;  var obj= eval(obj);&lt;br /&gt;  var str='&lt;div class="formated"&gt;';&lt;br /&gt;  for (prop in obj) {&lt;br /&gt;    str +='&lt;div class="o_prop_name"&gt;&lt;a href="#" title="next" onClick="changeObj(this.innerText)"&gt;' +prop+ '&lt;/a&gt;&lt;/div&gt;=&lt;div class="o_prop_value"&gt;' +obj[prop]+ '&lt;/div&gt;&lt;br /&gt;';&lt;br /&gt;  }&lt;br /&gt;  str += '&lt;/div&gt;';&lt;br /&gt;  document.all.txt3.innerHTML=str;&lt;br /&gt;}&lt;br /&gt;function changeObj(txt) {&lt;br /&gt;  var prefix = document.all.txtObj.value;&lt;br /&gt;  document.all.txtObj.value = prefix+'.'+txt;&lt;br /&gt;  showObj(document.all.txtObj.value);&lt;br /&gt;}&lt;br /&gt;function eraser() {&lt;br /&gt;  var tmpstr = document.all.txtObj.value;&lt;br /&gt;  tmpstr=tmpstr.replace(/\.\w*$/ig,"");&lt;br /&gt;  document.all.txtObj.value=tmpstr;&lt;br /&gt;  showObj(tmpstr);&lt;br /&gt;}&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;&lt;br /&gt;&lt;body&gt;&lt;br /&gt;&lt;h1&gt;JavaScript Object Viewer 0.1&lt;/h1&gt;&lt;br /&gt;&lt;div id="txt1"&gt;&lt;br /&gt;Input your object name here: &lt;input type="text" name="txtObj" value="window" /&gt;&amp;nbsp;&amp;nbsp;&lt;input type="button" name="btnSubmit" value="View" onClick="showObj(document.all.txtObj.value);" /&gt;&amp;nbsp;&amp;nbsp;&lt;input type="button" name="btnBack" value="Back" onClick="eraser();" /&gt;&amp;nbsp;&amp;nbsp;&lt;input type="button" name="btnDisp" value="DispVal" onClick="alert(eval(document.all.txtObj.value));" /&gt;&lt;br /&gt;&lt;/form&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id="txt2"&gt;The Object has these attributes:&lt;/div&gt;&lt;br /&gt;&lt;hr noshade="noshade" /&gt;&lt;br /&gt;&lt;div id="txt3"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/body&gt;&lt;br /&gt;&lt;/html&gt;&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Sat, 25 Feb 2006 13:28:07 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/1575</guid>
      <author>BillyChow (&#230;&#710;&#8216;&#229;&#339;&#168;&#232;&#191;&#8482;&#229;&#8222;&#191;&#229;&#8216;&#162;&#239;&#188;&#338;&#230;&#172;&#162;&#232;&#191;&#381;&#230;?&#165;&#232;&#191;&#8482;&#233;&#8225;&#338;&#228;&#184;&#381;&#230;&#710;&#8216;&#228;&#186;&#164;&#230;&#181;?&#239;&#188;?:D)</author>
    </item>
    <item>
      <title>&#38450;&#27490;&#26694;&#26550;(&#36339;&#20986;&#26694;&#26550;&#39029;)</title>
      <link>http://snippets.dzone.com/posts/show/1574</link>
      <description>// description of your code here&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;SCRIPT LANGUAGE=JAVASCRIPT&gt; &lt;br /&gt;&lt;!-- &lt;br /&gt;if (top.location !== self.location) { &lt;br /&gt;top.location=self.location; &lt;br /&gt;} &lt;br /&gt;&lt;/SCRIPT&gt;&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Sat, 25 Feb 2006 13:22:25 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/1574</guid>
      <author>BillyChow (&#230;&#710;&#8216;&#229;&#339;&#168;&#232;&#191;&#8482;&#229;&#8222;&#191;&#229;&#8216;&#162;&#239;&#188;&#338;&#230;&#172;&#162;&#232;&#191;&#381;&#230;?&#165;&#232;&#191;&#8482;&#233;&#8225;&#338;&#228;&#184;&#381;&#230;&#710;&#8216;&#228;&#186;&#164;&#230;&#181;?&#239;&#188;?:D)</author>
    </item>
    <item>
      <title>&#229;?&#179;&#233;&#8221;&#174;&#229;&#177;?&#229;&#188;&#352;</title>
      <link>http://snippets.dzone.com/posts/show/1552</link>
      <description>// description of your code here&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;function KeyDown(){ &lt;br /&gt;//&#229;&#177;?&#232;&#8221;&#189;&#233;&#188;&#160;&#230;&#160;&#8225;&#229;?&#179;&#233;&#8221;&#174;&#227;&#8364;?Ctrl+n&#227;&#8364;?shift+F10&#227;&#8364;?F5&#229;&#710;&#183;&#230;&#8211;&#176;&#227;&#8364;?&#233;&#8364;&#8364;&#230;&#160;&#188;&#233;&#8221;&#174;&lt;br /&gt;//alert("ASCII&#228;&#187;&#163;&#231;&#160;?&#230;&#732;&#175;&#239;&#188;&#353;"+event.keyCode);&lt;br /&gt;  if ((window.event.altKey)&amp;&amp;&lt;br /&gt;      ((window.event.keyCode==37)||   //&#229;&#177;?&#232;&#8221;&#189; Alt+ &#230;&#8211;&#185;&#229;?&#8216;&#233;&#8221;&#174; &#226;&#8224;?&lt;br /&gt;       (window.event.keyCode==39))){  //&#229;&#177;?&#232;&#8221;&#189; Alt+ &#230;&#8211;&#185;&#229;?&#8216;&#233;&#8221;&#174; &#226;&#8224;&#8217;&lt;br /&gt;     alert("&#228;&#184;?&#229;&#8225;&#8224;&#228;&#189;&#160;&#228;&#189;&#191;&#231;&#8221;&#168;ALT+&#230;&#8211;&#185;&#229;?&#8216;&#233;&#8221;&#174;&#229;&#8240;?&#232;&#191;&#8250;&#230;&#710;&#8211;&#229;?&#381;&#233;&#8364;&#8364;&#231;&#189;&#8216;&#233;&#161;&#181;&#239;&#188;?");&lt;br /&gt;     event.returnValue=false;&lt;br /&gt;     }&lt;br /&gt;  if ((event.keyCode==8)  ||                 //&#229;&#177;?&#232;&#8221;&#189;&#233;&#8364;&#8364;&#230;&#160;&#188;&#229;&#710;&#160;&#233;&#8482;&#164;&#233;&#8221;&#174;&lt;br /&gt;      (event.keyCode==116)||                 //&#229;&#177;?&#232;&#8221;&#189; F5 &#229;&#710;&#183;&#230;&#8211;&#176;&#233;&#8221;&#174;&lt;br /&gt;      (event.keyCode==112)||                 //&#229;&#177;?&#232;&#8221;&#189; F1 &#229;&#710;&#183;&#230;&#8211;&#176;&#233;&#8221;&#174;&lt;br /&gt;      (event.ctrlKey &amp;&amp; event.keyCode==82)){ //Ctrl + R&lt;br /&gt;     event.keyCode=0;&lt;br /&gt;     event.returnValue=false;&lt;br /&gt;     }&lt;br /&gt;  if ((event.ctrlKey)&amp;&amp;(event.keyCode==78))   //&#229;&#177;?&#232;&#8221;&#189; Ctrl+n&lt;br /&gt;     event.returnValue=false;&lt;br /&gt;  if ((event.shiftKey)&amp;&amp;(event.keyCode==121)) //&#229;&#177;?&#232;&#8221;&#189; shift+F10&lt;br /&gt;     event.returnValue=false;&lt;br /&gt;  if (window.event.srcElement.tagName == "A" &amp;&amp; window.event.shiftKey) &lt;br /&gt;      window.event.returnValue = false;  //&#229;&#177;?&#232;&#8221;&#189; shift &#229;&#352;&#160;&#233;&#188;&#160;&#230;&#160;&#8225;&#229;&#183;&#166;&#233;&#8221;&#174;&#230;&#8211;&#176;&#229;&#188;&#8364;&#228;&#184;&#8364;&#231;&#189;&#8216;&#233;&#161;&#181;&lt;br /&gt;  if ((window.event.altKey)&amp;&amp;(window.event.keyCode==115)){ //&#229;&#177;?&#232;&#8221;&#189;Alt+F4&lt;br /&gt;      window.showModelessDialog("about:blank","","dialogWidth:1px;dialogheight:1px");&lt;br /&gt;      return false;}&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Wed, 22 Feb 2006 18:04:13 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/1552</guid>
      <author>BillyChow (&#230;&#710;&#8216;&#229;&#339;&#168;&#232;&#191;&#8482;&#229;&#8222;&#191;&#229;&#8216;&#162;&#239;&#188;&#338;&#230;&#172;&#162;&#232;&#191;&#381;&#230;?&#165;&#232;&#191;&#8482;&#233;&#8225;&#338;&#228;&#184;&#381;&#230;&#710;&#8216;&#228;&#186;&#164;&#230;&#181;?&#239;&#188;?:D)</author>
    </item>
  </channel>
</rss>
