<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1018295" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1018295</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascript-banner-rotator-problem#comment-1107419</link>
    <description> &lt;p&gt;Many thanks Abhishek Reddy.&lt;/p&gt;
&lt;p&gt;That code worked! Excellent!&lt;/p&gt;
&lt;p&gt;Thanks again.&lt;br /&gt;
Gavin&lt;/p&gt;
 </description>
     <pubDate>Sun, 21 Apr 2002 19:30:34 +0000</pubDate>
 <dc:creator>gavin681</dc:creator>
 <guid isPermaLink="false">comment 1107419 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascript-banner-rotator-problem#comment-1107401</link>
    <description> &lt;p&gt;Ok, here&#039;s a version that I worked on. I haven&#039;t tested it. I&#039;ve only gone through it correcting whatever I came across that seemed wrong. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/tongue.png&quot; title=&quot;Sticking out tongue&quot; alt=&quot;Sticking out tongue&quot; class=&quot;smiley-content&quot; /&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;&lt;br /&gt;&amp;lt;!-- Begin &lt;br /&gt;var how_many_ads = 2; &lt;br /&gt;var now = new Date() &lt;br /&gt;var sec = now.getSeconds(); &lt;br /&gt;var ad = sec % how_many_ads; &lt;br /&gt;ad +=1; &lt;br /&gt;if (ad==1) { &lt;br /&gt;url=&amp;quot;http://hop.clickbank.net/?dollartemp/dollart&amp;quot;;&lt;br /&gt;target=&amp;quot;_blank&amp;quot;; &lt;br /&gt;banner=&amp;quot;http://www.fast-sites.net/images/banner_ad.gif&amp;quot;; &lt;br /&gt;width=&amp;quot;468&amp;quot;; &lt;br /&gt;height=&amp;quot;60&amp;quot;; &lt;br /&gt;border=&amp;quot;0&amp;quot;; &lt;br /&gt;} &lt;br /&gt;if (ad==2) { &lt;br /&gt;url=&amp;quot;http://www.bahamasb2b.com&amp;quot;;&lt;br /&gt;target=&amp;quot;_blank&amp;quot;; &lt;br /&gt;banner=&amp;quot;http://www.fast-sites.net/images/banner_ad2.gif&amp;quot;; &lt;br /&gt;width=&amp;quot;468&amp;quot;; &lt;br /&gt;height=&amp;quot;60&amp;quot;; &lt;br /&gt;border=&amp;quot;0&amp;quot;; &lt;br /&gt;} &lt;br /&gt;document.write(&amp;#039;&amp;lt;center&amp;gt;&amp;#039;); &lt;br /&gt;document.write(&amp;#039;&amp;lt;a href=\&amp;quot;&amp;#039; + url + &amp;#039;\&amp;quot;&amp;#039;);&lt;br /&gt;document.write(&amp;#039; target=\&amp;quot;&amp;#039; + target + &amp;#039;\&amp;quot;&amp;gt;&amp;#039;); &lt;br /&gt;document.write(&amp;#039;&amp;lt;img src=\&amp;quot;&amp;#039; + banner + &amp;#039;\&amp;quot;&amp;#039;);&lt;br /&gt;document.write(&amp;#039; border=\&amp;quot;&amp;#039; + border + &amp;#039;\&amp;quot;&amp;#039;);&lt;br /&gt;document.write(&amp;#039; width=\&amp;quot;&amp;#039; + width + &amp;#039;\&amp;quot;&amp;#039;);&lt;br /&gt;document.write(&amp;#039; height=\&amp;quot;&amp;#039; + height + &amp;#039;\&amp;quot;&amp;gt;&amp;#039;);&lt;br /&gt;document.write(&amp;#039;&amp;lt;/a&amp;gt;&amp;#039;);&lt;br /&gt;document.write(&amp;#039;&amp;lt;/center&amp;gt;&amp;#039;); &lt;br /&gt;// End --&amp;gt; &lt;br /&gt;&amp;amp;lt;/script&amp;amp;gt; &lt;br /&gt; &lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
 </description>
     <pubDate>Sun, 21 Apr 2002 09:10:54 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1107401 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascript-banner-rotator-problem#comment-1107397</link>
    <description> &lt;p&gt;I don&#039;t get it. The code doesn&#039;t have an output for  or ending the &lt;img /&gt; tag with a &amp;gt;. Also you&#039;ve used target=&quot;_top&quot; rather than target=&quot;[var target]&quot;. The target value is even declared on the same line as the url var is declared. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/sad.png&quot; title=&quot;Sad&quot; alt=&quot;Sad&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;There are a few bugs all over. I&#039;ll review the code again and see if I can provide with a fixed up version. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Sun, 21 Apr 2002 04:39:59 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1107397 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascript-banner-rotator-problem#comment-1107291</link>
    <description> &lt;p&gt;ok... you could have the image be placed by your script but then have the link activate a js function and you could pass the url and have it open a new window. this could be one workaround you could explore. not sure about the border thing. use css maybe?&lt;br /&gt;
-dk&lt;/p&gt;
 </description>
     <pubDate>Thu, 18 Apr 2002 22:58:34 +0000</pubDate>
 <dc:creator>dk01</dc:creator>
 <guid isPermaLink="false">comment 1107291 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascript-banner-rotator-problem#comment-1107284</link>
    <description> &lt;p&gt;See, I told you it might not work! &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;  Can&#039;t help then mate.  I though it would but obviously not.  Sorry! &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/sad.png&quot; title=&quot;Sad&quot; alt=&quot;Sad&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 18 Apr 2002 22:00:14 +0000</pubDate>
 <dc:creator>openmind</dc:creator>
 <guid isPermaLink="false">comment 1107284 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascript-banner-rotator-problem#comment-1107283</link>
    <description> &lt;p&gt;I tried both but didn&#039;t work.&lt;/p&gt;
&lt;p&gt;I change the code to below but the banners disapeared.&lt;/p&gt;
&lt;p&gt;&amp;lt;script LANGUAGE=&quot;JavaScript&quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;&#039;);&lt;br /&gt;
document.write(&#039;&lt;a&gt;&#039;);&lt;br /&gt;
document.write(&#039;&lt;img width=&#039;)&lt;br /&gt;
document.write(width + &#039; height=&#039; + height + &#039; center&gt;&#039;);&lt;br /&gt;
// End --&amp;gt;&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 18 Apr 2002 21:57:12 +0000</pubDate>
 <dc:creator>gavin681</dc:creator>
 <guid isPermaLink="false">comment 1107283 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascript-banner-rotator-problem#comment-1107280</link>
    <description> &lt;p&gt;My God!  A JavaScript question I can answer!&lt;/p&gt;
&lt;p&gt;To solve both your problems in one fell swoop chnge the line for your url to include &lt;strong&gt;target=&quot;_blank&quot;&lt;/strong&gt; to open the ad in a new window and to get rid of the border just add &lt;strong&gt;border=&quot;0&quot;&lt;/strong&gt; to the lines where you call the banner gif.&lt;/p&gt;
&lt;p&gt;Hope that helps though I&#039;m probably wrong!  I doubt my abilities at times!! &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 18 Apr 2002 21:48:47 +0000</pubDate>
 <dc:creator>openmind</dc:creator>
 <guid isPermaLink="false">comment 1107280 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
