<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>wowmac &#187; img</title>
	<atom:link href="http://service.wowmac.com/archives/tag/img/feed" rel="self" type="application/rss+xml" />
	<link>http://service.wowmac.com</link>
	<description>wowmac's blog</description>
	<lastBuildDate>Wed, 01 Jul 2009 06:32:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>그림 크기조절 스크립트</title>
		<link>http://service.wowmac.com/archives/147</link>
		<comments>http://service.wowmac.com/archives/147#comments</comments>
		<pubDate>Fri, 10 Apr 2009 05:17:27 +0000</pubDate>
		<dc:creator>wowmac</dc:creator>
				<category><![CDATA[Script]]></category>
		<category><![CDATA[img]]></category>
		<category><![CDATA[resize]]></category>

		<guid isPermaLink="false">http://service.wowmac.com/?p=147</guid>
		<description><![CDATA[&#60;html&#62;
&#60;script language=&#8217;javascript&#8217;&#62;
function resize(name){
w = eval(&#8221;document.&#8221;+name+&#8221;.width&#8221;);
h = eval(&#8221;document.&#8221;+name+&#8221;.height&#8221;);
maxWidth = 150;
maxHeight = 150;
if(w &#62; maxWidth &#124;&#124; h &#62; maxHeight){
if(w &#62; h){
nw = maxWidth;
nh = Math.round((h*nw)/w);
}else{
nh = maxHeight;
nw = Math.round((nh*w)/h);
}
}else{
nw = w;
nh = h;
}
eval(&#8221;document.&#8221;+name+&#8221;.height=&#8221;+nh);
eval(&#8221;document.&#8221;+name+&#8221;.width=&#8221;+nw);
}
&#60;/script&#62;
&#60;body topmargin=0 leftmargin=0 marginwidth=0 marginheight=0 &#62;
&#60;table cellspacing=0 cellpadding=0 width=100% height=100% border=0&#62;
&#60;tr&#62;&#60;td align=center valign=middle&#62;
&#60;img src=&#8217;http://blogfiles2.naver.net/data33/2008/4/27/241/%BB%E7%C1%F8%B1%E21_sophie1982.jpg&#8217; name=&#8217;a'onload=&#8217;resize(&#8221;a&#8221;)&#8217;&#62;
&#60;/td&#62;&#60;/tr&#62;&#60;/table&#62;
&#60;/body&#62;
&#60;/html&#62;
]]></description>
			<content:encoded><![CDATA[<p>&lt;html&gt;<br />
&lt;script language=&#8217;javascript&#8217;&gt;<br />
function resize(name){<br />
w = eval(&#8221;document.&#8221;+name+&#8221;.width&#8221;);<br />
h = eval(&#8221;document.&#8221;+name+&#8221;.height&#8221;);</p>
<p>maxWidth = 150;<br />
maxHeight = 150;</p>
<p>if(w &gt; maxWidth || h &gt; maxHeight){<br />
if(w &gt; h){<br />
nw = maxWidth;<br />
nh = Math.round((h*nw)/w);<br />
}else{<br />
nh = maxHeight;<br />
nw = Math.round((nh*w)/h);<br />
}<br />
}else{<br />
nw = w;<br />
nh = h;<br />
}</p>
<p>eval(&#8221;document.&#8221;+name+&#8221;.height=&#8221;+nh);<br />
eval(&#8221;document.&#8221;+name+&#8221;.width=&#8221;+nw);<br />
}<br />
&lt;/script&gt;<br />
&lt;body topmargin=0 leftmargin=0 marginwidth=0 marginheight=0 &gt;<br />
&lt;table cellspacing=0 cellpadding=0 width=100% height=100% border=0&gt;<br />
&lt;tr&gt;&lt;td align=center valign=middle&gt;<br />
&lt;img src=&#8217;http://blogfiles2.naver.net/data33/2008/4/27/241/%BB%E7%C1%F8%B1%E21_sophie1982.jpg&#8217; name=&#8217;a'onload=&#8217;resize(&#8221;a&#8221;)&#8217;&gt;<br />
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://service.wowmac.com/archives/147/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
