<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1042287" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1042287</link>
    <description></description>
    <language>en</language>
          <item>
    <title>thanks kim  and jeeves.
very</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/onclick-help#comment-1235543</link>
    <description> &lt;p&gt;thanks kim  and jeeves.&lt;/p&gt;
&lt;p&gt;very helpful.&lt;/p&gt;
&lt;p&gt;best&lt;/p&gt;
&lt;p&gt;Mr City&lt;/p&gt;
 </description>
     <pubDate>Tue, 25 Nov 2008 17:14:19 +0000</pubDate>
 <dc:creator>citymaniac</dc:creator>
 <guid isPermaLink="false">comment 1235543 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>I&#039;m going to take your</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/onclick-help#comment-1235139</link>
    <description> &lt;p&gt;I&#039;m going to take your advice and leave it as it is.&lt;br /&gt;
Thanks again Jeeves you have been most helpfull.&lt;/p&gt;
 </description>
     <pubDate>Tue, 11 Nov 2008 22:59:34 +0000</pubDate>
 <dc:creator>Kim01</dc:creator>
 <guid isPermaLink="false">comment 1235139 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>IE is pants.  You should</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/onclick-help#comment-1235137</link>
    <description> &lt;p&gt;IE is pants. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/big.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; class=&quot;smiley-content&quot; /&gt; You should discover the greatness of &lt;a href=&quot;http://getfirefox.com&quot;&gt;Firefox&lt;/a&gt; + &lt;a href=&quot;http://getfirebug.com/&quot;&gt;Firebug&lt;/a&gt;, or &lt;a href=&quot;http://www.opera.com&quot;&gt;Opera&lt;/a&gt; + &lt;a href=&quot;http://www.opera.com/products/dragonfly/&quot;&gt;Dragonfly&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;As you get into Web design you&#039;ll soon learn to hate Internet Explorer, it does many things slightly differently to all other browsers. Anyway, that&#039;s another topic. &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;
&lt;blockquote&gt;&lt;p&gt;Any idea how i put a close button or link in with that ?&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;That&#039;s a little more difficult than just opening a new window. You have a few options:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;create a dynamic page (using PHP or whatever you have available), that takes the name of a file as an argument. Then open that page using Javascript, e.g. &lt;code&gt;&amp;lt;a href=&amp;quot;#&amp;quot; onClick=&amp;quot;window.open(&amp;#039;imageviewer.php?img=test.jpg&amp;#039;,&amp;#039;&amp;#039;,&amp;#039;width=380,height=620,status=0,scrollbars=0&amp;#039;,&amp;#039;screenx=300&amp;#039;,&amp;#039;screeny=200&amp;#039;)&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;test.jpg&amp;quot; alt=&amp;quot;img-01&amp;quot; width=&amp;quot;120&amp;quot; height=&amp;quot;200&amp;quot; class=&amp;quot;thumb&amp;quot; style=&amp;quot;display:inline&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Write an entire HTML page using Javascript.&lt;/li&gt;
&lt;li&gt;Create an HTML page for each popup, e.g. &lt;code&gt;&amp;lt;a href=&amp;quot;#&amp;quot; onClick=&amp;quot;window.open(&amp;#039;test.html&amp;#039;,&amp;#039;&amp;#039;,&amp;#039;width=380,height=620,status=0,scrollbars=0&amp;#039;,&amp;#039;screenx=300&amp;#039;,&amp;#039;screeny=200&amp;#039;)&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;test.jpg&amp;quot; alt=&amp;quot;img-01&amp;quot; width=&amp;quot;120&amp;quot; height=&amp;quot;200&amp;quot; class=&amp;quot;thumb&amp;quot; style=&amp;quot;display:inline&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&lt;/code&gt; Then put the image and a close link into &lt;code&gt;test.html&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Frankly though, particularly since you&#039;re just starting out, you don&#039;t need to bother. The window already has a close button on the top-right, there&#039;s no need to duplicate that. &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>Tue, 11 Nov 2008 22:34:38 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1235137 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Ok all works great ...Any</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/onclick-help#comment-1235135</link>
    <description> &lt;p&gt;Ok all works great ...Any idea how i put a close button or link in with that ?&lt;/p&gt;
 </description>
     <pubDate>Tue, 11 Nov 2008 21:58:38 +0000</pubDate>
 <dc:creator>Kim01</dc:creator>
 <guid isPermaLink="false">comment 1235135 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Yes perfect!! IE 7 ...
