<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1002208" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1002208</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/random-quotes-problem#comment-1009754</link>
    <description> &lt;p&gt;Okay.  It still doesn&#039;t work.  I tried every possible configuration of the script tags and js file and all that, and I&#039;m just calling it quits on the whole js file idea.  It wasn&#039;t really necessary for my site, I only wanted to reduce the clutter on my main site.  If you wanna look at what I have, go to:  &lt;a href=&quot;http://www.geocities.com/~thoth50/test3.html&quot; title=&quot;www.geocities.com/~thoth50/test3.html&quot;&gt;www.geocities.com/~thoth50/test3.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;That&#039;s all, folks.  Sorry to make you do all this for a poor unenlightened JavaScript newbie such as myself  &lt;img src=&quot;http://www.what-next.com/ubb/ubbhtml/smile.gif&quot; alt=&quot;&quot; class=&quot;bb-image&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 13 Apr 1999 18:29:00 +0000</pubDate>
 <dc:creator>Infinity</dc:creator>
 <guid isPermaLink="false">comment 1009754 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/random-quotes-problem#comment-1009753</link>
    <description> &lt;p&gt;JP,&lt;/p&gt;
&lt;p&gt;If I get any more beautiful, I&#039;m going to have a constant blush! I&#039;m going to have to hit myself with an ugly stick or something   &lt;img src=&quot;http://www.what-next.com/ubb/ubbhtml/smile.gif&quot; alt=&quot;&quot; class=&quot;bb-image&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Infinity,&lt;/p&gt;
&lt;p&gt;How are you calling the javascript function in your document? The SCRIPT tag only lets the browser know where to go to get the contents of a function or variable. You haven&#039;t mentioned calling the function in the body of the document. &lt;/p&gt;
&lt;p&gt;I had forgotten that the script was written to be included in the document body. Rewrite your .js file like this (with the number and quote changes you need):&lt;/p&gt;
&lt;p&gt;---------------------------------------&lt;br /&gt;
var howMany = 5;&lt;br /&gt;
var quote = new Array(howMany+1);&lt;/p&gt;
&lt;p&gt;quote[0]=&quot;You! Off my planet!&quot;;&lt;br /&gt;
quote[1]=&quot;It&#039;s important to watch what you eat. Otherwise, how are you going to get it into your mouth? (Matt Diamond)&quot;;&lt;br /&gt;
quote[2]=&quot;&#039;They couldn&#039;t hit an elephant at this dist---&#039; —General John B. Sedgwick&#039;s last words, 1864&quot;;&lt;br /&gt;
quote[3]=&quot;If Beethoven had been killed in a plane crash at the age of 22, it would have changed the history of music, and of aviation. - Tom Stoppard&quot;;&lt;br /&gt;
quote[4]=&quot;I&#039;m not weird, I&#039;m gifted!&quot;;&lt;br /&gt;
quote[5]=&quot;I do not suffer from insanity. I enjoy every minute of it!&quot;;&lt;/p&gt;
&lt;p&gt;function rndnumber()&lt;br /&gt;
{&lt;br /&gt;
var randscript = -1;&lt;br /&gt;
while (randscript &amp;lt; 0&lt;/p&gt;
 </description>
     <pubDate>Tue, 13 Apr 1999 01:20:00 +0000</pubDate>
 <dc:creator>John Pollock</dc:creator>
 <guid isPermaLink="false">comment 1009753 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/random-quotes-problem#comment-1009752</link>
    <description> &lt;p&gt;Oh dear.....&lt;/p&gt;
&lt;p&gt;I still can&#039;t get the js files to work.  I made the [script] tags the same way as you showed, the js file itself was the same as the script on my page (minus the script tags and the comment thingys), and it didn&#039;t work.  I realized that I&#039;m not exactly being clear, but I&#039;m currently in a bad mood because I&#039;ve had it up to *_here_* with this computer.  I&#039;ve tried every concievable fix and the #&amp;amp;$%@&amp;amp;$^#&amp;amp;@$%#&amp;amp;!*!&amp;amp;@#% thing still won&#039;t #&amp;amp;$%@&amp;amp;$^#&amp;amp;@$%#&amp;amp;!*!&amp;amp;@#% work.  Any idea what could be wrong?  Anything I have to add or take out?  Please?!&lt;/p&gt;
 </description>
     <pubDate>Mon, 12 Apr 1999 23:42:00 +0000</pubDate>
 <dc:creator>Infinity</dc:creator>
 <guid isPermaLink="false">comment 1009752 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/random-quotes-problem#comment-1009751</link>
    <description> &lt;p&gt;Sorry Infinity, I didn&#039;t see you wanted help on the ACTUAL .js file, that is why I only helped with the link itself &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/surprise.png&quot; title=&quot;Shocked&quot; alt=&quot;Shocked&quot; class=&quot;smiley-content&quot; /&gt; .&lt;br /&gt;
JP&lt;br /&gt;
PS John you&#039;re beautiful, and I bet you&#039;re blushing!&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
The Webmaster Promotion and Resource Site&lt;br /&gt;
 &lt;a href=&quot;http://www.what-next.com&quot; class=&quot;bb-url&quot;&gt;www.what-next.com&lt;/a&gt;&lt;br /&gt;
The NEXT step in Designing and Promoting your Website&lt;/p&gt;
 </description>
     <pubDate>Mon, 12 Apr 1999 23:04:00 +0000</pubDate>
 <dc:creator>JP Stones</dc:creator>
 <guid isPermaLink="false">comment 1009751 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/random-quotes-problem#comment-1009750</link>
    <description> &lt;p&gt;Infinity,&lt;/p&gt;
&lt;p&gt;Thanks for the compliment on my site, I hope you are enjoying the CSS section.  &lt;img src=&quot;http://www.what-next.com/ubb/ubbhtml/smile.gif&quot; alt=&quot;&quot; class=&quot;bb-image&quot; /&gt;&lt;/p&gt;
&lt;p&gt;As for the external js file, the coding for the head section looked OK from you and JP. It would be something like this:&lt;/p&gt;
&lt;p&gt;&amp;#60;SCRIPT language=&quot;JavaScript&quot; SRC=&quot;http://someplace.com/jxt1.js&quot;&amp;gt;&amp;#60;/SCRIPT&amp;gt; &lt;/p&gt;
&lt;p&gt;I think the problem may be that you have added an extra set of &amp;#60;SCRIPT&amp;gt;&amp;#60;/SCRIPT&amp;gt; tags inside the .js file itself.&lt;/p&gt;
&lt;p&gt;In the external file, just put in your code and your functions, that is all it should need. &lt;/p&gt;
&lt;p&gt;Leave out the opening and closing comments as well. They are used when the script is embedded in the page to keep old browsers from displaying the code. The old browsers won&#039;t understand the SRC=&quot;&quot; command, so they shouldn&#039;t show it.&lt;br /&gt;
(Though NS 3 can do some strange things, especially with the document.write command, be sure to test if you have viewers with NS 3). &lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
John Pollock&lt;br /&gt;
 &lt;a href=&quot;http://www.pageresource.com&quot; class=&quot;bb-url&quot;&gt;http://www.pageresource.com&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 12 Apr 1999 21:50:00 +0000</pubDate>
 <dc:creator>John Pollock</dc:creator>
 <guid isPermaLink="false">comment 1009750 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/random-quotes-problem#comment-1009749</link>
    <description> &lt;p&gt;Well, JP, I tried to do that, but it didn&#039;t work.  I just got a blank page.  Was the format that I .js file in (see above post) correct?&lt;br /&gt;
Oh, and John, I visited pageresource.com.  I&#039;m currently learning CSS.  Great site!&lt;br /&gt;
(Don&#039;t worry Jeff, I&#039;ll go to your site too  &lt;img src=&quot;http://www.what-next.com/ubb/ubbhtml/smile.gif&quot; alt=&quot;&quot; class=&quot;bb-image&quot; /&gt; )&lt;/p&gt;
 </description>
     <pubDate>Mon, 12 Apr 1999 20:22:00 +0000</pubDate>
 <dc:creator>Infinity</dc:creator>
 <guid isPermaLink="false">comment 1009749 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/random-quotes-problem#comment-1009748</link>
    <description> &lt;p&gt;First of all, welcome back Jeff, I hope you get time off in your workload to visit the forums more regularly.&lt;/p&gt;
&lt;p&gt;Infinity, I use the following code to link to the .js file.&lt;br /&gt;
 &lt;BLOCKQUOTE&gt;quote:&amp;lt;script src=&quot;staticlogo.js&quot;&amp;gt;&lt;br /&gt;
© Dynamic Drive (&lt;a href=&quot;http://www.dynamicdrive.com&quot; title=&quot;www.dynamicdrive.com&quot;&gt;www.dynamicdrive.com&lt;/a&gt;)&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;/blockquote&gt;&lt;/p&gt;
&lt;p&gt;The dynamic file bit is where I got the file from BTW.&lt;br /&gt;
JP&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
The Webmaster Promotion and Resource Site&lt;br /&gt;
 &lt;a href=&quot;http://www.what-next.com&quot; class=&quot;bb-url&quot;&gt;www.what-next.com&lt;/a&gt;&lt;br /&gt;
The NEXT step in Designing and Promoting your Website&lt;/p&gt;
 </description>
     <pubDate>Mon, 12 Apr 1999 20:14:00 +0000</pubDate>
 <dc:creator>JP Stones</dc:creator>
 <guid isPermaLink="false">comment 1009748 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/random-quotes-problem#comment-1009747</link>
    <description> &lt;p&gt;oh sorry, that was JP who said that.  Forgive me.&lt;/p&gt;
 </description>
     <pubDate>Mon, 12 Apr 1999 20:07:00 +0000</pubDate>
 <dc:creator>Infinity</dc:creator>
 <guid isPermaLink="false">comment 1009747 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/random-quotes-problem#comment-1009746</link>
    <description> &lt;p&gt;Thanks, Jeff, but the script I have working now works just fine for me.  BTW, John, you mentioned that .js files work fine in IE5 for you.  Well, I&#039;m a JavaScript newbie, and I&#039;m not entirely certain I made &#039;em correctly.  What exactly do I need to do to make a .js file (link and what&#039;s in the .js file)?  I do the following (w/square brackets instead of angle ones):&lt;/p&gt;
&lt;p&gt;[script language=&quot;JavaScript&quot; src=&quot;filename.js&quot;] [/script]&lt;/p&gt;
&lt;p&gt;and in the js file:&lt;br /&gt;
[script language=&quot;JavaScript&quot;]&lt;br /&gt;
&amp;lt;!--Hide&lt;br /&gt;
script goes here&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
[/script]&lt;/p&gt;
&lt;p&gt;Is this correct?  Thanks in advance.&lt;/p&gt;
 </description>
     <pubDate>Mon, 12 Apr 1999 20:03:00 +0000</pubDate>
 <dc:creator>Infinity</dc:creator>
 <guid isPermaLink="false">comment 1009746 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/random-quotes-problem#comment-1009745</link>
    <description> &lt;p&gt;Example of above script:&lt;/p&gt;
&lt;p&gt; &lt;a href=&quot;http://www.eons.com/example1.htm&quot; class=&quot;bb-url&quot;&gt;http://www.eons.com/example1.htm&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;[This message has been edited by Jeffrey Ellison (edited April 12, 1999).]&lt;/p&gt;
 </description>
     <pubDate>Mon, 12 Apr 1999 19:31:00 +0000</pubDate>
 <dc:creator>Jeffrey Ellison</dc:creator>
 <guid isPermaLink="false">comment 1009745 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
