<?xml version="1.0"?>
<rss version="2.0">
 <channel>
  <title>JS Reload Question | WPDFD.com Forums</title>
  <link>http://www.wpdfd.com/forums/wpdfd/scripting/js_reload_question/</link>
  <description>A Scripting forum thread at WPDFD.com</description>
  <language>en-us</language>
  <pubDate>05/31/05, 151 39 2005 2005:%i:1117557548 12:39:08</pubDate>
  <lastBuildDate>06/07/13, 158 54 2013 2013:%i:1370588041 02:54:01</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>NineLabs Framework Feed Generator</generator>
  <managingEditor>sitemaster@wpdfd.com</managingEditor>
  <webMaster>sitemaster@wpdfd.com</webMaster>
     <item>
    <title>Primerdp  said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/scripting/js_reload_question/#p1949</link>
    <description><![CDATA[Sorry, I didn't mean to post this twice... I posted it in Markup first, which is the wrong section. Nonetheless, here's the question:<br /><br /> Here's a problem I'm trying to solve. Instead of having the image change on every reload, I'd like the image to reload every so many seconds. To add in a little extra challenge, it's also supposed to update the link simultaneously. Is this possible? This is what I'm trying to accomplish:<br /> <br />a href=&quot;page1.htm&quot; .. img src=&quot;img1.gif&quot;<br />then 15 seconds later....<br />a href=&quot;page2.htm&quot; .. img src=&quot;img2.gif&quot;<br />then 15 seconds later.....<br />a href=&quot;page3.htm&quot; .. img src=&quot;img3.gif&quot;<br />loop back 15 seconds later.....<br />a href=&quot;page1.htm&quot; .. img src=&quot;img1.gif&quot;<br /> <br />How would I go about doing this?<br /> <br />Thank you! ]]></description>
    <pubDate>05/31/05, 151 39 2005 2005:%i:1117557548 12:39:08</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/scripting/js_reload_question/#p1949</guid>
   </item>
     <item>
    <title>Primerdp  said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/scripting/js_reload_question/#p1950</link>
    <description><![CDATA[Ok, I looked around the site for awhile and found some help. Is there any way to make this code work in time intervals? (instead of only working when you refresh)<br /><br />&lt;html&gt;<br />&lt;head&gt;<br />&lt;title&gt;jadsf&lt;/title&gt;<br />&lt;script&gt;<br />&lt;!--<br />var max=3;<br />var thisBanner=1;<br />var banner=new MakeBannerArray(max);<br /><br />function MakeBannerArray(n)<br />{<br /> &nbsp; &nbsp; &nbsp;this.length=n;<br /> &nbsp; &nbsp; &nbsp;for (var i=1; i&lt;=n;i++)<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;this<i>=&quot;&quot;;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br /> &nbsp; &nbsp; &nbsp;return this;<br />}<br /><br />banner[1]='&lt;a href=&quot;1&quot;&gt;&lt;img src=&quot;--- path to image file ---&quot; width=&quot;468&quot; height=&quot;60&quot; border=&quot;0&quot; alt=&quot;1&quot;&gt;&lt;/a&gt;';<br />banner[2]='&lt;a href=&quot;2&quot;&gt;&lt;img src=&quot;--- path to image file ---&quot; width=&quot;468&quot; height=&quot;60&quot; border=&quot;0&quot; alt=&quot;2&quot;&gt;&lt;/a&gt;';<br />banner[3]='&lt;a href=&quot;3&quot;&gt;&lt;img src=&quot;--- path to image file ---&quot; width=&quot;468&quot; height=&quot;60&quot; border=&quot;0&quot; alt=&quot;3&quot;&gt;&lt;/a&gt;';<br /><br />function rand(n)<br /> &nbsp; &nbsp; &nbsp;{<br /> &nbsp; &nbsp; &nbsp;rnum=Math.floor(n*Math.random())+1;<br /> &nbsp; &nbsp; &nbsp;return rnum;<br /> &nbsp; &nbsp; &nbsp;}<br /><br />function setBanner()<br /> &nbsp; &nbsp; &nbsp;{<br /> &nbsp; &nbsp; &nbsp;thisBanner=rand(max);<br /> &nbsp; &nbsp; &nbsp;}<br /><br /><br />//--&gt;<br />&lt;/script&gt;<br />&lt;/head&gt;<br />&lt;body&gt;<br />&lt;script type=&quot;text/javascript&quot; language=&quot;JavaScript&quot;&gt;<br />&lt;!--<br />setBanner();<br />document.write (banner[thisBanner]);<br />// --&gt;<br />&lt;/script&gt;<br />&lt;/body&gt;<br />&lt;/html&gt;<br />]]></description>
    <pubDate>05/31/05, 151 03 2005 2005:%i:1117559034 13:03:54</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/scripting/js_reload_question/#p1950</guid>
   </item>
   </channel>
</rss