<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1046416" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1046416</link>
    <description></description>
    <language>en</language>
          <item>
    <title>The MM_showHideLayers is a</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/trouble-javascript-settimeout#comment-1248127</link>
    <description> &lt;p&gt;The MM_showHideLayers is a function packaged with Dreamweaver (MM = Macromedia, who originated Dreamweaver).&lt;/p&gt;
&lt;p&gt;Lots of places use it, but that is the origin of most functions beginning with MM_&lt;/p&gt;
&lt;p&gt;The solution is a combination of the two, You will still need MM_showHideLayers() function which shows layer 1 when you clock the image, but as mentioned you need to move the setTimeout() so that it is is out side of the &quot;root&quot; code that executes on load. &lt;/p&gt;
&lt;p&gt;Additionally, while you can execute multuple items within an onclick (and others), you must keep them all within one set of quotes.&lt;/p&gt;
&lt;p&gt;Try this:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; function showIt() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.getElementById(&amp;quot;show_1&amp;quot;).style.visibility = &amp;quot;visible&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; function waitShow() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; setTimeout(&amp;quot;showIt()&amp;quot;, 2000);&lt;br /&gt;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;br /&gt;....&lt;br /&gt;&lt;br /&gt;&amp;lt;a href=&amp;quot;#&amp;quot; onclick=&amp;quot;MM_showHideLayers(&amp;#039;flyer1&amp;#039;, &amp;#039;&amp;#039;,&amp;#039;show&amp;#039;); waitShow();&amp;quot;&amp;gt;image&amp;lt;/a&amp;gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 01 Apr 2010 00:35:36 +0000</pubDate>
 <dc:creator>Greg K</dc:creator>
 <guid isPermaLink="false">comment 1248127 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>thanks for the suggestion.</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/trouble-javascript-settimeout#comment-1248126</link>
    <description> &lt;p&gt;thanks for the suggestion. i&#039;ll give it a try&lt;/p&gt;
 </description>
     <pubDate>Wed, 31 Mar 2010 21:11:42 +0000</pubDate>
 <dc:creator>paperbirdie</dc:creator>
 <guid isPermaLink="false">comment 1248126 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>I don&#039;t see where the</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/trouble-javascript-settimeout#comment-1248111</link>
    <description> &lt;p&gt;I don&#039;t see where the MM_showHideLayers() function came from. Try changing the HTML to this:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;div id=&amp;quot;flyer1&amp;quot;&amp;gt;content&lt;br /&gt;&amp;lt;div id=&amp;quot;show_1&amp;quot; style=&amp;quot;visibility:hidden&amp;quot;&amp;gt;content&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;div id=&amp;quot;image&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;a href=&amp;quot;javascript:void(0)&amp;quot; onclick=&amp;quot;setTimeout(&amp;quot;showIt()&amp;quot;, 2000)&amp;quot;&amp;gt;image&amp;lt;/a&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;And then remove the setTimeout(&quot;showIt()&quot;, 2000); statement from the Javascript.&lt;/p&gt;
 </description>
     <pubDate>Wed, 31 Mar 2010 09:50:20 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1248111 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
