<?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>Retoucher.jp &#187; Jquery</title>
	<atom:link href="http://retoucher.jp/archives/tag/jquery/feed" rel="self" type="application/rss+xml" />
	<link>http://retoucher.jp</link>
	<description>主にPC関連の備忘録と映画の感想を書いています。</description>
	<lastBuildDate>Fri, 04 Nov 2011 07:34:34 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>初心者なので・・・</title>
		<link>http://retoucher.jp/archives/206</link>
		<comments>http://retoucher.jp/archives/206#comments</comments>
		<pubDate>Thu, 18 Jun 2009 02:23:49 +0000</pubDate>
		<dc:creator>taiyo</dc:creator>
				<category><![CDATA[Jquery]]></category>

		<guid isPermaLink="false">http://retoucher.jp/?p=206</guid>
		<description><![CDATA[jqueryを最近イジってます。 通常文字と変数は「＋」で連結するのは分かっているんですが、jqueryのＣＳＳに変数を入れる際にイロイロやってみても、エラーで動かない・・・・ とりあえず自分が間違っていたのが以下。 css({&#8220;&#8216;backgroundImage&#8217;:&#8221; + Img + ? 正しいのはコレ・・・ css({&#8216;backgroundImage&#8217;: Img ? 何とか動くようになったのが、以下のサンプル。 $(&#8220;li&#8221;).each(function(i){ var Img = &#8216;url(&#8220;listbg&#8217; + i + &#8216;\.gif&#8221;)&#8217;; $(this).css({&#8216;backgroundImage&#8217;: Img ,&#8217;backgroundRepeat&#8217;:'no-repeat&#8217;,'backgroundPosition&#8217;:&#8217;0px 0px&#8217;}); }); リストに個別の背景を使ってアイコン化したかったんです。 とりあえず、うまくいったので、備忘録！！！]]></description>
			<content:encoded><![CDATA[<p>jqueryを最近イジってます。<br />
通常文字と変数は「＋」で連結するのは分かっているんですが、jqueryのＣＳＳに変数を入れる際にイロイロやってみても、エラーで動かない・・・・</p>
<p><span id="more-206"></span></p>
<p>とりあえず自分が間違っていたのが以下。</p>
<div id="sample">css({&#8220;&#8216;backgroundImage&#8217;:&#8221;  + Img + ? </div>
<p>正しいのはコレ・・・</p>
<div id="sample">css({&#8216;backgroundImage&#8217;: Img ?</div>
<p>何とか動くようになったのが、以下のサンプル。</p>
<div id="sample">
$(&#8220;li&#8221;).each(function(i){<br />
var Img = &#8216;url(&#8220;listbg&#8217; + i + &#8216;\.gif&#8221;)&#8217;;<br />
$(this).css({&#8216;backgroundImage&#8217;: Img ,&#8217;backgroundRepeat&#8217;:'no-repeat&#8217;,'backgroundPosition&#8217;:&#8217;0px 0px&#8217;});<br />
});
</div>
<p>リストに個別の背景を使ってアイコン化したかったんです。<br />
とりあえず、うまくいったので、備忘録！！！</p>
]]></content:encoded>
			<wfw:commentRss>http://retoucher.jp/archives/206/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