Thank</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/onclick-help#comment-1235129</link>
    <description> &lt;p&gt;Yes perfect!! IE 7 ...&lt;br /&gt;
Thank you again Jeeves.&lt;/p&gt;
 </description>
     <pubDate>Tue, 11 Nov 2008 21:11:07 +0000</pubDate>
 <dc:creator>Kim01</dc:creator>
 <guid isPermaLink="false">comment 1235129 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Is that better? What browser</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/onclick-help#comment-1235127</link>
    <description> &lt;p&gt;Is that better? What browser are you using?&lt;/p&gt;
 </description>
     <pubDate>Tue, 11 Nov 2008 21:08:00 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1235127 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Oh dear the code you replied</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/onclick-help#comment-1235123</link>
    <description> &lt;p&gt;Oh dear the code you replied with has vanished Jeeves ? The post is still there but code has gone.&lt;br /&gt;
All i see now is a scroll bar and no code ?&lt;/p&gt;
 </description>
     <pubDate>Tue, 11 Nov 2008 20:59:30 +0000</pubDate>
 <dc:creator>Kim01</dc:creator>
 <guid isPermaLink="false">comment 1235123 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Ah thank you Jeeves, i will</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/onclick-help#comment-1235119</link>
    <description> &lt;p&gt;Ah thank you Jeeves, i will impliment it later as I&#039;m busy at the moment, but I&#039;ll be sure to post back here if i have any issues.&lt;br /&gt;
Really appreciate your help.&lt;br /&gt;
Does the rest of my code seem ok ? I just insert that code for every thumb i want to expand ? I want three so three times that code one for each thumb inside the div tag ?&lt;/p&gt;
 </description>
     <pubDate>Tue, 11 Nov 2008 19:34:03 +0000</pubDate>
 <dc:creator>Kim01</dc:creator>
 <guid isPermaLink="false">comment 1235119 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>arggghhh the html has</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/onclick-help#comment-1235118</link>
    <description> &lt;blockquote&gt;&lt;p&gt;arggghhh the html has displayed as in a browzer :S ?&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;We allow HTML on the forum, so people can format their posts and that. If you need to post HTML/CSS just put it inside &lt;code&gt;&amp;lt;code&amp;gt;&lt;/code&gt; tags. Don&#039;t worry about getting it wrong, we can always fix it. &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;
&lt;p&gt;As for your problem, try changing your onclick code to:&lt;br /&gt;
&lt;code&gt;&amp;lt;a href=&amp;quot;#&amp;quot; onClick=&amp;quot;window.open(&amp;#039;test.jpg&amp;#039;,&amp;#039;&amp;#039;,&amp;#039;width=380,height=620,status=0,scrollbars=0&amp;#039;,&amp;#039;screenx=300&amp;#039;,&amp;#039;screeny=200&amp;#039;)&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;test.jpg&amp;quot; alt=&amp;quot;img-01&amp;quot; width=&amp;quot;120&amp;quot; height=&amp;quot;200&amp;quot; class=&amp;quot;thumb&amp;quot; style=&amp;quot;display:inline&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;The problem is the window is being set to the size of the image, but with the window border, scrollbars, and location bar the area the image appears in is smaller than the image itself. So, most browsers will scale the image down, giving you the + until you click the image.&lt;/p&gt;
&lt;p&gt;So what I did to your code above is add 20px to the width and height of the window. You might need to add more if the problem continues. I also switched off the status bar -- at the bottom -- and the scrollbars, to save a little space.&lt;/p&gt;
&lt;p&gt;Think of it like this: what you&#039;re setting is the width/height of the window&#039;s outer edges. Then the edges, location bar etc. have to be added on.&lt;/p&gt;
 </description>
     <pubDate>Tue, 11 Nov 2008 19:27:00 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1235118 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
