<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1032377" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1032377</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascriptswitching#comment-1190430</link>
    <description> &lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;var showing_image = 0;&lt;br /&gt;function swap_cam(){&lt;br /&gt;	var minutes = 5 // change this to whatever&lt;br /&gt;	obj = documnet.getElementById(&amp;#039;webcam_image&amp;#039;);&lt;br /&gt;	if(showing_image == 1){&lt;br /&gt;		new_src = &amp;#039;images/cam1.jpg&amp;#039;;&lt;br /&gt;		showing_image = 0;&lt;br /&gt;	}else{&lt;br /&gt;		new_src = &amp;#039;images/cam2.jpg&amp;#039;;&lt;br /&gt;		showing_image = 1;&lt;br /&gt;		}&lt;br /&gt;	setTimeout(&amp;quot;swap_cam()&amp;quot;,minutes*60*1000);&lt;br /&gt;	}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;then in the html put &lt;br /&gt;&amp;lt;body onload=&amp;quot;swap_cam()&amp;quot;&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;img src=&amp;quot;images/cam1.jpg&amp;quot; id=&amp;quot;webcam_image&amp;quot; /&amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
 </description>
     <pubDate>Sat, 14 Jan 2006 17:00:50 +0000</pubDate>
 <dc:creator>CptAwesome</dc:creator>
 <guid isPermaLink="false">comment 1190430 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascriptswitching#comment-1189930</link>
    <description> &lt;p&gt;Um... Sorry about double posting, but can anybody help me with this?&lt;/p&gt;
&lt;p&gt;~Adam &quot;SonicAdvDX&quot;&lt;/p&gt;
 </description>
     <pubDate>Wed, 11 Jan 2006 01:09:56 +0000</pubDate>
 <dc:creator>SonicAdvDX</dc:creator>
 <guid isPermaLink="false">comment 1189930 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascriptswitching#comment-1189494</link>
    <description> &lt;p&gt;Um, well, would it be too much trouble for you to do it? I mean, my friend made that script for me, so I really don&#039;t know much about JavaScript, or PHP.&lt;/p&gt;
&lt;p&gt;~Adam &quot;SonicAdvDX&quot;&lt;/p&gt;
 </description>
     <pubDate>Fri, 06 Jan 2006 22:09:11 +0000</pubDate>
 <dc:creator>SonicAdvDX</dc:creator>
 <guid isPermaLink="false">comment 1189494 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascriptswitching#comment-1189491</link>
    <description> &lt;p&gt;LOL! I was wondering how you got a cam working with javascript...&lt;br /&gt;
Your just refreshing the image!&lt;/p&gt;
&lt;p&gt;How well do you know javascript?&lt;br /&gt;
Can I tell you what to do or do you want me to edit your current script?&lt;br /&gt;
Do you know any php/asp? Does your server support eather?&lt;/p&gt;
 </description>
     <pubDate>Fri, 06 Jan 2006 21:40:47 +0000</pubDate>
 <dc:creator>bja888</dc:creator>
 <guid isPermaLink="false">comment 1189491 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascriptswitching#comment-1189485</link>
    <description> &lt;p&gt;Actually, I think I explained that a little vaguely... I&#039;m not looking for a re-direct script. Here, let me go into detail.&lt;/p&gt;
&lt;p&gt;What I am trying to do is take the following two scripts, and make them switch every ten seconds, but still stay on the main page... (&lt;a href=&quot;http://daunischild.blogspot.com/&quot; class=&quot;bb-url&quot;&gt;Here is the page I am trying to put it on.&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;amp;lt;script LANGUAGE=&amp;quot;JavaScript&amp;quot;&amp;amp;gt;&lt;br /&gt;&amp;lt;!--&lt;br /&gt;browserType = navigator.appName;		&lt;br /&gt;newImage = new Image();&lt;br /&gt;document.onstop = document_onstop;&lt;br /&gt;&lt;br /&gt;function startstop_onclick()&lt;br /&gt;{&lt;br /&gt;	if (startstop.value == &amp;quot;Turn Me Off&amp;quot;)&lt;br /&gt;	{&lt;br /&gt;		stopLoad();&lt;br /&gt;	}&lt;br /&gt;	else&lt;br /&gt;	{&lt;br /&gt;		startstop.value = &amp;quot;Turn Me Off&amp;quot;;&lt;br /&gt;		newImage.onload=loadNewImage;&lt;br /&gt;		loadNewImage();&lt;br /&gt;	}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function document_onstop()&lt;br /&gt;{&lt;br /&gt;	stopLoad();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function stopLoad()&lt;br /&gt;{&lt;br /&gt;	newImage.onload=&amp;quot;&amp;quot;;	&lt;br /&gt;	startstop.value = &amp;quot;Turn Me On&amp;quot;;&lt;br /&gt;	window.status = &amp;quot;On an Easter Egg Hunt?&amp;quot;;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function loadNewImage()&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uniq = new Date();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uniq = uniq.getTime();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.images.webcam32.src=newImage.src;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; newImage.src=&amp;quot;http://192.168.1.103:7778/video/pull?&amp;quot;+uniq;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.status = &amp;quot;On an Easter Egg Hunt?&amp;quot;;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;}&lt;br /&gt;function initialImage()&lt;br /&gt;{&lt;br /&gt;	uniq = new Date();&lt;br /&gt;	uniq = uniq.getTime();&lt;br /&gt;	newImage.onload=loadNewImage;&lt;br /&gt;	newImage.src=&amp;quot;http://192.168.1.103:7778/video/pull?&amp;quot;+uniq;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.images.webcam32.onload=&amp;quot;&amp;quot;;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;if (browserType == &amp;quot;Netscape&amp;quot;)&lt;br /&gt;{&lt;br /&gt;	document.write(&amp;#039;&amp;lt;IMG SRC=&amp;quot;http://192.168.1.103:7778/video/push&amp;quot; width=155 height=116 style=&amp;quot;width: 155px; height: 116px; background-image: URL(&amp;lt;a href=&amp;quot;http://armoth.sytes.net:1984/~sonicadvdx/Layout2/Live_off_t.JPG&amp;quot; class=&amp;quot;bb-url&amp;quot;&amp;gt;http://armoth.sytes.net:1984/~sonicadvdx/Layout2/Live_off_t.JPG&amp;lt;/a&amp;gt;);&amp;quot;&amp;gt;&amp;#039;);&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;	document.write(&amp;#039;&amp;lt;IMG SRC=&amp;quot;http://192.168.1.103:7778/video/pull&amp;quot; name=webcam32 onload=&amp;quot;initialImage()&amp;quot; width=155 height=116 style=&amp;quot;width: 155px; height: 116px; background-image: URL(&amp;lt;a href=&amp;quot;http://armoth.sytes.net:1984/~sonicadvdx/Layout2/Live_off_t.JPG&amp;quot; class=&amp;quot;bb-url&amp;quot;&amp;gt;http://armoth.sytes.net:1984/~sonicadvdx/Layout2/Live_off_t.JPG&amp;lt;/a&amp;gt;);&amp;quot;&amp;gt;&amp;#039;);&lt;br /&gt;}&lt;br /&gt;//--&amp;gt;&lt;br /&gt;&lt;br /&gt;if (browserType == &amp;quot;Netscape&amp;quot;)&lt;br /&gt;{&lt;br /&gt;	document.write(&amp;#039;&amp;lt;style type= &amp;quot;text/css&amp;quot;&amp;gt; #chatbox { position: relative; top: -25px; } &amp;lt;/style&amp;gt;&amp;#039;);&lt;br /&gt;}&lt;br /&gt;&amp;amp;lt;/script&amp;amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;That is the first webcam to be cycled through.&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;amp;lt;script LANGUAGE=&amp;quot;JavaScript&amp;quot;&amp;amp;gt;&lt;br /&gt;&amp;lt;!--&lt;br /&gt;browserType = navigator.appName;		&lt;br /&gt;newImage = new Image();&lt;br /&gt;document.onstop = document_onstop;&lt;br /&gt;&lt;br /&gt;function startstop_onclick()&lt;br /&gt;{&lt;br /&gt;	if (startstop.value == &amp;quot;Turn Me Off&amp;quot;)&lt;br /&gt;	{&lt;br /&gt;		stopLoad();&lt;br /&gt;	}&lt;br /&gt;	else&lt;br /&gt;	{&lt;br /&gt;		startstop.value = &amp;quot;Turn Me Off&amp;quot;;&lt;br /&gt;		newImage.onload=loadNewImage;&lt;br /&gt;		loadNewImage();&lt;br /&gt;	}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function document_onstop()&lt;br /&gt;{&lt;br /&gt;	stopLoad();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function stopLoad()&lt;br /&gt;{&lt;br /&gt;	newImage.onload=&amp;quot;&amp;quot;;	&lt;br /&gt;	startstop.value = &amp;quot;Turn Me On&amp;quot;;&lt;br /&gt;	window.status = &amp;quot;You are watching my webcam... I am happy...&amp;quot;;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function loadNewImage()&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uniq = new Date();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uniq = uniq.getTime();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.images.webcam32.src=newImage.src;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; newImage.src=&amp;quot;http://192.168.1.103:7777/video/pull?&amp;quot;+uniq;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.status = &amp;quot;You are watching my webcam... I am happy...&amp;quot;;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;}&lt;br /&gt;function initialImage()&lt;br /&gt;{&lt;br /&gt;	uniq = new Date();&lt;br /&gt;	uniq = uniq.getTime();&lt;br /&gt;	newImage.onload=loadNewImage;&lt;br /&gt;	newImage.src=&amp;quot;http://192.168.1.103:7777/video/pull?&amp;quot;+uniq;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.images.webcam32.onload=&amp;quot;&amp;quot;;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;if (browserType == &amp;quot;Netscape&amp;quot;)&lt;br /&gt;{&lt;br /&gt;	document.write(&amp;#039;&amp;lt;IMG SRC=&amp;quot;http://192.168.1.103:7777/video/push&amp;quot; width=320 height=240 style=&amp;quot;width: 320px; height: 240px; background-image: URL(&amp;lt;a href=&amp;quot;http://armoth.sytes.net:1984/~sonicadvdx/Layout2/Live_off.JPG&amp;quot; class=&amp;quot;bb-url&amp;quot;&amp;gt;http://armoth.sytes.net:1984/~sonicadvdx/Layout2/Live_off.JPG&amp;lt;/a&amp;gt;);&amp;quot;&amp;gt;&amp;#039;);&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;	document.write(&amp;#039;&amp;lt;IMG SRC=&amp;quot;http://192.168.1.103:7777/video/pull&amp;quot; name=webcam32 onload=&amp;quot;initialImage()&amp;quot; width=320 height=240 style=&amp;quot;width: 320px; height: 240px; background-image: URL(&amp;lt;a href=&amp;quot;http://armoth.sytes.net:1984/~sonicadvdx/Layout2/Live_off.JPG&amp;quot; class=&amp;quot;bb-url&amp;quot;&amp;gt;http://armoth.sytes.net:1984/~sonicadvdx/Layout2/Live_off.JPG&amp;lt;/a&amp;gt;);&amp;quot;&amp;gt;&amp;#039;);&lt;br /&gt;}&lt;br /&gt;//--&amp;gt;&lt;br /&gt;if (browserType == &amp;quot;Netscape&amp;quot;)&lt;br /&gt;{&lt;br /&gt;	document.write(&amp;#039;&amp;lt;style type= &amp;quot;text/css&amp;quot;&amp;gt; #chatbox { position: relative; top: -25px; } &amp;lt;/style&amp;gt;&amp;#039;);&lt;br /&gt;}&lt;br /&gt;&amp;amp;lt;/script&amp;amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;And, this is the second one. (Yes, they are essentially the same thing, but they display two totally different things.)&lt;/p&gt;
&lt;p&gt;If you go to &lt;a href=&quot;http://daunischild.blogspot.com/&quot; class=&quot;bb-url&quot;&gt;the page that I want to do this on&lt;/a&gt;, you should see a section on the right side of the page, called &#039;Webcam Mini&#039; with an image that says &#039;Adam Live! 2&#039; and such. That image is the background image of where I need this script to be. There currently is a broken image display box (Unless you&#039;re using Firefox, of course.) in place of the webcam, because the webcam is not turned on yet.&lt;/p&gt;
&lt;p&gt;But, that&#039;s beside the point. Is there anyway to take those two scripts and cycle them every ten seconds, as to show both of the webcams, using JavaScript?&lt;/p&gt;
&lt;p&gt;Thanks again,&lt;br /&gt;
~Adam &quot;SonicAdvDX&quot;&lt;/p&gt;
 </description>
     <pubDate>Fri, 06 Jan 2006 21:16:08 +0000</pubDate>
 <dc:creator>SonicAdvDX</dc:creator>
 <guid isPermaLink="false">comment 1189485 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascriptswitching#comment-1189464</link>
    <description> &lt;p&gt;Can&#039;t see any reason why not. &lt;/p&gt;
&lt;p&gt;Try this - you&#039;ll need the code on both pages, with each one pointing to the other. You&#039;ll note that the setting is currently 5 seconds - you&#039;ll need to change this in the META tag and the setTimeout line. Also don&#039;t forget to change the URL in the line var sTargetURL = &quot;redirectiontarget.htm&quot;; . On page 1 point to page 2 and vice versa. Crude but effective&lt;/p&gt;
&lt;p&gt;Code from:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://grizzlyweb.com/webmaster/javascripts/redirection.asp#Timed-Redirect&quot; class=&quot;bb-url&quot;&gt;http://grizzlyweb.com/webmaster/javascripts/redirection.asp#Timed-Redirect&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Timed Redirection Example&lt;/p&gt;
&lt;p&gt;&amp;lt;script language=&quot;JavaScript&quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/script&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;script language=&quot;JavaScript1.1&quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/script&amp;gt;&lt;/p&gt;
&lt;p&gt;Loading &lt;a href=&quot;redirectiontarget.htm&quot;&gt;redirection target&lt;/a&gt;&lt;br /&gt;
In approx. 5 seconds the redirection target page should load.&lt;br /&gt;
If it doesn&#039;t please select the link above.&lt;/p&gt;
 </description>
     <pubDate>Fri, 06 Jan 2006 11:29:54 +0000</pubDate>
 <dc:creator>amisane.org</dc:creator>
 <guid isPermaLink="false">comment 1189464 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
