<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: xhtml code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Fri, 25 Jul 2008 02:17:47 GMT</pubDate>
    <description>DZone Snippets: xhtml code</description>
    <item>
      <title>Disable auto complete in input form</title>
      <link>http://snippets.dzone.com/posts/show/5642</link>
      <description>Disable auto complete in input form.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;script type="text/javascript"&gt;&lt;br /&gt;&lt;br /&gt;window.onload = function() {&lt;br /&gt;	for(var i = 0, l = document.getElementsByTagName('input').length; i &lt; l; i++) {&lt;br /&gt;		if(document.getElementsByTagName('input').item(i).type == 'text') {&lt;br /&gt;			document.getElementsByTagName('input').item(i).setAttribute('autocomplete', 'off');&lt;br /&gt;		};&lt;br /&gt;	};&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;&lt;script&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.ab-d.fr"&gt;Source AB-D: &lt;/a&gt;&lt;a href="http://www.ab-d.fr/date/2008-06-14/"&gt;Disable autocomplete in input type="text"&lt;/a&gt;</description>
      <pubDate>Fri, 13 Jun 2008 22:10:57 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/5642</guid>
      <author>ki4ngel (Benoit Asselin)</author>
    </item>
    <item>
      <title>Selector :target in CSS 3</title>
      <link>http://snippets.dzone.com/posts/show/5155</link>
      <description>&lt;code&gt;&lt;br /&gt;&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;br /&gt;&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"&lt;br /&gt;	"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"&gt;&lt;br /&gt;&lt;br /&gt;&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"&gt;&lt;br /&gt;&lt;head&gt;&lt;br /&gt;	&lt;title&gt;CSS3 *:target&lt;/title&gt;&lt;br /&gt;	&lt;br /&gt;	&lt;style type="text/css" media="screen"&gt;&lt;br /&gt;	&lt;br /&gt;	h1:hover { text-decoration: underline; } /* CSS 1 et 2 */&lt;br /&gt;	h1:target { background-color: #ff6600; } /* CSS 3 */&lt;br /&gt;	&lt;br /&gt;	&lt;/style&gt;&lt;br /&gt;&lt;/head&gt;&lt;br /&gt;&lt;br /&gt;&lt;body&gt;&lt;br /&gt;	&lt;br /&gt;	&lt;h1 id="title-1"&gt;Title n&#176;1&lt;/h1&gt;&lt;br /&gt;	&lt;p&gt;CSS...&lt;/p&gt;&lt;br /&gt;	&lt;p&gt;CSS...&lt;/p&gt;&lt;br /&gt;	&lt;p&gt;CSS...&lt;/p&gt;&lt;br /&gt;	&lt;hr /&gt;&lt;br /&gt;	&lt;br /&gt;	&lt;h1 id="title-2"&gt;Title n&#176;2&lt;/h1&gt;&lt;br /&gt;	&lt;p&gt;CSS...&lt;/p&gt;&lt;br /&gt;	&lt;p&gt;CSS...&lt;/p&gt;&lt;br /&gt;	&lt;p&gt;CSS...&lt;/p&gt;&lt;br /&gt;	&lt;hr /&gt;&lt;br /&gt;	&lt;br /&gt;	&lt;p&gt;&lt;a href="#title-1"&gt;Title n&#176;1&lt;/a&gt; | &lt;a href="#title-2"&gt;Title n&#176;2&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;	&lt;br /&gt;&lt;/body&gt;&lt;br /&gt;&lt;/html&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.ab-d.fr/"&gt;Source: AB-D.fr&lt;/a&gt;</description>
      <pubDate>Tue, 19 Feb 2008 20:59:36 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/5155</guid>
      <author>ki4ngel (Benoit Asselin)</author>
    </item>
    <item>
      <title>Position : fixed in MSIE6</title>
      <link>http://snippets.dzone.com/posts/show/5132</link>
      <description>&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;br /&gt;&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"&lt;br /&gt;	"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"&gt;&lt;br /&gt;&lt;br /&gt;&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr"&gt;&lt;br /&gt;&lt;head&gt;&lt;br /&gt;	&lt;title&gt;"position: fixed" compatible Microsoft Internet Explorer 6&lt;/title&gt;&lt;br /&gt;	&lt;br /&gt;	&lt;br /&gt;	&lt;!-- Code CSS for Firefox, Safari, Opera, Internet Explorer 7... --&gt;&lt;br /&gt;	&lt;br /&gt;	&lt;style type="text/css" media="screen"&gt;&lt;br /&gt;		&lt;br /&gt;	#fixed {&lt;br /&gt;		position: fixed;&lt;br /&gt;		left: 0; top: 0; right: 0;&lt;br /&gt;		width: 100%;&lt;br /&gt;		padding: 10px; background: gray;&lt;br /&gt;	}&lt;br /&gt;	&lt;br /&gt;	&lt;/style&gt;&lt;br /&gt;	&lt;br /&gt;	&lt;br /&gt;	&lt;!-- Code CSS for Internet Explorer 6 --&gt;&lt;br /&gt;	&lt;br /&gt;	&lt;!--[if lte IE 6]&gt;&lt;br /&gt;	&lt;style type="text/css" media="screen"&gt;&lt;br /&gt;	&lt;br /&gt;	#fixed {&lt;br /&gt;		position: absolute;&lt;br /&gt;		top: expression((document.documentElement.scrollTop || document.body.scrollTop) + this.offsetHeight - this.offsetHeight);&lt;br /&gt;	}&lt;br /&gt;	&lt;br /&gt;	&lt;/style&gt;&lt;br /&gt;	&lt;![endif]--&gt;&lt;br /&gt;	&lt;br /&gt;	&lt;br /&gt;&lt;/head&gt;&lt;br /&gt;&lt;br /&gt;&lt;body&gt;&lt;br /&gt;	&lt;br /&gt;	&lt;div id="fixed"&gt;DIV in position: fixed;&lt;/div&gt;&lt;br /&gt;	&lt;br /&gt;	&lt;p&gt;Content...&lt;/p&gt;&lt;br /&gt;	&lt;p&gt;Content...&lt;/p&gt;&lt;br /&gt;	&lt;p&gt;Content...&lt;/p&gt;&lt;br /&gt;	&lt;p&gt;Content...&lt;/p&gt;&lt;br /&gt;	&lt;p&gt;Content...&lt;/p&gt;&lt;br /&gt;	&lt;p&gt;Content...&lt;/p&gt;&lt;br /&gt;	&lt;p&gt;Content...&lt;/p&gt;&lt;br /&gt;	&lt;p&gt;Content...&lt;/p&gt;&lt;br /&gt;	&lt;p&gt;Content...&lt;/p&gt;&lt;br /&gt;	&lt;p&gt;Content...&lt;/p&gt;&lt;br /&gt;	&lt;p&gt;Content...&lt;/p&gt;&lt;br /&gt;	&lt;p&gt;Content...&lt;/p&gt;&lt;br /&gt;	&lt;br /&gt;&lt;/body&gt;&lt;br /&gt;&lt;br /&gt;&lt;/html&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.ab-d.fr/"&gt;Source: Asselin Benoit Developpement, conception de sites internet&lt;/a&gt;</description>
      <pubDate>Mon, 11 Feb 2008 20:39:19 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/5132</guid>
      <author>ki4ngel (Benoit Asselin)</author>
    </item>
    <item>
      <title>Make a variable CSS</title>
      <link>http://snippets.dzone.com/posts/show/5110</link>
      <description>Page.html&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"&lt;br /&gt;	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;br /&gt;&lt;br /&gt;&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"&gt;&lt;br /&gt;&lt;head&gt;&lt;br /&gt;	&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"/&gt;&lt;br /&gt;	&lt;br /&gt;	&lt;title&gt;Variable CSS&lt;/title&gt;&lt;br /&gt;	&lt;link rel="stylesheet" type="text/css" href="style.php" /&gt;&lt;br /&gt;&lt;/head&gt;&lt;br /&gt;&lt;br /&gt;&lt;body&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;h1&gt;Title&lt;/h1&gt;&lt;br /&gt;&lt;br /&gt;&lt;p class="color-1"&gt; Text  Text  Text  &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p class="color-2"&gt; Text  Text  Text  &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p class="color-3"&gt; Text  Text  Text  &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/body&gt;&lt;br /&gt;&lt;br /&gt;&lt;/html&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Style.php&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;?php&lt;br /&gt;header('Content-Type: text/css');&lt;br /&gt;&lt;br /&gt;$color_0 = '#000000';&lt;br /&gt;$color_1 = '#ff0000';&lt;br /&gt;$color_2 = '#ff3300';&lt;br /&gt;$color_3 = '#ff6600';&lt;br /&gt;&lt;br /&gt;?&gt;&lt;br /&gt;&lt;br /&gt;* { font-family: sans-serif; }&lt;br /&gt;&lt;br /&gt;h1 {&lt;br /&gt;	padding: 5px;&lt;br /&gt;	color: &lt;?= $color_0 ?&gt;;&lt;br /&gt;	border: 5px solid &lt;?= $color_2 ?&gt;;&lt;br /&gt;	background-color: &lt;?= $color_3 ?&gt;;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;p.color-1 { color: &lt;?= $color_1 ?&gt;; }&lt;br /&gt;p.color-2 { color: &lt;?= $color_2 ?&gt;; font-weight: bold; }&lt;br /&gt;p.color-3 { color: &lt;?= $color_3 ?&gt;; font-style: italic; }&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.ab-d.fr"&gt;Source: Asselin Benoit D&#233;veloppement, cr&#233;ation de site internet amiens&lt;/a&gt;</description>
      <pubDate>Wed, 06 Feb 2008 19:02:03 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/5110</guid>
      <author>ki4ngel (Benoit Asselin)</author>
    </item>
    <item>
      <title>How to detect a browser iPhone ?</title>
      <link>http://snippets.dzone.com/posts/show/4826</link>
      <description>The browser is :&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;br /&gt;Mozilla/5.0 (iPhone; U; CPU like Mac OS X; fr) AppleWebKit/420.1 (KHTML, like Gecko) Version/3.0 Mobile/3B48b Safari/419.3&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.ab-d.fr/"&gt;Source: ab-d.fr&lt;br /&gt;Internet with iPhone&lt;br /&gt;&lt;/a&gt;</description>
      <pubDate>Thu, 29 Nov 2007 10:34:42 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4826</guid>
      <author>ki4ngel (Benoit Asselin)</author>
    </item>
    <item>
      <title>Safari 3 - Resizable Text Fields</title>
      <link>http://snippets.dzone.com/posts/show/4415</link>
      <description>With Safari 3, you can resize the TEXTAREA, but you can control this properties with CSS3.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;br /&gt;&lt;textarea cols="30" rows="10" style="resize: both;"&gt;www.AB-D.fr presents the new TEXTAREA&lt;/textarea&gt;&lt;br /&gt;&lt;br /&gt;&lt;textarea cols="30" rows="10" style="resize: horizontal;"&gt;www.AB-D.fr presents the new TEXTAREA&lt;/textarea&gt;&lt;br /&gt;&lt;br /&gt;&lt;textarea cols="30" rows="10" style="resize: vertical;"&gt;www.AB-D.fr presents the new TEXTAREA&lt;/textarea&gt;&lt;br /&gt;&lt;br /&gt;&lt;textarea cols="30" rows="10" style="resize: none;"&gt;www.AB-D.fr presents the new TEXTAREA&lt;/textarea&gt;&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.ab-d.fr/"&gt;Links:&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.apple.com/safari/"&gt;http://www.apple.com/safari/&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.w3.org/TR/css3-ui/#resize"&gt;http://www.w3.org/TR/css3-ui/#resize&lt;/a&gt;&lt;br /&gt;</description>
      <pubDate>Sun, 12 Aug 2007 07:25:38 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4415</guid>
      <author>ki4ngel (Benoit Asselin)</author>
    </item>
    <item>
      <title>IE doesn't support element.setAttritube('style')</title>
      <link>http://snippets.dzone.com/posts/show/4385</link>
      <description>&lt;code&gt;&lt;br /&gt;&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"&gt;&lt;br /&gt;&lt;html xmlns="http://www.w3.org/1999/xhtml" version="-//W3C//DTD XHTML 1.1//EN" xml:lang="fr"&gt;&lt;br /&gt;&lt;head&gt;&lt;br /&gt;&lt;br /&gt;&lt;title&gt;.setAttribute('style','');&lt;/title&gt;&lt;br /&gt;&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;script type="text/javascript"&gt;&lt;br /&gt;&lt;!--&lt;br /&gt;&lt;br /&gt;window.onload = function() {&lt;br /&gt;	if (navigator.appName == 'Microsoft Internet Explorer') {&lt;br /&gt;		document.getElementById('test').style.cssText = 'background:gray; color:white;';&lt;br /&gt;	} else {&lt;br /&gt;		/* document.getElementById('test').style.cssText = 'background:gray; color:white;'; */&lt;br /&gt;		document.getElementById('test').setAttribute('style', 'background:gray; color:white;');&lt;br /&gt;	}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;--&gt;&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;&lt;br /&gt;&lt;/head&gt;&lt;br /&gt;&lt;br /&gt;&lt;body&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id="test"&gt;document.getElementById('test').setAttribute('style', 'background:gray; color:white;')&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/body&gt;&lt;br /&gt;&lt;br /&gt;&lt;/html&gt;&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Thu, 02 Aug 2007 19:46:33 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4385</guid>
      <author>ki4ngel (Benoit Asselin)</author>
    </item>
    <item>
      <title>Another way of written "target"</title>
      <link>http://snippets.dzone.com/posts/show/4357</link>
      <description>Another way of written "target" and valid in XHTML&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.google.com/" onclick="window.open(this.href); return false;"&gt;Link&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Thu, 26 Jul 2007 17:49:17 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4357</guid>
      <author>ki4ngel (Benoit Asselin)</author>
    </item>
  </channel>
</rss>
