<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1011618" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1011618</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/description-change#comment-1066776</link>
    <description> &lt;p&gt;Hi Rage,&lt;/p&gt;
&lt;p&gt;   You can&#039;t use document.write() once the page has loaded. If you do, you will get a new page.  The easiest solution is to use a textbox for the description. If you don&#039;t want to use them or dHTML, make the description an image then you can swap them back and forth. But (and there is always a but) load time will increase.&lt;br /&gt;
   If you don&#039;t know dHTML, see the &quot;dHTML: an Introduction&quot; script at my site. It teaches as well as supplies you with code you can use.&lt;/p&gt;
&lt;p&gt;Vinny&lt;/p&gt;
 </description>
     <pubDate>Wed, 05 Jul 2000 19:26:24 +0000</pubDate>
 <dc:creator>Vincent Puglia</dc:creator>
 <guid isPermaLink="false">comment 1066776 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>description change</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/description-change#comment-1066724</link>
    <description> &lt;p&gt;is there any way to do it without layers or text boxes? I was thinking you could pissibly do it with document.write but i can&#039;t get it to change once they click the next buttin. here is my code so you can see it:&lt;/p&gt;
&lt;p&gt;this goes in the HEAD&lt;br /&gt;
&amp;lt;script language=&quot;Javascript&quot;&amp;gt;&lt;br /&gt;
=no_images) {document.nxt.src=next_off.src;}&lt;br /&gt;
	else {document.nxt.src=next_on.src; document.prv.src=prev_on.src;}&lt;br /&gt;
	if (newnumber&amp;gt;no_images) {return false}&lt;br /&gt;
	else {image_num=newnumber;&lt;br /&gt;
	selectionNext = &quot;samplegallery/&quot;+image_num+&quot;.jpg&quot;;&lt;br /&gt;
	document.family.src = selectionNext;}&lt;br /&gt;
}&lt;br /&gt;
//--&amp;gt;&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;/p&gt;
&lt;p&gt;this goes in the BODY:&lt;br /&gt;
&lt;a href=&quot;gallery.htm#&quot;&gt;&lt;br /&gt;
&amp;lt;script language=&quot;Javascript&quot;&amp;gt;&lt;br /&gt;
&#039;);}&lt;br /&gt;
else {document.write(&#039;&lt;img name=&quot;prv&quot; border=&quot;0&quot; src=&quot;images/prev_on.gif&quot; /&gt;&#039;);}&lt;br /&gt;
//--&amp;gt;&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;#&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;images/close.gif&quot; width=&quot;19&quot; height=&quot;16&quot; alt=&quot;Close Gallery&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;gallery.htm#&quot;&gt;&lt;br /&gt;
&amp;lt;script language=&quot;Javascript&quot;&amp;gt;&lt;br /&gt;
&#039;);}&lt;br /&gt;
else {document.write(&#039;&lt;img name=&quot;nxt&quot; border=&quot;0&quot; src=&quot;images/next_on.gif&quot; /&gt;&#039;);}&lt;br /&gt;
//--&amp;gt;&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;script language=&quot;javascript&quot;&amp;gt;&lt;br /&gt;
&#039;);&lt;br /&gt;
//--&amp;gt;&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 05 Jul 2000 12:43:59 +0000</pubDate>
 <dc:creator>Rageforth</dc:creator>
 <guid isPermaLink="false">comment 1066724 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/description-change#comment-1066723</link>
    <description> &lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;  The answer depends upon your code. I&#039;m going to assume you have your pics in an array and that it is called myPics. The principle behind the answer is:&lt;br /&gt;
   1) place your text within an array&lt;br /&gt;
       var picDescriptions = new Array();&lt;br /&gt;
       picDescriptions[0] = &quot;This is description for pic1&quot;;&lt;br /&gt;
       picDescriptions[1] = &quot;This is description for pic2&quot;;&lt;br /&gt;
       etc.&lt;br /&gt;
    2) declare your pics &amp;amp; text array as global (outside of any function, just after the &amp;lt;script language=&#039;javascript&#039;&amp;gt; tag) Do the same for:&lt;br /&gt;
    var currentPic = 0;&lt;br /&gt;
    3) the html for the buttons:&lt;/p&gt;
&lt;p&gt;    4) the function:&lt;br /&gt;
      function showPic(isNext)&lt;br /&gt;
      {&lt;br /&gt;
        if (isNext)  currentPic++;&lt;br /&gt;
        else currentPic--;&lt;/p&gt;
&lt;p&gt;        document.imagename.src = myPic[currentPic];&lt;br /&gt;
        document.formname.textbox.value = picDescriptions[currentPic];&lt;br /&gt;
      }&lt;/p&gt;
&lt;p&gt;Didn&#039;t test this (because I wrote it here), but it or some facsimile should work&lt;/p&gt;
&lt;p&gt;Vinny&lt;/p&gt;
 </description>
     <pubDate>Wed, 05 Jul 2000 12:37:39 +0000</pubDate>
 <dc:creator>Vincent Puglia</dc:creator>
 <guid isPermaLink="false">comment 1066723 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
