<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>xhtml &amp; css</title>
	
	<link>http://xhtml.kiev.ua</link>
	<description>Блог про верстку и CSS. Примеры html кода и интересные приемы.</description>
	<lastBuildDate>Sun, 22 Aug 2010 06:55:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/xhtmlkievua" /><feedburner:info uri="xhtmlkievua" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Фиксим «корявый» background</title>
		<link>http://feedproxy.google.com/~r/xhtmlkievua/~3/5V4MclVXp_w/</link>
		<comments>http://xhtml.kiev.ua/2010/08/22/fiksim-koryavyj-background/#comments</comments>
		<pubDate>Sun, 22 Aug 2010 06:52:49 +0000</pubDate>
		<dc:creator>pulev</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[hints]]></category>
		<category><![CDATA[background]]></category>

		<guid isPermaLink="false">http://xhtml.kiev.ua/?p=196</guid>
		<description><![CDATA[Ух уж&#160;эти метросексуалы дизайна и вэб&#160;дизайна! Ранее я&#160;уже поднимал тему&#160;background&#39;а. Все наверно замечали как&#160;бэк налазит на края блоков со скругленными краями... вам тоже на нравится это?&#160; Решение есть!&#160; .back &#123; -webkit-background-clip: padding-box; -moz-background-clip: padding-box; &#125; Если использовать сокращенную форму для других свойств фона, то&#160;это свойство должно быть после&#160;него. Больше о доступных значений для свойства&#160;здесь. Источник:&#160;http://tumble.sneak.co.nz/post/928998513/fixing-the-background-bleed]]></description>
			<content:encoded><![CDATA[<p>Ух уж&nbsp;эти метросексуалы дизайна и вэб&nbsp;дизайна!<br />
<span id="more-196"></span><br />
Ранее я&nbsp;уже поднимал тему&nbsp;<a href="http://xhtml.kiev.ua/tag/background/">background</a>&#39;а.</p>
<p>Все наверно замечали как&nbsp;бэк налазит на края блоков со скругленными краями... вам тоже на нравится это?&nbsp;</p>
<p>Решение есть!&nbsp;</p>
<p><img src="http://xhtml.kiev.ua/wp-content/uploads/2010/08/tumblr_l6wr91eqBt1qz6hvj.png" alt="" title="background clip" width="500" height="300" class="alignnone size-full wp-image-197" /></p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.back</span> <span style="color: #00AA00;">&#123;</span>
  -webkit-background-<span style="color: #000000; font-weight: bold;">clip</span><span style="color: #00AA00;">:</span> padding-box<span style="color: #00AA00;">;</span> 
  -moz-background-<span style="color: #000000; font-weight: bold;">clip</span><span style="color: #00AA00;">:</span> padding-box<span style="color: #00AA00;">;</span> 
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Если использовать сокращенную форму для других свойств фона, то&nbsp;это свойство должно быть после&nbsp;него.</p>
<p>Больше о доступных значений для свойства&nbsp;<a href="http://www.css3.info/preview/background-origin-and-background-clip/">здесь</a>.</p>
<p>Источник:&nbsp;<a href="http://tumble.sneak.co.nz/post/928998513/fixing-the-background-bleed">http://tumble.sneak.co.nz/post/928998513/fixing-the-background-bleed</a></p>
<img src="http://feeds.feedburner.com/~r/xhtmlkievua/~4/5V4MclVXp_w" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://xhtml.kiev.ua/2010/08/22/fiksim-koryavyj-background/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://xhtml.kiev.ua/2010/08/22/fiksim-koryavyj-background/</feedburner:origLink></item>
		<item>
		<title>Красивый эффект наведения с помощью CSS и jQuery</title>
		<link>http://feedproxy.google.com/~r/xhtmlkievua/~3/UvpG8PPF3Ck/</link>
		<comments>http://xhtml.kiev.ua/2010/07/30/krasivyj-effekt-navedeniya-s-pomoshhyu-css-i-jquery/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 10:06:25 +0000</pubDate>
		<dc:creator>pulev</dc:creator>
				<category><![CDATA[hints]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[hover]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://xhtml.kiev.ua/?p=188</guid>
		<description><![CDATA[Очень красивый эффект при наведении на&#160;картинку... Все очень легко и&#160;просто! Верстка: &#60;ul&#62; &#60;li&#62;&#60;img src=&#34;images/77335_4871.jpg&#34; title=&#34;Autumn Leaves&#34; /&#62;&#60;/li&#62; &#60;li&#62;&#60;img src=&#34;images/107023_5283.jpg&#34; title=&#34;Cloudy Skies&#34; /&#62;&#60;/li&#62; &#60;li&#62;&#60;img src=&#34;images/1282015_12556521.jpg&#34; title=&#34;Nice Horsy&#34; /&#62;&#60;/li&#62; &#60;li&#62;&#60;img src=&#34;images/1262387_19591724.jpg&#34; title=&#34;Grassy Meadows&#34; /&#62;&#60;/li&#62; &#60;li&#62;&#60;img src=&#34;images/220121_3233.jpg&#34; title=&#34;Jigsaw Pieces&#34; /&#62;&#60;/li&#62; &#60;li&#62;&#60;img src=&#34;images/1282209_96954111.jpg&#34; title=&#34;Retro Groove&#34; /&#62;&#60;/li&#62; &#60;/ul&#62; Стили&#160;css: div.wrapper&#123;width:218px; height:218px; overflow:hidden; position:relative; &#125; div.caption &#123;position:relative; text-align:center; padding:55px 15px&#125; Javascript:]]></description>
			<content:encoded><![CDATA[<p>Очень красивый эффект при наведении на&nbsp;картинку...<br />
<span id="more-188"></span><br />
Все очень легко и&nbsp;просто!</p>
<p>Верстка:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;images/77335_4871.jpg&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Autumn Leaves&quot;</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;images/107023_5283.jpg&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Cloudy Skies&quot;</span>  <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;images/1282015_12556521.jpg&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Nice Horsy&quot;</span>  <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;images/1262387_19591724.jpg&quot;</span>  <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Grassy Meadows&quot;</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;images/220121_3233.jpg&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Jigsaw Pieces&quot;</span>  <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;images/1282209_96954111.jpg&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Retro Groove&quot;</span>  <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span></pre></div></div>

<p>Стили&nbsp;css:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">div<span style="color: #6666ff;">.wrapper</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">218px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">218px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span><span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>  <span style="color: #00AA00;">&#125;</span>
div<span style="color: #6666ff;">.caption</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span><span style="color: #993333;">center</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">55px</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Javascript:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">&lt;script type=&quot;text/javascript&quot; src=&quot;http://jqueryjs.googlecode.com/files/jquery-1.3.1.js&quot;&gt;&lt;/script&gt;
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>									
		<span style="color: #003366; font-weight: bold;">var</span> thumbs <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;ul li img&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>		
&nbsp;
		<span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span> ii <span style="color: #339933;">=</span> thumbs.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> i <span style="color: #339933;">&lt;</span> ii<span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>thumbs<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">title</span> <span style="color: #339933;">&amp;&amp;</span> thumbs<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">title</span>.<span style="color: #660066;">length</span> <span style="color: #339933;">&gt;</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span>
			<span style="color: #009900;">&#123;</span>			
				<span style="color: #003366; font-weight: bold;">var</span> imgtitle <span style="color: #339933;">=</span> thumbs<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">title</span><span style="color: #339933;">;</span>		
				$<span style="color: #009900;">&#40;</span>thumbs<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">wrap</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;div class=&quot;wrapper&quot; /&gt;'</span><span style="color: #009900;">&#41;</span>.				
				<span style="color: #660066;">after</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;div class=<span style="color: #000099; font-weight: bold;">\'</span>caption<span style="color: #000099; font-weight: bold;">\'</span>&gt;'</span> <span style="color: #339933;">+</span> imgtitle <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&lt;/div&gt;'</span><span style="color: #009900;">&#41;</span>.
				<span style="color: #660066;">removeAttr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'title'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #009900;">&#125;</span>					
		<span style="color: #009900;">&#125;</span>
&nbsp;
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.wrapper'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hover</span><span style="color: #009900;">&#40;</span>
		<span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'img'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>opacity<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;.6&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">300</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>		
			$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.caption'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>top<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;-85px&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">300</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>			
		<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> 
		<span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'img'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>opacity<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;1.0&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">300</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>					
			$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.caption'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>top<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;85px&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">100</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>		
		<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>			
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Результат:<br />
<img src="http://xhtml.kiev.ua/wp-content/uploads/2010/07/pretty-hovers2.jpg" alt="" title="pretty-hovers2" width="576" height="388" class="alignnone size-full wp-image-189" /></p>
<p>Все это можно легко привести к <a href="http://demo.fearlessflyer.com/html/demo/pretty-hovers/">такому внешнему&nbsp;виду</a>.</p>
<p>Источник:&nbsp;<a href="http://fearlessflyer.com/2010/06/pretty-hover-effects-with-css-and-jquery/">http://fearlessflyer.com/2010/06/pretty-hover-effects-with-css-and-jquery/</a></p>
<img src="http://feeds.feedburner.com/~r/xhtmlkievua/~4/UvpG8PPF3Ck" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://xhtml.kiev.ua/2010/07/30/krasivyj-effekt-navedeniya-s-pomoshhyu-css-i-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://xhtml.kiev.ua/2010/07/30/krasivyj-effekt-navedeniya-s-pomoshhyu-css-i-jquery/</feedburner:origLink></item>
		<item>
		<title>CSS3 Background Images</title>
		<link>http://feedproxy.google.com/~r/xhtmlkievua/~3/nz1erlL3B1I/</link>
		<comments>http://xhtml.kiev.ua/2010/07/30/css3-background-images/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 09:10:17 +0000</pubDate>
		<dc:creator>pulev</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[hints]]></category>
		<category><![CDATA[background]]></category>
		<category><![CDATA[css3]]></category>

		<guid isPermaLink="false">http://xhtml.kiev.ua/?p=186</guid>
		<description><![CDATA[Сделать изображение фоном без javascript на весь фон?&#160;Легко! Есть методы с&#160;js... я ранее писал про скейлинг картинок, но есть и css метод, хоть и&#160;не везде&#160;работает! .back &#123; background-image: url&#40;back.jpg&#41;; background-repeat:no-repeat; background-position:center center; -o-background-size: 100% 100%, auto; -moz-background-size: 100% 100%, auto; -webkit-background-size: 100% 100%, auto; background-size: 100% 100%, auto; &#125; Данный метод будет работать в последних]]></description>
			<content:encoded><![CDATA[<p>Сделать изображение фоном без javascript на весь фон?&nbsp;Легко!<br />
<span id="more-186"></span><br />
Есть методы с&nbsp;js... я ранее писал про <a href="http://xhtml.kiev.ua/2010/06/24/tyanem-kartinki-ili-skejling-eto-prosto/">скейлинг картинок</a>, но есть и css метод, хоть и&nbsp;не везде&nbsp;работает!</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.back</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">back.jpg</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">background-repeat</span><span style="color: #3333ff;">:no-</span>repeat<span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #3333ff;">:<span style="color: #993333;">center</span> </span>center<span style="color: #00AA00;">;</span>
  -o-background-<span style="color: #000000; font-weight: bold;">size</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">,</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
  -moz-background-<span style="color: #000000; font-weight: bold;">size</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">,</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
  -webkit-background-<span style="color: #000000; font-weight: bold;">size</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">,</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
  background-<span style="color: #000000; font-weight: bold;">size</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span> <span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">,</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Данный метод будет работать в последних Firefox, Safari, Chrome и&nbsp;Opera, все остальные браузеры будут видеть реальное изображение в фоне по центру&nbsp;блока.</p>
<p>Источник:&nbsp;<a href="http://www.cssplay.co.uk/boxes/css3-background.html">http://www.cssplay.co.uk/boxes/css3-background.html</a></p>
<img src="http://feeds.feedburner.com/~r/xhtmlkievua/~4/nz1erlL3B1I" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://xhtml.kiev.ua/2010/07/30/css3-background-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://xhtml.kiev.ua/2010/07/30/css3-background-images/</feedburner:origLink></item>
		<item>
		<title>Простой jQuery Tooltip Plugin</title>
		<link>http://feedproxy.google.com/~r/xhtmlkievua/~3/sV08kLWvGsE/</link>
		<comments>http://xhtml.kiev.ua/2010/07/19/prostoj-jquery-tooltip-plugin/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 08:16:38 +0000</pubDate>
		<dc:creator>pulev</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[hints]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[tooltip]]></category>

		<guid isPermaLink="false">http://xhtml.kiev.ua/?p=179</guid>
		<description><![CDATA[Наткнулся на очень простой и удобный плагин для подсказок... jQuery Tooltip&#160;Plugin... Часто бывает необходимость выводить подсказку... стандартные способы не&#160;так хороши как хотелось&#160;бы... выход&#160;есть: &#60;link rel=&#34;stylesheet&#34; type=&#34;text/css&#34; href=&#34;colortip-1.0/colortip-1.0-jquery.css&#34;/&#62; &#60;script type=&#34;text/javascript&#34; src=&#34;http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js&#34;&#62;&#60;/script&#62; &#60;script type=&#34;text/javascript&#34; src=&#34;colortip-1.0/colortip-1.0-jquery.js&#34;&#62;&#60;/script&#62; &#60;script type=&#34;text/javascript&#34; src=&#34;script.js&#34;&#62;&#60;/script&#62; Готово. Источник:&#160;http://tutorialzine.com/2010/07/colortips-jquery-tooltip-plugin/]]></description>
			<content:encoded><![CDATA[<p>Наткнулся на очень простой и удобный плагин для подсказок... jQuery Tooltip&nbsp;Plugin...<br />
<span id="more-179"></span><br />
Часто бывает необходимость выводить подсказку... стандартные способы не&nbsp;так хороши как хотелось&nbsp;бы... выход&nbsp;есть:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">link</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;stylesheet&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;colortip-1.0/colortip-1.0-jquery.css&quot;</span><span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span> 
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;colortip-1.0/colortip-1.0-jquery.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;script.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></pre></div></div>

<p>Готово.<br />
<img src="http://xhtml.kiev.ua/wp-content/uploads/2010/07/color-tooltips.jpg" alt="" title="color-tooltips" width="480" height="193" class="alignleft size-full wp-image-182" /></p>
<p>Источник:&nbsp;<a href="http://tutorialzine.com/2010/07/colortips-jquery-tooltip-plugin/">http://tutorialzine.com/2010/07/colortips-jquery-tooltip-plugin/</a></p>
<img src="http://feeds.feedburner.com/~r/xhtmlkievua/~4/sV08kLWvGsE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://xhtml.kiev.ua/2010/07/19/prostoj-jquery-tooltip-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://xhtml.kiev.ua/2010/07/19/prostoj-jquery-tooltip-plugin/</feedburner:origLink></item>
		<item>
		<title>CSS3PIE — border-radius, box-shadow для ИЕ</title>
		<link>http://feedproxy.google.com/~r/xhtmlkievua/~3/osp_ZABjhcw/</link>
		<comments>http://xhtml.kiev.ua/2010/07/14/css3pie-border-radius-box-shadow-dlya-ie/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 11:18:35 +0000</pubDate>
		<dc:creator>pulev</dc:creator>
				<category><![CDATA[hints]]></category>
		<category><![CDATA[разное]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[ie]]></category>

		<guid isPermaLink="false">http://xhtml.kiev.ua/?p=176</guid>
		<description><![CDATA[Появилась альтернтива ie-css3.htc, добавляющего IE поддержку теней от блока и текста и уголков&#160;CSS3. На данный момент в CSS3PIE&#160;поддерживаются: &#8212;&#160;border-radius. &#8212;&#160;box-shadow. &#8212;&#160;border-image. &#8212; несколько&#160;background. &#8212; линейный градиент как&#160;фон. Планируется поддержка других&#160;возможностей. Источник:&#160;http://css3pie.com/]]></description>
			<content:encoded><![CDATA[<p>Появилась альтернтива ie-css3.htc, добавляющего IE поддержку теней от блока и текста и уголков&nbsp;CSS3.<br />
<span id="more-176"></span><br />
На данный момент в CSS3PIE&nbsp;поддерживаются:<br />
&mdash;&nbsp;border-radius.<br />
&mdash;&nbsp;box-shadow.<br />
&mdash;&nbsp;border-image.<br />
&mdash; несколько&nbsp;background.<br />
&mdash; линейный градиент как&nbsp;фон.</p>
<p>Планируется поддержка других&nbsp;возможностей.</p>
<p>Источник:&nbsp;<a href="http://css3pie.com/">http://css3pie.com/</a></p>
<img src="http://feeds.feedburner.com/~r/xhtmlkievua/~4/osp_ZABjhcw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://xhtml.kiev.ua/2010/07/14/css3pie-border-radius-box-shadow-dlya-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://xhtml.kiev.ua/2010/07/14/css3pie-border-radius-box-shadow-dlya-ie/</feedburner:origLink></item>
		<item>
		<title>Закругленные уголки у картинок с помощью jQuery</title>
		<link>http://feedproxy.google.com/~r/xhtmlkievua/~3/69UelCV0hbE/</link>
		<comments>http://xhtml.kiev.ua/2010/07/12/zakruglennye-ugolki-u-kartinok-s-pomoshhyu-jquery/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 13:24:53 +0000</pubDate>
		<dc:creator>pulev</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[hints]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[border-radius]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://xhtml.kiev.ua/?p=166</guid>
		<description><![CDATA[Недавно была необходимость сделать круглые уголки у картинки... повозился... отказался от идеи не найдя хорошего&#160;решения... Случайно нашел оч. хороший&#160;способ... Хочется вот такой красоты после применения border-radius и&#160;box-shadow: А&#160;получаем: Есть небольшой трюк для&#160;фикса: &#60;span class=&#34;rounded-img&#34; style=&#34;background: url(img/thumb1.jpg) no-repeat center center; width: 70px; height: 70px;&#34;&#62; &#60;img src=&#34;img/thumb1.jpg&#34; style=&#34;opacity: 0;&#34; /&#62; &#60;/span&#62; Вокруг картинки добавляем и&#160;на него вешаем]]></description>
			<content:encoded><![CDATA[<p>Недавно была необходимость сделать круглые уголки у картинки... повозился... отказался от идеи не найдя хорошего&nbsp;решения...<br />
<span id="more-166"></span><br />
Случайно нашел оч. хороший&nbsp;способ...</p>
<p>Хочется вот такой красоты после применения border-radius и&nbsp;box-shadow:</p>
<div><img src="http://xhtml.kiev.ua/wp-content/uploads/2010/07/sample-rounded-images.gif" alt="" title="sample-rounded-images" width="470" height="120" class="size-full wp-image-167" /></div>
<p>А&nbsp;получаем:</p>
<div><img src="http://xhtml.kiev.ua/wp-content/uploads/2010/07/display-problems.gif" alt="" title="display-problems" width="470" height="234" class="size-full wp-image-168" /></div>
<p>Есть небольшой трюк для&nbsp;фикса:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">span</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;rounded-img&quot;</span> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;background: url(img/thumb1.jpg) no-repeat center center; width: 70px; height: 70px;&quot;</span>&gt;</span> 
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;img/thumb1.jpg&quot;</span> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;opacity: 0;&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span> 
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;</span></pre></div></div>

<p>Вокруг картинки добавляем <span></span> и&nbsp;на него вешаем background саму картинку, а оригинал скрываем: <a href="http://xhtml.kiev.ua/2009/02/03/opacity/">opacity</a>:&nbsp;0.</p>
<p>Для упрощения стоит воспользоваться&nbsp;jQuery:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;img/thumb1.jpg&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;rounded-img&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span> 
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;img/thumb2.gif&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;rounded-img2&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span></pre></div></div>

<p>Стили:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* rounded image styles */</span>
<span style="color: #6666ff;">.rounded-img</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> inline-<span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">solid</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
	-webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
	-moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
	border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
	-webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #933;">3px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> .4<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	-moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #933;">3px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> .4<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	box-shadow<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #933;">3px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> .4<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.rounded-img2</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> inline-<span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	-webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
	-moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
	border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
	-webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #933;">5px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> .5<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #cc66cc;">0</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> .9<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">-1px</span> <span style="color: #cc66cc;">0</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> .6<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	-moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #933;">5px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> .5<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #cc66cc;">0</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> .9<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">-1px</span> <span style="color: #cc66cc;">0</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> .6<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #933;">5px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> .5<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #cc66cc;">0</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> .9<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">-1px</span> <span style="color: #cc66cc;">0</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> .6<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Javascript:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">&lt;script type=&quot;text/javascript&quot; src=&quot;jquery-1.4.2.min.js&quot;&gt;&lt;/script&gt;
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
&nbsp;
  $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.rounded-img, .rounded-img2&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">load</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">wrap</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
      <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #3366CC;">'&lt;span class=&quot;'</span> <span style="color: #339933;">+</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'class'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&quot; style=&quot;background:url('</span> <span style="color: #339933;">+</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'src'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">') no-repeat center center; width: '</span> <span style="color: #339933;">+</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">width</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">'px; height: '</span> <span style="color: #339933;">+</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">height</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">'px;&quot; /&gt;'</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;opacity&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;0&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Результат:</p>
<div><img src="http://xhtml.kiev.ua/wp-content/uploads/2010/07/sample-usages.gif" alt="" title="sample-usages" width="470" height="234" class="size-full wp-image-170" /></div>
<p>
Источник:&nbsp;<a href="http://www.webdesignerwall.com/tutorials/css3-rounded-image-with-jquery/">http://www.webdesignerwall.com/tutorials/css3-rounded-image-with-jquery/</a></p>
<img src="http://feeds.feedburner.com/~r/xhtmlkievua/~4/69UelCV0hbE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://xhtml.kiev.ua/2010/07/12/zakruglennye-ugolki-u-kartinok-s-pomoshhyu-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://xhtml.kiev.ua/2010/07/12/zakruglennye-ugolki-u-kartinok-s-pomoshhyu-jquery/</feedburner:origLink></item>
		<item>
		<title>Dragdealer JS</title>
		<link>http://feedproxy.google.com/~r/xhtmlkievua/~3/cpIfTPj3hZI/</link>
		<comments>http://xhtml.kiev.ua/2010/06/24/dragdealer-js/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 09:25:44 +0000</pubDate>
		<dc:creator>pulev</dc:creator>
				<category><![CDATA[js]]></category>
		<category><![CDATA[drag]]></category>

		<guid isPermaLink="false">http://xhtml.kiev.ua/?p=163</guid>
		<description><![CDATA[Тянем все! Хороший компонент для перетягивания... работает как&#160;на компе так и на&#160;iPhone. Подключаем&#160;javascript: &#60;script type=&#34;text/javascript&#34; src=&#34;/js/dragdealer-main.js&#34;&#62;&#60;/script&#62; &#60;script&#62; window.onload = function&#40;&#41; &#123; new Dragdealer&#40;'simple-slider'&#41;; &#125; &#60;/script&#62; Ну и сам&#160;слайдер: &#60;div id=&#34;my-slider&#34; class=&#34;dragdealer&#34;&#62; &#60;div class=&#34;red-bar handle&#34;&#62;drag me&#60;/div&#62; &#60;/div&#62; Готово. У скрипта очень много настроек и&#160;фишек. Источник:&#160;http://code.ovidiu.ch/dragdealer/]]></description>
			<content:encoded><![CDATA[<p>Тянем все! Хороший компонент для перетягивания... работает как&nbsp;на компе так и на&nbsp;iPhone.<br />
<span id="more-163"></span><br />
Подключаем&nbsp;javascript:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span> src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;/js/dragdealer-main.js&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span> 
<span style="color: #339933;">&lt;</span>script<span style="color: #339933;">&gt;</span>
window.<span style="color: #000066;">onload</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #003366; font-weight: bold;">new</span> Dragdealer<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'simple-slider'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Ну и сам&nbsp;слайдер:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;my-slider&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;dragdealer&quot;</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;red-bar handle&quot;</span>&gt;</span>drag me<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div>

<p>Готово. У скрипта очень много настроек и&nbsp;фишек.</p>
<p>Источник:&nbsp;<a href="http://code.ovidiu.ch/dragdealer/">http://code.ovidiu.ch/dragdealer/</a></p>
<img src="http://feeds.feedburner.com/~r/xhtmlkievua/~4/cpIfTPj3hZI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://xhtml.kiev.ua/2010/06/24/dragdealer-js/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://xhtml.kiev.ua/2010/06/24/dragdealer-js/</feedburner:origLink></item>
		<item>
		<title>Тянем картинки или скейлинг это просто!</title>
		<link>http://feedproxy.google.com/~r/xhtmlkievua/~3/Rfll_2pEJno/</link>
		<comments>http://xhtml.kiev.ua/2010/06/24/tyanem-kartinki-ili-skejling-eto-prosto/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 09:10:12 +0000</pubDate>
		<dc:creator>pulev</dc:creator>
				<category><![CDATA[hints]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[background]]></category>
		<category><![CDATA[scale]]></category>

		<guid isPermaLink="false">http://xhtml.kiev.ua/?p=161</guid>
		<description><![CDATA[Хотите чтоб картинка&#160;или бекграунд занимала все пространство?&#160;Легко! Подключаем&#160;яваскрипт: &#60;script type=&#34;text/javascript&#34; src=&#34;/js/jquery.maximage.js&#34;&#62;&#60;/script&#62; &#60;script&#62; $&#40;function&#40;&#41;&#123; jQuery&#40;'img.scale'&#41;.maxImage&#40;&#123; isBackground: true, overflow: 'auto' &#125;&#41;; &#125;&#41;; &#60;/script&#62; Ну и собственно сама картинка на&#160;странице: &#60;img src=&#34;/images/scale.png&#34; class=&#34;scale&#34; alt=&#34;&#34; /&#62; Все&#160;) Источник:&#160;http://www.aaronvanderzwan.com/maximage/]]></description>
			<content:encoded><![CDATA[<p>Хотите чтоб картинка&nbsp;или бекграунд занимала все пространство?&nbsp;Легко!<br />
<span id="more-161"></span><br />
Подключаем&nbsp;яваскрипт:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span> src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;/js/jquery.maximage.js&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>script<span style="color: #339933;">&gt;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
      jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'img.scale'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">maxImage</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
        isBackground<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span>
        overflow<span style="color: #339933;">:</span> <span style="color: #3366CC;">'auto'</span>
       <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>                       
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Ну и собственно сама картинка на&nbsp;странице:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;/images/scale.png&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;scale&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span></pre></div></div>

<p>Все&nbsp;)</p>
<p>Источник:&nbsp;<a href="http://www.aaronvanderzwan.com/maximage/">http://www.aaronvanderzwan.com/maximage/</a></p>
<img src="http://feeds.feedburner.com/~r/xhtmlkievua/~4/Rfll_2pEJno" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://xhtml.kiev.ua/2010/06/24/tyanem-kartinki-ili-skejling-eto-prosto/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://xhtml.kiev.ua/2010/06/24/tyanem-kartinki-ili-skejling-eto-prosto/</feedburner:origLink></item>
		<item>
		<title>Горизонтальное выпадающее меню</title>
		<link>http://feedproxy.google.com/~r/xhtmlkievua/~3/eK_9KtrELBk/</link>
		<comments>http://xhtml.kiev.ua/2010/04/14/horizontal-sub-nav/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 11:38:42 +0000</pubDate>
		<dc:creator>pulev</dc:creator>
				<category><![CDATA[hints]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[dropdown]]></category>
		<category><![CDATA[menu]]></category>

		<guid isPermaLink="false">http://xhtml.kiev.ua/?p=150</guid>
		<description><![CDATA[Добавить на сайт выпадающее горизонтальное меню очень&#160;просто... Простое и быстрое выпадающее&#160;меню... Меню: &#60;ul id=&#34;topnav&#34;&#62; &#60;li&#62;&#60;a href=&#34;#&#34;&#62;Link&#60;/a&#62;&#60;/li&#62; &#60;li&#62; &#60;a href=&#34;#&#34;&#62;Link&#60;/a&#62; &#60;!--Subnav Starts Here--&#62; &#60;span&#62; &#60;a href=&#34;#&#34;&#62;Subnav Link&#60;/a&#62; &#124; &#60;a href=&#34;#&#34;&#62;Subnav Link&#60;/a&#62; &#124; &#60;a href=&#34;#&#34;&#62;Subnav Link&#60;/a&#62; &#60;/span&#62; &#60;!--Subnav Ends Here--&#62; &#60;/li&#62; &#60;li&#62;&#60;a href=&#34;#&#34;&#62;Link&#60;/a&#62;&#60;/li&#62; &#60;/ul&#62; Оформление: ul#topnav &#123; margin: 0; padding: 0; float: left; width: 970px; list-style: none;]]></description>
			<content:encoded><![CDATA[<p>Добавить на сайт выпадающее горизонтальное меню очень&nbsp;просто...<br />
<span id="more-150"></span><br />
Простое и быстрое выпадающее&nbsp;меню...</p>
<p>Меню:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;topnav&quot;</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Link<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Link<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
        <span style="color: #808080; font-style: italic;">&lt;!--Subnav Starts Here--&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">span</span>&gt;</span>
            <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Subnav Link<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span> |
            <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Subnav Link<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span> |
            <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Subnav Link<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;</span>
        <span style="color: #808080; font-style: italic;">&lt;!--Subnav Ends Here--&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Link<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span></pre></div></div>

<p>Оформление:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">ul<span style="color: #cc00cc;">#topnav</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">970px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*--Set relative positioning on the unordered list itself - not on the list item--*/</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1.2em</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">topnav_stretch.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">repeat-x</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
ul<span style="color: #cc00cc;">#topnav</span> li <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#555</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*--Divider for each parent level links--*/</span>
<span style="color: #00AA00;">&#125;</span>
ul<span style="color: #cc00cc;">#topnav</span> li a <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#f0f0f0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
ul<span style="color: #cc00cc;">#topnav</span> li<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#1376c9</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">topnav_active.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">repeat-x</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
ul<span style="color: #cc00cc;">#topnav</span> li span <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">15px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;">35px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*--Hide by default--*/</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">970px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#1376c9</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
	<span style="color: #808080; font-style: italic;">/*--Bottom right rounded corner--*/</span>
	-moz-border-radius-bottomright<span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
	-khtml-border-radius-bottomright<span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
	-webkit-border-bottom-right-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
	<span style="color: #808080; font-style: italic;">/*--Bottom left rounded corner--*/</span>
	-moz-border-radius-bottomleft<span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
	-khtml-border-radius-bottomleft<span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
	-webkit-border-bottom-left-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
ul<span style="color: #cc00cc;">#topnav</span> li<span style="color: #3333ff;">:hover </span>span <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span> <span style="color: #808080; font-style: italic;">/*--Show subnav on hover--*/</span>
ul<span style="color: #cc00cc;">#topnav</span> li span a <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">inline</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span> <span style="color: #808080; font-style: italic;">/*--Since we declared a link style on the parent list link, we will correct it back to its original state--*/</span>
ul<span style="color: #cc00cc;">#topnav</span> li span a<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">underline</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Подключаем&nbsp;javascript:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></pre></div></div>

<p>Вызываем&nbsp;функцию:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;ul#topnav li&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hover</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #006600; font-style: italic;">//Hover over event on list item</span>
		$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> <span style="color: #3366CC;">'background'</span> <span style="color: #339933;">:</span> <span style="color: #3366CC;">'#1376c9 url(topnav_active.gif) repeat-x'</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//Add background color and image on hovered list item</span>
		$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;span&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">show</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//Show the subnav</span>
	<span style="color: #009900;">&#125;</span> <span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #006600; font-style: italic;">//on hover out...</span>
		$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> <span style="color: #3366CC;">'background'</span> <span style="color: #339933;">:</span> <span style="color: #3366CC;">'none'</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//Ditch the background</span>
		$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;span&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//Hide the subnav</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Готово:<br />
<a href="http://xhtml.kiev.ua/wp-content/uploads/2010/04/preview.gif"><img src="http://xhtml.kiev.ua/wp-content/uploads/2010/04/preview-300x104.gif" alt="" title="preview" width="300" height="104" class="alignleft size-medium wp-image-152" /></a></p>
<img src="http://feeds.feedburner.com/~r/xhtmlkievua/~4/eK_9KtrELBk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://xhtml.kiev.ua/2010/04/14/horizontal-sub-nav/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://xhtml.kiev.ua/2010/04/14/horizontal-sub-nav/</feedburner:origLink></item>
		<item>
		<title>Слайдер</title>
		<link>http://feedproxy.google.com/~r/xhtmlkievua/~3/G_2JAddgbU8/</link>
		<comments>http://xhtml.kiev.ua/2010/04/14/slider/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 11:23:59 +0000</pubDate>
		<dc:creator>pulev</dc:creator>
				<category><![CDATA[hints]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[slider]]></category>

		<guid isPermaLink="false">http://xhtml.kiev.ua/?p=148</guid>
		<description><![CDATA[Листать картинки на сайте очень&#160;просто... Подключаем javascript и&#160;css: &#60;link rel=&#34;stylesheet&#34; href=&#34;nivo-slider.css&#34; type=&#34;text/css&#34; media=&#34;screen&#34; /&#62; &#60;script src=&#34;http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js&#34; type=&#34;text/javascript&#34;&#62;&#60;/script&#62; &#60;script src=&#34;jquery.nivo.slider.pack.js&#34; type=&#34;text/javascript&#34;&#62;&#60;/script&#62; Сам&#160;слайдер: &#60;div id=&#34;slider&#34;&#62; &#60;img src=&#34;images/slide1.jpg&#34; alt=&#34;&#34; /&#62; &#60;a href=&#34;http://dev7studios.com&#34;&#62;&#60;img src=&#34;images/slide2.jpg&#34; alt=&#34;&#34; /&#62;&#60;/a&#62; &#60;img src=&#34;images/slide3.jpg&#34; alt=&#34;&#34; title=&#34;This is an example of a caption&#34; /&#62; &#60;img src=&#34;images/slide4.jpg&#34; alt=&#34;&#34; /&#62; &#60;/div&#62; Вызываем функцию&#160;слайдера: &#60;script type=&#34;text/javascript&#34;&#62; $&#40;window&#41;.load&#40;function&#40;&#41; &#123; $&#40;'#slider'&#41;.nivoSlider&#40;&#41;;]]></description>
			<content:encoded><![CDATA[<p>Листать картинки на сайте очень&nbsp;просто...<br />
<span id="more-148"></span><br />
Подключаем javascript и&nbsp;css:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">link</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;stylesheet&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;nivo-slider.css&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span> <span style="color: #000066;">media</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;screen&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;jquery.nivo.slider.pack.js&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></pre></div></div>

<p>Сам&nbsp;слайдер:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;slider&quot;</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;images/slide1.jpg&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://dev7studios.com&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;images/slide2.jpg&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;images/slide3.jpg&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;This is an example of a caption&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;images/slide4.jpg&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div>

<p>Вызываем функцию&nbsp;слайдера:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
$<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">load</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#slider'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">nivoSlider</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Скрипт имеет много эффектов листания и гибкие&nbsp;настройки.</p>
<p>Источник:&nbsp;<a href="http://nivo.dev7studios.com/">http://nivo.dev7studios.com/</a></p>
<img src="http://feeds.feedburner.com/~r/xhtmlkievua/~4/G_2JAddgbU8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://xhtml.kiev.ua/2010/04/14/slider/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://xhtml.kiev.ua/2010/04/14/slider/</feedburner:origLink></item>
	</channel>
</rss>
