<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[KillerSites.com Web Design Forums - "turning webcams on and off" at different times of day]]></title>
		<link>http://www.killersites.com/forums/topic/2012/turning-webcams-on-and-off-at-different-times-of-day/</link>
		<description><![CDATA[The most recent posts in "turning webcams on and off" at different times of day.]]></description>
		<lastBuildDate>Fri, 14 Aug 2009 19:50:47 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA["turning webcams on and off" at different times of day]]></title>
			<link>http://www.killersites.com/forums/post/9972/#p9972</link>
			<description><![CDATA[<p>I thought I had a sweet, simple Javascript function to turn a webcam on and off depending on the time of day but I guess it&#039;s more complicated than I thought. So I sort of have two questions.</p><p>1) Is this the right tactic? If so, how can I fix it? What am I missing?<br />2) If this is wrong, how should I do it?</p><p>Thanks.</p><p>Go here: <a href="http://tinyurl.com/nrxwtm" rel="nofollow">http://tinyurl.com/nrxwtm</a> and then click webcam or add ?page_id=3&nbsp; to the URL</p><p>The code is essentially this:</p><div class="codebox"><pre><code>&lt;script language=&quot;Javascript&quot;&gt;
&lt;!--

now = new Date

if (now.getHours() &lt; 8) {
    document.write(&#039;&lt;img src=&quot;http://www.XXXXXXX.com/wp/wp=content/themes/XXXX/img/webcam-offair.gif&quot; alt=&quot;&quot; /&gt;&#039;)
}
else if (now.getHours() &lt; 12) {
   document.write(&#039;&lt;APPLET codebase=&quot;http://70.17.255.114:1205/program/&quot; code=&quot;javaviewer.Viewer.class&quot; archive=&quot;SonySncP1View.jar&quot; name=&quot;viewer&quot; width=&quot;340&quot; height=&quot;270&quot; hspace=&quot;0&quot; vspace=&quot;0&quot; align=&quot;top&quot;&gt;&lt;param name=&quot;ParamViewMode&quot; value=&quot;00000003&quot;&gt;&lt;param name=&quot;ParamColorCtrlBack&quot; value=&quot;000000&quot;&gt;&lt;param name=&quot;ParamColorPictFrame&quot; value=&quot;000000&quot;&gt;
&lt;param name=&quot;ParamColorDateFore&quot; value=&quot;00E000&quot;&gt;&lt;/APPLET&gt;&lt;/div&gt;&lt;div class=&quot;Webcam2-button&quot;&gt;&lt;a href=&quot;http://www.XXXXXXX.com/wp/?page_id=39&quot;&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&#039;)
}
else if (now.getHours() &lt; 14) {
    document.write(&#039;&lt;img src=&quot;http://www.XXXXXXX.com/wp/wp=content/themes/XXXX/img/webcam-nap.gif&quot; alt=&quot;&quot; /&gt;&#039;)
}
else if (now.getHours() &lt; 17) {
    document.write(&#039;&lt;APPLET codebase=&quot;http://70.17.255.114:1205/program/&quot; code=&quot;javaviewer.Viewer.class&quot; archive=&quot;SonySncP1View.jar&quot; name=&quot;viewer&quot; width=&quot;340&quot; height=&quot;270&quot; hspace=&quot;0&quot; vspace=&quot;0&quot; align=&quot;top&quot;&gt;&lt;param name=&quot;ParamViewMode&quot; value=&quot;00000003&quot;&gt;&lt;param name=&quot;ParamColorCtrlBack&quot; value=&quot;000000&quot;&gt;&lt;param name=&quot;ParamColorPictFrame&quot; value=&quot;000000&quot;&gt;
&lt;param name=&quot;ParamColorDateFore&quot; value=&quot;00E000&quot;&gt;&lt;/APPLET&gt;&lt;/div&gt;&lt;div class=&quot;Webcam2-button&quot;&gt;&lt;a href=&quot;http://www.XXXXXXX.com/wp/?page_id=39&quot;&gt;&amp;nbsp;&lt;/a&gt;&#039;)
}

else {
    document.write(&#039;&lt;img src=&quot;http://www.XXXXXXX.com/wp/wp=content/themes/XXXX/img/webcam-offair.gif&quot; alt=&quot;&quot; /&gt;&#039;)
}
//--&gt;
&lt;/script&gt;</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (blowfly123)]]></author>
			<pubDate>Fri, 14 Aug 2009 19:50:47 +0000</pubDate>
			<guid>http://www.killersites.com/forums/post/9972/#p9972</guid>
		</item>
	</channel>
</rss>
