<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Learn HTML Code &#187; Javascript Codes</title>
	<atom:link href="http://www.thosecodes.com/category/javascript-codes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thosecodes.com</link>
	<description>HTML Codes and Tutorials the Easy Way</description>
	<lastBuildDate>Sun, 24 Jan 2010 22:57:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>No Right Clicking on your Website</title>
		<link>http://www.thosecodes.com/no-right-clicking-on-your-website/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.thosecodes.com/no-right-clicking-on-your-website/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 07:31:01 +0000</pubDate>
		<dc:creator>Zach</dc:creator>
				<category><![CDATA[Javascript Codes]]></category>

		<guid isPermaLink="false">http://www.thosecodes.com/?p=53</guid>
		<description><![CDATA[Do you have an image you want to try and protect beyond placing a watermark on it?  You can put javascript into your source to tell the user they cannot right click on your web page.  This script is not unbeatable, but most Internet users will not know how to get around the [...]]]></description>
			<content:encoded><![CDATA[<p>Do you have an image you want to try and protect beyond placing a watermark on it?  You can put javascript into your source to tell the user they cannot right click on your web page.  This script is not unbeatable, but most Internet users will not know how to get around the script.  There will always be a way for people to grab what they want from your website.  The only bulletproof way to keep your material and images from being <span id="more-53"></span>taken from your site is to simply not put them up at all.</p>
<p>However if you want some security then you can copy and paste this code into your source:</p>
<div class="code">&lt;body oncontextmenu=&#8221;alert(&#8217;You may not right click&#8217;); return false;&#8221;&gt;</div>
<p>If you want to change what is displayed when the user right clicks just change the area that says &#8216;You may not right click&#8217;.  Only change the text in this area, do not change anything else.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thosecodes.com/no-right-clicking-on-your-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Roll over image using Javascript</title>
		<link>http://www.thosecodes.com/roll-over-image-using-javascript/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.thosecodes.com/roll-over-image-using-javascript/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 07:30:16 +0000</pubDate>
		<dc:creator>Zach</dc:creator>
				<category><![CDATA[Javascript Codes]]></category>

		<guid isPermaLink="false">http://www.thosecodes.com/?p=51</guid>
		<description><![CDATA[Creating a roll over image with javascript is not as efficient as a roll over image with CSS, but it is a lot easier to implement. There is more code involved in doing a roll over image with javascript, but you can copy and paste it rather then having to create your image and style [...]]]></description>
			<content:encoded><![CDATA[<p>Creating a roll over image with javascript is not as efficient as a roll over image with CSS, but it is a lot easier to implement. There is more code involved in doing a roll over image with javascript, but you can copy and paste it rather then having to create your image and style your CSS. The script code that you will need in your head is (If you are copying and <span id="more-51"></span>pasting this code and it does not work please re-write the quotations):</p>
<div class="code">&lt;script type=&#8221;text/JavaScript&#8221;&gt;<br />
intImage = 2;<br />
function swapImage() {<br />
switch (intImage) {<br />
case 1:<br />
IMG1.src = &#8220;images/roadpic.jpg&#8221;<br />
intImage = 2<br />
return(false);<br />
case 2:<br />
IMG1.src = &#8220;images/propel1.jpg&#8221;<br />
intImage = 1<br />
return(false);<br />
}<br />
}<br />
&lt;/script&gt;</div>
<p>Where I have &#8220;images/roadpic&#8221; and &#8220;images/propel1&#8243; is where you will want to put the path for your images. The first image, roadpic, will be the image that is displayed normally on the page. The second image, propel1, is the image that will appear when the mouse hovers over the image. The body code to create the roll over image would look like this:</p>
<div class="code">&lt;img id=&#8221;IMG1&#8243; name=&#8221;IMG1&#8243; src=&#8221;images/roadpic.jpg&#8221;<br />
onMouseOver=&#8221;swapImage();&#8221;<br />
onMouseOut=&#8221;swapImage();&#8221; alt=&#8221;imageswap&#8221; class=&#8221;test&#8221; width=&#8221;890&#8243; height=&#8221;301&#8243;&gt;</div>
<p>Now you have a working Javascript roll over image. Remember when using this that it may take your visitors a while to see the roll over effect because the image that is being swapped is not pre-loaded onto the page. This means that when the mouse is hovered over the image, it asks the server for the new image it is supposed to display and then it displays it. If you want instant roll overs you would need to make a roll over image using CSS or put more javascript into your page to load all the pictures the user will need when he/she loads the page. If your visitors do not have Javascript enabled for their browser then they will not be able to see this roll over image.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thosecodes.com/roll-over-image-using-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
