<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How do I add protection to my html coding?</title>
	<atom:link href="http://yoursitesample.com/html-coding/how-do-i-add-protection-to-my-html-coding/feed/" rel="self" type="application/rss+xml" />
	<link>http://yoursitesample.com/html-coding/how-do-i-add-protection-to-my-html-coding/</link>
	<description>Web Design Articles and Tutorials</description>
	<lastBuildDate>Sun, 28 Nov 2010 10:00:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Abigor</title>
		<link>http://yoursitesample.com/html-coding/how-do-i-add-protection-to-my-html-coding/comment-page-1/#comment-959</link>
		<dc:creator>Abigor</dc:creator>
		<pubDate>Sun, 07 Mar 2010 07:37:59 +0000</pubDate>
		<guid isPermaLink="false">http://yoursitesample.com/html-coding/how-do-i-add-protection-to-my-html-coding/#comment-959</guid>
		<description>&lt;script language=&quot;JavaScript1.2&quot;&gt;


var clickmessage=&quot;Right click disabled on images!&quot;

function disableclick(e) {
if (document.all) {
if (event.button==2&#124;&#124;event.button==3) {
if (event.srcElement.tagName==&quot;IMG&quot;){
alert(clickmessage);
return false;
}
}
}
else if (document.layers) {
if (e.which == 3) {
alert(clickmessage);
return false;
}
}
else if (document.getElementById){
if (e.which==3&amp;&amp;e.target.tagName==&quot;IMG&quot;){
alert(clickmessage)
return false
}
}
}

function associateimages(){
for(i=0;i&lt;document.images.length;i++)
document.images[i].onmousedown=disableclick;
}

if (document.all)
document.onmousedown=disableclick
else if (document.getElementById)
document.onmouseup=disableclick
else if (document.layers)
associateimages()
&lt;/script&gt;&lt;br&gt;&lt;b&gt;References : &lt;/b&gt;&lt;br&gt;</description>
		<content:encoded><![CDATA[<p>&lt;script language=&quot;JavaScript1.2&quot;&gt;</p>
<p>var clickmessage=&quot;Right click disabled on images!&quot;</p>
<p>function disableclick(e) {<br />
if (document.all) {<br />
if (event.button==2||event.button==3) {<br />
if (event.srcElement.tagName==&quot;IMG&quot;){<br />
alert(clickmessage);<br />
return false;<br />
}<br />
}<br />
}<br />
else if (document.layers) {<br />
if (e.which == 3) {<br />
alert(clickmessage);<br />
return false;<br />
}<br />
}<br />
else if (document.getElementById){<br />
if (e.which==3&amp;&amp;e.target.tagName==&quot;IMG&quot;){<br />
alert(clickmessage)<br />
return false<br />
}<br />
}<br />
}</p>
<p>function associateimages(){<br />
for(i=0;i&lt;document.images.length;i++)<br />
document.images[i].onmousedown=disableclick;<br />
}</p>
<p>if (document.all)<br />
document.onmousedown=disableclick<br />
else if (document.getElementById)<br />
document.onmouseup=disableclick<br />
else if (document.layers)<br />
associateimages()<br />
&lt;/script&gt;<br /><b>References : </b></p>
]]></content:encoded>
	</item>
</channel>
</rss>

