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

<channel>
	<title>SchmaRs World &#187; xhtml</title>
	<atom:link href="http://www.schmars-world.de/index.php/category/scriptingcoding/xhtml/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.schmars-world.de</link>
	<description></description>
	<lastBuildDate>Mon, 03 Aug 2009 23:47:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>RDFa – Web meets Desktopanwendung</title>
		<link>http://www.schmars-world.de/index.php/rdfa-web-meets-desktopanwendung-2008-10-17/</link>
		<comments>http://www.schmars-world.de/index.php/rdfa-web-meets-desktopanwendung-2008-10-17/#comments</comments>
		<pubDate>Fri, 17 Oct 2008 17:32:42 +0000</pubDate>
		<dc:creator>SchmaR</dc:creator>
				<category><![CDATA[Rund ums W3C]]></category>
		<category><![CDATA[scripting/coding]]></category>
		<category><![CDATA[xhtml]]></category>
		<category><![CDATA[RDF]]></category>
		<category><![CDATA[RDFa]]></category>
		<category><![CDATA[Webentwicklung]]></category>

		<guid isPermaLink="false">http://www.schmars-world.de/?p=118</guid>
		<description><![CDATA[W&#228;re es nicht eine sch&#246;ne Sache wenn man jemand bei StudiVZ o.&#228;. diensten kennen lernt und einfach sein Profil in eine Desktopanwendung zu verwalten von Kontakten zieht und alle relevanten Daten eingetragen sind. Ein anderes Beispiel w&#228;re, wie oft findet man Bilder im Netz &#252;ber deren Lizenz man sich nicht klar? Auch hier w&#228;re RDF [...]]]></description>
			<content:encoded><![CDATA[<p>W&#228;re es nicht eine sch&#246;ne Sache wenn man jemand bei StudiVZ o.&#228;. diensten kennen lernt und einfach sein Profil in eine <strong>Desktopanwendung </strong>zu verwalten von Kontakten zieht und alle relevanten Daten eingetragen sind. Ein anderes Beispiel w&#228;re, wie oft findet man Bilder im Netz &#252;ber deren Lizenz man sich nicht klar? Auch hier w&#228;re <strong>RDF </strong>bzw. <strong>RDFa </strong>eine wunderbare L&#246;sung.<br />
<span id="more-118"></span><br />
Der Pilotartikel der neuen Kategorie ist als eine Einleitung zu verstehen und geht vorerst nicht so sehr in die Tiefe.</p>
<p><strong>RDFa </strong>ist eine Abwandlung der Technik <strong>(RDF + xHTML)</strong> des <strong>RDF </strong>(<em><strong>Resource Description Framework</strong></em>) sowie von xHTML und dient wie der Name schon sagt zum <strong>Beschreiben von Webinhalten</strong>. Die Technik ist meiner Meinung nach ein entscheidender Schritt um das Web weiter voran zu bringen und f&#252;r den User komfortabler zu machen. Durch das <strong>RDFa </strong>wird es erm&#246;glicht das Programme die Inhalte von Webseiten effizient auslesen und verwerten k&#246;nnen.<br />
<script type="text/javascript"><!--
google_ad_client = "pub-1532263722148161";
/* Content */
google_ad_slot = "4237103192";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<h3>Die Problematik kurz erl&#228;utert</h3>
<p>An folgenden Bespiel will ich kurz den Sinn und Zweck von <strong>RDFa</strong> aufzeigen </p>
<p><a href="http://www.w3.org/TR/xhtml-rdfa-primer/diagrams/presentation-vs-semantics.png" rel="shadowbox"><img alt="RDFa in Anwendung" src="http://www.w3.org/TR/xhtml-rdfa-primer/diagrams/presentation-vs-semantics.png" title="RDFa in Anwendung" class="alignnone" width="486" height="287" /></a></p>
<p>Auf der Linken Seite sieht man was der Browser bzw. ein Programm aus <strong>(x)HTML</strong> interpretiert. Die rechte Seite stellt dar was der User sieht bzw. interpretiert.</p>
<p>Und genau <strong>an dieser L&#252;cke setzt RDFa ein</strong> durch das hinzuf&#252;gen von<strong> RDF Eigenschaften in  xHTML</strong> werden die einzelnen Elemente genauer ausgezeichnet, sodass sie von Programmen/Maschinen im Kontext lesbar werden. </p>
<p>Hier ein Beispiel:</p>
<p><strong>Ohne RDFa Auszeichnung</strong></p>
<pre class="html4strict"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ddbb00;">&amp;lt;</span>div <span style="color: #009900;"><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">&lt;span</span></a> <span style="color: #000066;">style</span>=<span style="color: #ff0000;">&quot;color: red;&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/span&gt;</span></span><span style="color: #ddbb00;">&amp;gt;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">   <span style="color: #ddbb00;">&amp;lt;</span>h2 <span style="color: #009900;"><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">&lt;span</span></a> <span style="color: #000066;">style</span>=<span style="color: #ff0000;">&quot;color: red;&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>property=&quot;dc:title&quot;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/span&gt;</span></span><span style="color: #ddbb00;">&amp;gt;</span>The trouble with Bob<span style="color: #ddbb00;">&amp;lt;</span>/h2<span style="color: #ddbb00;">&amp;gt;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">   <span style="color: #ddbb00;">&amp;lt;</span>h3 <span style="color: #009900;"><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">&lt;span</span></a> <span style="color: #000066;">style</span>=<span style="color: #ff0000;">&quot;color: red;&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>property=&quot;dc:creator&quot;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/span&gt;</span></span><span style="color: #ddbb00;">&amp;gt;</span>Alice<span style="color: #ddbb00;">&amp;lt;</span>/h3<span style="color: #ddbb00;">&amp;gt;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">   ...</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ddbb00;">&amp;lt;</span>/div<span style="color: #ddbb00;">&amp;gt;</span></div></li></ol></pre>
<p><strong>Mit RDFa Auszeichnung</strong></p>
<pre class="html4strict"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> xmlns:dc=<span style="color: #ff0000;">&quot;http://purl.org/dc/elements/1.1/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/h2.html"><span style="color: #000000; font-weight: bold;">&lt;h2</span></a> property=<span style="color: #ff0000;">&quot;dc:title&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>The trouble with Bob<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/h2&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/h3.html"><span style="color: #000000; font-weight: bold;">&lt;h3</span></a> property=<span style="color: #ff0000;">&quot;dc:creator&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Alice<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/h3&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">   ...</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li></ol></pre>
<p>Wie man an den Beispiel schon sehen kann ben&#246;tigt<strong> RDFa ein Ressourcendokument</strong> welches die <strong>RDF Eigenschaften</strong> auszeichnet, so ist aber auch gew&#228;hrleistet, das dass Framework nicht daran Krankt, dass es f&#252;r einen vom Autor gew&#252;nschten Kontext keine Auszeichnung gibt. Jeder der sich eingehender mit dieser Technik besch&#228;ftigt soll eigene Ressourcendokumente erstellen k&#246;nnen.<br />
<script type="text/javascript"><!--
google_ad_client = "pub-1532263722148161";
/* Content */
google_ad_slot = "4237103192";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
Soweit erst einmal mit dem <strong>Thema RDF</strong> werde ich mich in folgenden Artikeln noch eingehender besch&#228;ftigen. Dieser Artikel bezieht sich auf die <strong>News vom W3C</strong>: <a href="http://www.w3.org/News/2008#item171" target="_blank">„RDFa in XHTML: Syntax and Processing Is a W3C Recommendation; RDFa Primer Updated“</a> In dem Newsartikel findet ihr auch weiterf&#252;hrende Links zum Thema.</p>
<p><em>Examples (code and image) Copyright © 14 October 2008 World Wide Web Consortium, (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University). All Rights Reserved. http://www.w3.org/Consortium/Legal/2002/copyright-documents-20021231<br />
</em></p>
<img src="http://www.schmars-world.de/?ak_action=api_record_view&id=118&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.schmars-world.de/index.php/rdfa-web-meets-desktopanwendung-2008-10-17/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>CSS drop down Navigation</title>
		<link>http://www.schmars-world.de/index.php/css-drop-down-navigation-2008-09-10/</link>
		<comments>http://www.schmars-world.de/index.php/css-drop-down-navigation-2008-09-10/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 18:28:36 +0000</pubDate>
		<dc:creator>SchmaR</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[scripting/coding]]></category>
		<category><![CDATA[xhtml]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Webentwicklung]]></category>

		<guid isPermaLink="false">http://www.schmars-world.de/?p=65</guid>
		<description><![CDATA[Heute gibt es mal wieder ein kleines Tutorial auf SchmaRs-World.de. Dieses Mal geht es um eine Simple „drop down Navigation“. Die „Inspiration“ zu diesem Tutorial habe ich durch ein Codesnippet zum Thema „Mouseover mit CSS“ von Raph im Eurostyle-Webmedia.de Forum bekommen. Herzlichen Dank an dieser Stelle daf&#252;r  .

Wir werden die Navigation mit 4 ineinander [...]]]></description>
			<content:encoded><![CDATA[<p>Heute gibt es mal wieder ein kleines Tutorial auf SchmaRs-World.de. Dieses Mal geht es um eine Simple „<em><strong>drop down Navigation</strong></em>“. Die „Inspiration“ zu diesem Tutorial habe ich durch ein Codesnippet zum Thema „<a href="http://board.eurostyle-webmedia.de/wbb/programmierung/coding-showroom/html-und-css/4659-mouseover-mit-css/index.html" target="_blank">Mouseover mit CSS</a>“ von Raph im Eurostyle-Webmedia.de Forum bekommen. Herzlichen Dank an dieser Stelle daf&#252;r <img src='http://www.schmars-world.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .</p>
<p><span id="more-65"></span></p>
<p>Wir werden die Navigation mit 4 ineinander verschachtelten Listen realisieren. 1 Dieser Listen ist die „Hauptnavigation“ in welche die anderen eingebettet werden. </p>
<p>Dieses Tutorial richtet sich an <strong>Anf&#228;nger/Fortgeschrittene</strong> um es verstehen zu k&#246;nnen sollte man bereits einige <strong>Grundkenntnisse </strong>in <strong>(x)html</strong> und <strong>CSS</strong> haben.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-1532263722148161";
/* Content */
google_ad_slot = "4237103192";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>Hier ist eine <a href="http://www.schmars-world.de/inhalt/tutorials/demos/navi/">Preview unseres Ziels</a></p>
<h3>Das xhtml Grundger&#252;st</h3>
<p>Als erstes Fangen wir mit dem <strong>xhtml- Code</strong> an. Den Anfang bildet wie immer der obligatorische Link zum Stylesheet innerhalb der <em>&lt;head>&lt;/head&gt;</em> tags. </p>
<pre class="html4strict"><ol start="0"><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/link.html"><span style="color: #000000; font-weight: bold;">&lt;link</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;style.css&quot;</span> <span style="color: #000066;">media</span>=<span style="color: #ff0000;">&quot;screen&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/css&quot;</span> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">&quot;stylesheet&quot;</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span></div></li></ol></pre>
<p>Als n&#228;chstes brauchen wir eine Liste hierf&#252;r eignet sich eine ungeordnete Liste also <em>&lt;ul&gt;&lt;/ul&gt;</em>. Diese liste bekommt nun <strong>3 Eintr&#228;ge f&#252;r die Kategorien</strong> unserer Navigation. Jedem dieser Eintr&#228;ge weisen wir die <em>CSS-Klasse „navi“</em> zu, welche wir sp&#228;ter noch definieren werden. Die <em>list-Items (&lt;li&gt;)</em> bekommen jetzt noch den Inhalt<em> „Kategorie 1-3“</em>. Unser Quellcode sieht nun wie folgt aus.</p>
<pre class="html4strict"><ol start="0"><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">&lt;ul&gt;</span></a></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;navi&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Kategorie 1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;navi&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Kategorie 2<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;navi&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Kategorie 3<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li></ol></pre>
<p>Jetzt bekommt <strong>jedes Element</strong> unserer Liste eine weitere Liste als Inhalt, auch hier bietet sich eine wieder eine ungeordnete Liste an. Jeder dieser „<em>Unterlisten</em>“ weisen wir die <em>CSS-Klasse „submenu“</em> zu. Alle Listen mit der „<em>submenu- Klasse</em>“ bekommen jeweils 3 list-tems mit dem Inhalt „<em>link1-3</em>“. </p>
<pre class="html4strict"><ol start="0"><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">&lt;ul&gt;</span></a></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;navi&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Kategorie 1</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">&lt;ul</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;submenu&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span>link1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span>link1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span>link1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;navi&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Kategorie 2</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">&lt;ul</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;submenu&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span>link2<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span>link2<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span>link2<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;navi&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Kategorie 3</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">&lt;ul</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;submenu&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span>link3<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span>link3<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span>link3<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li></ol></pre>
<p>So das war es auch schon von der <strong>xhtml </strong>Seite, weiter geht’s mit dem <strong>Cascading Style Sheet</strong>.</p>
<h3>Die style.css</h3>
<p>Der <em><strong>CSS Code</strong></em> ist recht <em>minimalistisch</em>, jedoch sehr <strong>wirkungsvoll</strong>.</p>
<p>Als erstes beginnen wir mit einigen Allgemeinen Eigenschaften.</p>
<pre class="css"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">*,</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">html,</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">body<span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	margin<span style="color: #3333ff;">:<span style="color: #933;">0</span></span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	padding<span style="color: #3333ff;">:<span style="color: #933;">0</span></span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">body<span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #000000; font-weight: bold;">color</span>:<span style="color: #cc00cc;">#<span style="color: #933;">000000</span></span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #000000; font-weight: bold;">background-color</span>:<span style="color: #cc00cc;">#EFEFEF</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	font-family<span style="color: #3333ff;">:Arial</span>, Helvetica, <span style="color: #993333;">sans-serif</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	font-size<span style="color: #3333ff;">:<span style="color: #933;">12px</span></span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div></li></ol></pre>
<p><em>(Der Code der in der body klasse enthalten ist, dient lediglich dem Layout.)</em></p>
<p>Nun ist die Klasse <em>"Navi"</em> dran. Wir setzen die Eigenschaft <em>display auf inline</em> um aus den (in den meisten F&#228;llen) standardm&#228;&#223;ig als <strong>Block-Elemente</strong> deklarierten <strong>List-items ein Inline-Element</strong> zu formen. Die restlichen Angaben in dieser Klasse sind lediglich f&#252;r das Layout zust&#228;ndig und k&#246;nnen nach belieben gestaltet oder weggelassen werde.</p>
<pre class="css"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.navi</span><span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	display<span style="color: #3333ff;">:inline</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #000000; font-weight: bold;">background</span>:<span style="color: #cc00cc;">#97E1FD</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	font-size<span style="color: #3333ff;">:<span style="color: #933;">16px</span></span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #000000; font-weight: bold;">border</span>:<span style="color: #cc00cc;">#66FFFF</span> <span style="color: #933;">2px</span> <span style="color: #993333;">dotted</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	margin-left<span style="color: #3333ff;">:<span style="color: #933;">100px</span></span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div></li></ol></pre>
<p>In diesen kleinen aber feinen Schritt definieren wir die Klasse <em>„submenu“</em>. Sie bekommt lediglich die Eigenschaft <strong>„display“</strong> mit dem Wert <strong>„none“</strong> zugewiesen  wodurch alle <em>„submenu-Elemente“</em> nicht angezeigt werden.</p>
<pre class="css"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.submenu</span><span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	display<span style="color: #3333ff;">:none</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div></li></ol></pre>
<p>Jetzt kommt das <strong>Herzst&#252;ck unserer Navigation</strong>. Die Deklaration des Verhaltens der Klasse <em>„submenu“</em>, wenn sich der Mauszeiger &#252;ber einen <em>„navi“</em> Element befindet. Die Eigenschaft <em>„display“</em> wird auf <em>„inline“</em> gesetzt wodurch die zuvor nicht <strong>sichtbare Liste als inline-Element</strong> dargestellt wird. Das setzen der Eigenschaft <em>„position“</em> auf <em>„absolute“</em> ist neben den eben bei display angewandten verfahren <strong>Elementar</strong>. Das setzen von absolute entfernt die <em>„submenu-Elemente“</em> aus dem normalen Textfluss sodass sie &#252;ber oder unter den anderen Elementen angezeigt werden und nicht das Layout zerst&#246;ren. Mit der Eigenschaft <em><strong>„z-index“</strong></em> wir angeben welches Element &#252;ber welchen liegt. z.B. wird ein Element das einen <em>„z-index“</em> von <strong>1</strong> hat <strong>unter </strong>einem mit einem „z-index“ von <strong>2</strong> dargestellt. Die Eigenschaft „margin-left“ hat in diesem Fall nur Layouttechnische Bedeutung.</p>
<pre class="css"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.navi</span><span style="color: #3333ff;">:hover</span> <span style="color: #6666ff;">.submenu</span><span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	display<span style="color: #3333ff;">:inline</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	position<span style="color: #3333ff;">:absolute</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	z-index<span style="color: #3333ff;">:<span style="color: #933;">2</span></span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	margin-left<span style="color: #3333ff;">:<span style="color: #933;">1px</span></span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div></li></ol></pre>
<p>Nun ist es fast geschafft jetzt folgt noch eine kleine Definition des Verhaltens von <strong>List-Items</strong> innerhalb eines <em>„submenu“</em> Elements. Hierbei sind die Eigenschaften <em>„display“</em> und <em>„list-style-position“</em> wichtig. Die auf Block gestellte Eigenschaft <em>„display“</em> sorgt daf&#252;r dass die Listenelemente untereinander also als Block Elemente dargestellt werden. l<em>ist-style-position:outside;</em> ist lediglich ein <strong>Fix f&#252;r den IE7</strong> da dieser ansonsten vor den Inhalt der <em>List-Item</em> einen freien platz darstellt.</p>
<pre class="css"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.navi</span><span style="color: #3333ff;">:hover</span> <span style="color: #6666ff;">.submenu</span> li<span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	display<span style="color: #3333ff;">:block</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #000000; font-weight: bold;">background-color</span>:<span style="color: #cc00cc;">#6699FF</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #000000; font-weight: bold;">border</span>:<span style="color: #cc00cc;">#66FFFF</span> <span style="color: #933;">1px</span> <span style="color: #993333;">dotted</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	list-style-position<span style="color: #3333ff;">:outside</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div></li></ol></pre>
<p>Hier die <a href="http://www.schmars-world.de/inhalt/tutorials/demos/navi/navi.rar">Tutorial Dateien</a>.</p>
<p>So da war es auch schon mit unserem kleinen Turorial ich hoffe es hat euch weitergeholfen und war gut zu verstehen. F&#252;r Kritik positive wie negative bin offen, also lasst eure Meinung in den <strong>Kommentaren </strong>da.</p>
<img src="http://www.schmars-world.de/?ak_action=api_record_view&id=65&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.schmars-world.de/index.php/css-drop-down-navigation-2008-09-10/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Ist Open Source wichtig?</title>
		<link>http://www.schmars-world.de/index.php/ist-open-source-wichtig-2008-08-30/</link>
		<comments>http://www.schmars-world.de/index.php/ist-open-source-wichtig-2008-08-30/#comments</comments>
		<pubDate>Sat, 30 Aug 2008 16:13:03 +0000</pubDate>
		<dc:creator>JimBamir</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[xhtml]]></category>
		<category><![CDATA[Open source]]></category>
		<category><![CDATA[Reallife]]></category>

		<guid isPermaLink="false">http://www.schmars-world.de/?p=59</guid>
		<description><![CDATA[Zuerst einmal zu meiner Person. Ich hei&#223;e Amir Hodzic, bin 18 Jahre alt, lebe in &#214;sterreich und besuche eine Handelsakademie in Tirol. Im Internet nenne ich mich JimBamir. Mit Webentwicklung besch&#228;ftige ich mich seit etwa 2 Jahren. Als neues Teammitglied - und damit neuer Autor auf diesem Blog - von Schmars-world m&#246;chte ich euch jetzt [...]]]></description>
			<content:encoded><![CDATA[<p>Zuerst einmal zu meiner Person. Ich hei&#223;e <strong>Amir Hodzic</strong>, bin 18 Jahre alt, lebe in &#214;sterreich und besuche eine Handelsakademie in Tirol. Im Internet nenne ich mich <strong>JimBamir</strong>. Mit Webentwicklung besch&#228;ftige ich mich seit etwa 2 Jahren. Als neues Teammitglied - und damit neuer Autor auf diesem Blog - von Schmars-world m&#246;chte ich euch jetzt etwas &#252;ber das Thema Open Source erz&#228;hlen.</p>
<p><span id="more-59"></span></p>
<p>Wenn man die Situation n&#252;chtern betrachtet ist <strong>Open Source</strong> nicht wichtig. 99 % der Kaufkraft interessiert nicht das sie den Code betrachten k&#246;nnen. Warum auch, wenn sie ihn nicht korrekt manipulieren k&#246;nnen. Mit <strong>Open Source</strong> schwingt immer auch ein gewisser Hauch von Freiheit mit. Die Sache ist aber, das man sich auch einfach Ikarusfl&#252;gel bauen k&#246;nnte um dann auf den Mond zu fliegen, wenn man wollte. Also was nutzt einem die Freiheit etwas zu tun wenn man nicht die F&#228;higkeit dazu hat? Nat&#252;rlich kann man jetzt argumentieren, dass Open Source nicht unbedingt f&#252;r 0815-K&#228;ufer gedacht w&#228;re, dass man damit den Fortschritt unterst&#252;tzt und das irgendwann jeder den Grundgedanken von<strong> Open Source verstehen</strong> w&#252;rde.</p>
<p>Vergleichen wir erst einmal Open- mit Closedsourceprodukten. Beide brauchen in etwa eine gleich lange Entwicklung, beide sind &#228;hnlich zu bedienen und beide erf&#252;hllen etwa den <strong>gleichen Zweck</strong>.<br />
Und trotzdem unterscheiden sich beide Produkte ziemlich stark. Woran liegt das wohl?</p>
<p>Genau, der Quellcode ist bei OpeSourceprodukten offen und damit jedem zug&#228;nglich. Dadurch ergibt sich der angenehmen Umstand das jeder, der etwas Ahnung von Programmierung hat, einen Fix zu Problemen schreiben kann und den, der <strong>Community</strong> zur Verf&#252;gung stellen kann. Es ergibt sich eine freie Software, die st&#228;ndig gewartet wird, den Communitygeist aufrecht erh&#228;lt und dadurch einen in sich geschlossenen <strong>Komplex</strong> erstellt der sich um die Software k&#252;mmert.</p>
<p>Daher – das ist meine pers&#246;nliche Meinung – ist Open Source wichtig.</p>
Note: There is a poll embedded within this post, please visit the site to participate in this post's poll.
<p>Bringen nun auch Sie, Ihre Meinung zur Geltung. Worin liegt f&#252;r Sie der Mehrwert?</p>
<img src="http://www.schmars-world.de/?ak_action=api_record_view&id=59&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.schmars-world.de/index.php/ist-open-source-wichtig-2008-08-30/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Contentslider/Specialbox &#8211; Tutorial</title>
		<link>http://www.schmars-world.de/index.php/specialbox-video-tutorial-2008-08-25/</link>
		<comments>http://www.schmars-world.de/index.php/specialbox-video-tutorial-2008-08-25/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 00:50:56 +0000</pubDate>
		<dc:creator>SchmaR</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[scripting/coding]]></category>
		<category><![CDATA[xhtml]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Videotutorial]]></category>
		<category><![CDATA[Webentwicklung]]></category>

		<guid isPermaLink="false">http://www.schmars-world.de/?p=41</guid>
		<description><![CDATA[Da im Eurostyle-webmedia.de Forum in letzter Zeit viele Fragen zu den Thema kursieren wie man eine Specialsbox oder einen Contenslider realisiert, werde ich hier eine einfach gehaltene (mit AJAX realisierte) M&#246;glichkeit vorstellen und in Form eines Tutorials erkl&#228;ren. Als besonderes Schmankerl biete ich das Tutorial Multimedial an, einmal in Textform und einmal als Video.

 Link [...]]]></description>
			<content:encoded><![CDATA[<p>Da im Eurostyle-webmedia.de Forum in letzter Zeit viele Fragen zu den Thema kursieren wie man eine <em>Specialsbox </em>oder einen <em>Contenslider </em>realisiert, werde ich hier eine einfach gehaltene (mit <strong>AJAX </strong>realisierte) M&#246;glichkeit vorstellen und in Form eines Tutorials erkl&#228;ren. Als besonderes Schmankerl biete ich das <strong>Tutorial </strong>Multimedial an, einmal in <strong>Textform </strong>und einmal als <strong>Video</strong>.<br />
<span id="more-41"></span></p>
<p><center><img src="http://schmars-world.de/inhalt/tutorials/demos/images/Artikel_03.jpg" border="1" alt="Vorschau" /><br /><a href="http://schmars-world.de/inhalt/tutorials/demos/"> Link zum unseren Ziel <img src='http://www.schmars-world.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </a><br />
</center></p>
<h3>Am Anfang stand die HTML</h3>
<p>Beginnen wir mit den <strong>xHTML-code</strong> zu den Werde ich nicht viele Worte verlieren, da ich Grundkenntnisse in <strong>xHTML </strong>einfach mal vorrausetze.</p>
<pre class="html4strict"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #00bbdd;">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/html.html"><span style="color: #000000; font-weight: bold;">&lt;html</span></a> xmlns=<span style="color: #ff0000;">&quot;http://www.w3.org/1999/xhtml&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/head.html"><span style="color: #000000; font-weight: bold;">&lt;head&gt;</span></a></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/meta.html"><span style="color: #000000; font-weight: bold;">&lt;meta</span></a> <span style="color: #000066;">http-equiv</span>=<span style="color: #ff0000;">&quot;Content-Type&quot;</span> <span style="color: #000066;">content</span>=<span style="color: #ff0000;">&quot;text/html; charset=iso-8859-1&quot;</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/link.html"><span style="color: #000000; font-weight: bold;">&lt;link</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;style.css&quot;</span> <span style="color: #000066;">media</span>=<span style="color: #ff0000;">&quot;screen&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/css&quot;</span> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">&quot;stylesheet&quot;</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">&lt;script</span></a> <span style="color: #000066;">language</span>=<span style="color: #ff0000;">&quot;javascript&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">&quot;functions.js&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/title.html"><span style="color: #000000; font-weight: bold;">&lt;title&gt;</span></a></span>SchmaRs-World: Contentslider/Specialbox - Tutorial Demo<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/title&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/head&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/body.html"><span style="color: #000000; font-weight: bold;">&lt;body</span></a> <span style="color: #000066;">onload</span>=<span style="color: #ff0000;">&quot;sndReq(1)&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- Contentslider/Specialbox - Tutorial SchmaRs-World.de --&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;wrapper&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;title&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/h1.html"><span style="color: #000000; font-weight: bold;">&lt;h1&gt;</span></a></span>Contentslider/Specialbox - Tutorial <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/h1&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;contentslider&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  <span style="color: #009900;"><a href="http://december.com/html/4/element/br.html"><span style="color: #000000; font-weight: bold;">&lt;br</span></a> <span style="color: #000066;">style</span>=<span style="color: #ff0000;">&quot;clear:both;&quot;</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/body&gt;</span></span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/html&gt;</span></span></div></li></ol></pre>
<p>In den Zeilen 5 und 6 werden die Dateien geladen die f&#252;r die Realisierung n&#246;tig sind. Zum einen ist das die "<em>style.css</em>" welche die Angaben zum <strong>Layout </strong>enth&#228;lt. Zum anderen die "<em>functions.js</em>" welche das Herzst&#252;ck unseres Vorhabens darstellt. Das Bodytag ist mit einem <strong>onLoad </strong>Ereignis versehen um beim erstmaligen Laden der Seite die "<em>specialbox</em>" mit Inhalt zu versehen. Soviel nun zu den kleinen <strong>xHTML </strong>Fetzen.</p>
<h3>Javascript meets PHP</h3>
<p>Kommen wir nun zu den Javascriptcode welcher f&#252;r das Nachladen von Inhalten verantwortlich ist. Im Wesentlichen besteht der Code aus 3 Funktionen welche mit dem XMLHttpRequest-Objekt arbeiten bzw. es erzeugen. Alternativ k&#246;nnte man auch eine <strong>AJAX Bibliothek</strong> wie <a href="http://www.prototypejs.org/">Prototype</a> verwenden, ein Beispiel hierf&#252;r erkl&#228;re ich sp&#228;ter.</p>
<pre class="javascript"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">// Contentslider/Specialbox - Tutorial SchmaRs-World.de</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">// Erzeugen eines HttpRequestObjects samt Browserweiche fuer den IE.</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">function</span> genXMLHttpRequestObject<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">   <span style="color: #003366; font-weight: bold;">var</span> resObjekt = <span style="color: #003366; font-weight: bold;">null</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">   <span style="color: #000066; font-weight: bold;">try</span><span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">      resObjekt = <span style="color: #003366; font-weight: bold;">new</span> ActiveXObject<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;Microsoft.XMLHTTP&quot;</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">   <span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">   <span style="color: #000066; font-weight: bold;">catch</span><span style="color: #66cc66;">&#40;</span>Error<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">       <span style="color: #000066; font-weight: bold;">try</span> <span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">           resObjekt = <span style="color: #003366; font-weight: bold;">new</span> ActiveXObject<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;MSXML2.XMLHTTP&quot;</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">       <span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">       <span style="color: #000066; font-weight: bold;">catch</span><span style="color: #66cc66;">&#40;</span>Error<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">           <span style="color: #000066; font-weight: bold;">try</span> <span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">               resObjekt = <span style="color: #003366; font-weight: bold;">new</span> XMLHttpRequest<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">           <span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">           <span style="color: #000066; font-weight: bold;">catch</span><span style="color: #66cc66;">&#40;</span>Error<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">                <span style="color: #000066;">alert</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;Erzeugung des XMLHttpRequest-Objekts ist nicht m&#246;glich&quot;</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">           <span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">       <span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">   <span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">   <span style="color: #000066; font-weight: bold;">return</span> resObjekt;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">// Senden der Anfrage an den Server.</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">function</span> sndReq<span style="color: #66cc66;">&#40;</span>contentnr<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    resObjekt = genXMLHttpRequestObject<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    resObjekt.<span style="color: #000066;">open</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'get'</span>, <span style="color: #3366CC;">'content.php?content='</span>+contentnr,<span style="color: #003366; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    resObjekt.<span style="color: #006600;">onreadystatechange</span> = handleResponse;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    resObjekt.<span style="color: #006600;">send</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">// Warten bis der Datentransfer beendet ist (readystate = 4) und Ausgabe des neuen Contents.</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">function</span> handleResponse<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #000066; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span>resObjekt.<span style="color: #006600;">readyState</span> == <span style="color: #CC0000;">4</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">        document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;contentslider&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">innerHTML</span> = resObjekt.<span style="color: #006600;">responseText</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div></li></ol></pre>
<h4>genXMLHttpRequestObject()</h4>
<p>In der ersten Funktion <em>"genXMLHttpRequestObject()"</em> wird eine <strong>Instanz </strong>von dem XMLHttpRequest-Objekt erzeugt, da die Art der Erzeugung je nach Browser unterschiedlich ist, bedarf es einer Browserweiche. Die Browserweiche ist in diesem Fall in form eines try-catch Konstrukts gel&#246;st. Das <strong>Javascript </strong>Statement try-catch erlaubt es <strong>Code </strong>auszuf&#252;hren und Werte w&#228;hrend der Ausf&#252;hrung zu pr&#252;fen und im gegebenen Fall einen Fehler abzufangen.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-1532263722148161";
/* Content */
google_ad_slot = "4237103192";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>Im ersten try Block wird versucht das <strong>XMLHttpRequest-Objek</strong>t mit einer Funktion f&#252;r den IE zu instanzieren. Sollte dies fehlschlagen wird das Error aufgefangen und es wird versucht eine neuere Version des Objekts f&#252;r den IE zu instanzieren. Wenn dies wiederum fehlschl&#228;gt wird versucht das <strong>Objekt </strong>mit der f&#252;r den Gro&#223;teil der Browser g&#228;ngigsten Methode zu instanzieren. F&#252;r die unwahrscheinliche Annahme das auch dies Fehlschl&#228;gt wird eine Fehlermeldung in Form eines alert()´s ausgegeben.</p>
<h4>sndReq() & handleResponse()</h4>
<p>Die Funtion sndReq ist das eigentlich Herzst&#252;ck des <strong>Javascriptcodes </strong>sie ruft alle notwendigen Funktionen zum Asynchronen Datenaustausch auf. Die Funktion sendet die eigentliche Anfrage an den Server und verarbeitet auch dessen Antwort.</p>
<p>Die erste Zeile instanziert durch den Aufruf von <em>genXMLHttpRequestObject()</em> ein neues <em>XMLHttpRequest-Objekt</em> und speichert es in der Variable <em>resObjekt </em>ab. Die zweite Zeile &#246;ffnet die eigentliche Verbindung zum Server und sendet die Abfrage. Die Methode open des <em>XMLHttpRequest-Objekts</em> &#252;bernimmt in unserem Fall 3 Parameter, die <strong>Methode </strong>(get oder post), Die zu sendenen Daten und das Flag zur bestimmt ob der Datenverkehr <strong>Asynchron </strong>sein soll oder nicht, in unserem Fall true(asynchron). Die dritte Zeile(siehe zus&#228;tzlich die Funktion handleResponse() )  dient dazu sobald der Datenverkehr abgeschlossen ist (resObjekt.readyState == 4) die Daten in das <strong>xHTML Dokument</strong> einzubinden. Dies geschieht mit der Funktion getElementById. Die Funktion &#252;bernimmt einen String der <em>ID </em>des betreffenden Elements innerhalb des <strong>xHTML </strong>codes, f&#252;r unsere Zwecke w&#228;re dies "contentslider". Die Eigenschaft responseText des <em>XMLHttpRequest-Objekt</em> enth&#228;lt die empfangenden Daten.</p>
<p>So Das War’s mit dem Javascriptteil f&#252;rs erste, bei der Variante mit <em>Prototype </em>kommen wir noch einmal kurz auf <strong>Javascript </strong>zu sprechen.</p>
<h4>PHP kurz aber knackig</h4>
<p>Ich finde der <strong>PHP code</strong> erkl&#228;rt sich durch die Kommentare selbst, ich werde zu vorrangeschrittener Stunde die Ausf&#252;hrungen hierzu noch etwas spezifizieren. Was das <strong>Tutorialvideo </strong>betrifft, trifft selbiges zu.</p>
<pre class="php"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">&lt;?php</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">     <span style="color: #808080; font-style: italic;">// Contentslider/Specialbox - Tutorial SchmaRs-World.de</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #808080; font-style: italic;">// Konfiguration</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #0000ff;">$imgpath</span> = <span style="color: #ff0000;">'images/specials'</span>; <span style="color: #808080; font-style: italic;">// Pfad zu den Bildern</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #0000ff;">$type</span> = <span style="color: #ff0000;">'gif'</span>; <span style="color: #808080; font-style: italic;">// Dateityp der Bilder</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #808080; font-style: italic;">// Anwendungscode</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #0000ff;">$toval</span> = <span style="color: #0000ff;">$_REQUEST</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'content'</span><span style="color: #66cc66;">&#93;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/is_numeric"><span style="color: #000066;">is_numeric</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$toval</span><span style="color: #66cc66;">&#41;</span> &amp;&amp; <a href="http://www.php.net/file_exists"><span style="color: #000066;">file_exists</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;$imgpath/$toval.$type&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">// pr&#252;fe ob der &#252;bergebene Wert numerisch ist und eine Datei mit dem Namen existiert</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">        <span style="color: #0000ff;">$img</span> = <span style="color: #0000ff;">$toval</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #b1b100;">else</span> <span style="color: #808080; font-style: italic;">// wenn nicht ist der Name 1</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">        <span style="color: #0000ff;">$img</span> = <span style="color: #cc66cc;">1</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #0000ff;">$next</span> = <span style="color: #0000ff;">$img</span><span style="color: #cc66cc;">+1</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #0000ff;">$back</span> = <span style="color: #0000ff;">$img</span><span style="color: #cc66cc;">-1</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #ff0000;">&quot;&lt;img src=<span style="color: #000099; font-weight: bold;">\&quot;</span>$imgpath/$img.$type<span style="color: #000099; font-weight: bold;">\&quot;</span> alt=$img /&gt;&lt;br/&gt;&lt;br/&gt;&quot;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$img</span> &gt; <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span><span style="color: #808080; font-style: italic;">//wenn der &#220;bergebene Wert gr&#246;&#223;er als eins ist werden 2 Navigationspunkte zur&#252;ckgeliefert</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">        <a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #ff0000;">&quot;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">&lt;div id=<span style="color: #000099; font-weight: bold;">\&quot;</span>buttons<span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">&lt;input type=<span style="color: #000099; font-weight: bold;">\&quot;</span>button<span style="color: #000099; font-weight: bold;">\&quot;</span> value=<span style="color: #000099; font-weight: bold;">\&quot;</span>&lt;&lt; zur&amp;uuml;ck<span style="color: #000099; font-weight: bold;">\&quot;</span> onclick=<span style="color: #000099; font-weight: bold;">\&quot;</span>sndReq($back)<span style="color: #000099; font-weight: bold;">\&quot;</span> id=<span style="color: #000099; font-weight: bold;">\&quot;</span>btn_left<span style="color: #000099; font-weight: bold;">\&quot;</span> /&gt;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">&lt;input type=<span style="color: #000099; font-weight: bold;">\&quot;</span>button<span style="color: #000099; font-weight: bold;">\&quot;</span> value=<span style="color: #000099; font-weight: bold;">\&quot;</span>vorw&amp;auml;rts &gt;&gt;<span style="color: #000099; font-weight: bold;">\&quot;</span> onclick=<span style="color: #000099; font-weight: bold;">\&quot;</span>sndReq($next)<span style="color: #000099; font-weight: bold;">\&quot;</span> id=<span style="color: #000099; font-weight: bold;">\&quot;</span>btn_right<span style="color: #000099; font-weight: bold;">\&quot;</span> /&gt;&lt;/div&gt;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">&quot;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">	<span style="color: #b1b100;">else</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">       <a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #ff0000;">&quot;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">&lt;div id=<span style="color: #000099; font-weight: bold;">\&quot;</span>buttons<span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">&lt;input type=<span style="color: #000099; font-weight: bold;">\&quot;</span>button<span style="color: #000099; font-weight: bold;">\&quot;</span> value=<span style="color: #000099; font-weight: bold;">\&quot;</span>vorw&amp;auml;rts &gt;&gt;<span style="color: #000099; font-weight: bold;">\&quot;</span> onclick=<span style="color: #000099; font-weight: bold;">\&quot;</span>sndReq($next)<span style="color: #000099; font-weight: bold;">\&quot;</span> id=<span style="color: #000099; font-weight: bold;">\&quot;</span>btn_right<span style="color: #000099; font-weight: bold;">\&quot;</span> /&gt;&lt;/div&gt;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">&quot;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">?&gt;</span></div></li></ol></pre>
<h4>Prototype f&#252;r die ganz fixen</h4>
<p>So hier ist noch die angesprochene alternative M&#246;glichkeit der realisierung mit Prototype. Die Realisierung ist mit der Bibliothek um einiges leichter das sie uns so gut wie alles an Arbeit mit Javascript abnimmt.</p>
<p>functions.js</p>
<pre class="javascript"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">function</span> sndReq<span style="color: #66cc66;">&#40;</span>contentnr<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #003366; font-weight: bold;">new</span> Ajax.<span style="color: #006600;">Updater</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'contentslider'</span>, <span style="color: #3366CC;">'/content.php?content='</span>+contentnr, <span style="color: #66cc66;">&#123;</span> method: <span style="color: #3366CC;">'get'</span> <span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div></li></ol></pre>
<p><a href="http://schmars-world.de/inhalt/tutorials/demos/"> Link zum unseren Ziel <img src='http://www.schmars-world.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </a></p>
<p><a href="http://www.schmars-world.de/wp-content/uploads/2008/08/pre.rar">Tutorial Dateien</a></p>
<p>Das Video kommt aus Reallife technischen Gr&#252;nden erst Morgen sorry an alle die es schon gerne h&#228;tten.</p>
<p>Soo das wars ersteinmal ich hoffe auf gutes gelingen. Sollte es Ungereimtheiten geben oder sollte ich einen Fehler oder etwas nicht ganz richtig erkl&#228;rt haben, was ich aber eher weniger glaube, oder wenn euch das Tutorial gef&#228;llt lasst einen Kommentar da.</p>
<img src="http://www.schmars-world.de/?ak_action=api_record_view&id=41&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.schmars-world.de/index.php/specialbox-video-tutorial-2008-08-25/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Opera setzt Kurs auf ein standardisiertes Web</title>
		<link>http://www.schmars-world.de/index.php/opera-kurs-auf-standardisiertes-web-2008-07-09/</link>
		<comments>http://www.schmars-world.de/index.php/opera-kurs-auf-standardisiertes-web-2008-07-09/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 19:36:10 +0000</pubDate>
		<dc:creator>SchmaR</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[xhtml]]></category>
		<category><![CDATA[Opera]]></category>
		<category><![CDATA[Webentwicklung]]></category>

		<guid isPermaLink="false">http://www.schmars-world.de/?p=26</guid>
		<description><![CDATA[Der Softwarehersteller Opera auf welchen der gleichnamige Browser zur&#252;ckzuf&#252;hren ist, macht sich in einer neuen Artikelserie stark f&#252;r Einhaltung der Webstandards des W3C. Zu diesem Thema hatte ich mich hier bereits in kleinerer Form ge&#228;u&#223;ert.

Opera ver&#246;ffentlicht die Artikel auf der hauseigenen Entwickler-Community-Plattform Dev.Opera, frei nach dem Slogan FOLLOW THE STANDARDS&#124; BREAK THE RULES. Die Artikelserie [...]]]></description>
			<content:encoded><![CDATA[<p>Der Softwarehersteller Opera auf welchen der gleichnamige Browser zur&#252;ckzuf&#252;hren ist, macht sich in einer neuen Artikelserie stark f&#252;r Einhaltung der <strong>Webstandards</strong> des <a href="http://www.w3.org/">W3C</a>. Zu diesem Thema hatte ich mich <a href="http://www.schmars-world.de/index.php/warum-css-und-kein-tabellenlayout-2008-06-27/">hier bereits in kleinerer Form</a> ge&#228;u&#223;ert.<br />
<span id="more-26"></span></p>
<p>Opera ver&#246;ffentlicht die Artikel auf der hauseigenen Entwickler-Community-Plattform <a href="http://dev.opera.com">Dev.Opera</a>, frei nach dem Slogan FOLLOW THE STANDARDS| BREAK THE RULES. Die Artikelserie ist in Form von Kursen angelegt und ist f&#252;r folgende Zielgruppen gedacht:</p>
<ul>
<li>Studenten und Sch&#252;ler von Berufschulen</li>
<li>webaffine Sch&#252;ler</li>
<li>Webdesinger und Webentwickler</li>
<li>Ausbilder in Firmen</li>
<li>Allgemein Interessenten die etwas &#252;ber Webtechnologien lernen wollen</li>
</ul>
<p>Da die Artikelserie derma&#223;en umfangreich ist, k&#246;nnte man sie auch unter den Titel setzen <em>"Wie realisiere ich ein erfolgreiches Webprojekt - f&#252;r Anf&#228;nger"</em>. Es werden alle Themen abgearbeitet angefangen bei der <strong>Geschichte des Web/Internet</strong> und grundlegenden Informationen &#252;ber die <strong>Grundlagen des Webdesigns </strong>bis hin zu mehreren Artikeln (Kursen) zu<strong> (x)HTML</strong>. Dieser Themenumriss bezieht sich auf die 21 Kurse der Artikelserie die bereits ver&#246;ffentlicht wurden. Weitere sollen in den n&#228;chsten Wochen folgen.</p>
<img src="http://www.schmars-world.de/?ak_action=api_record_view&id=26&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.schmars-world.de/index.php/opera-kurs-auf-standardisiertes-web-2008-07-09/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Warum CSS und kein Tabellenlayout?!</title>
		<link>http://www.schmars-world.de/index.php/warum-css-und-kein-tabellenlayout-2008-06-27/</link>
		<comments>http://www.schmars-world.de/index.php/warum-css-und-kein-tabellenlayout-2008-06-27/#comments</comments>
		<pubDate>Fri, 27 Jun 2008 13:24:03 +0000</pubDate>
		<dc:creator>SchmaR</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[scripting/coding]]></category>
		<category><![CDATA[xhtml]]></category>
		<category><![CDATA[Browser]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Google]]></category>

		<guid isPermaLink="false">http://www.schmars-world.de/?p=22</guid>
		<description><![CDATA[„des ist ja easy xD dachte muss da alles mit  css machen.“
„hmm
tabellenanpassung reicht doch v&#246;llig aus oder nicht?“
Solche Aussagen liest man in einschl&#228;gigen Foren vor allem aus der eSports Szene, in welcher ich meine Wurzeln bez&#252;glich dem Web habe, und auch Allgemein viel, viel zu h&#228;ufig. 
Doch woran liegt es?
Wieso haben die Leute so [...]]]></description>
			<content:encoded><![CDATA[<p>„des ist ja easy xD dachte muss da alles mit <a href="http://de.wikipedia.org/wiki/Cascading_Style_Sheets"><em> css </em></a>machen.“</p>
<p>„hmm<br />
tabellenanpassung reicht doch v&#246;llig aus oder nicht?“</p>
<p>Solche Aussagen liest man in einschl&#228;gigen Foren vor allem aus der <a href="http://de.wikipedia.org/wiki/Esports">eSports Szene</a>, in welcher ich meine Wurzeln bez&#252;glich dem <strong>Web </strong>habe, und auch Allgemein viel, viel zu h&#228;ufig. </p>
<p>Doch woran liegt es?<br />
Wieso haben die Leute so viel „angst“ vor etwas „neuem“?</p>
<p><span id="more-22"></span></p>
<h3>Technik von vor 10 Jahren – was fr&#252;her gut war ist es heute immer noch!</h3>
<p>Das ist ein m&#246;glicher Gedankengang bei den betreffenden Personen, doch hat es sich nicht schon in vielerlei Hinsicht gezeigt das, dass alte zwar gut sein mag aber das neue besser ist?! Aber selbst diese Aussage kann man nicht auf die Verwendung von <a href="http://de.wikipedia.org/wiki/Frameset">Framesets </a>und Tabellenlayouts beziehen, beide sind keinesfalls gut. </p>
<p>Und das aus folgenden Gr&#252;nden.</p>
<h4>Framesets</h4>
<p>Ja die guten alten Framesets und Inline-Frames eigentlich k&#246;nnte man meinen so etwas gibt es heutzutage nicht mehr, doch leider ist es Gegenteilig es gibt sie immer noch. Meinem pers&#246;nlichen Empfinden nach h&#228;ufen sich in letzter Zeit Seiten mit Frames, mag aber auch nur Zufall sein das ich zur Zeit verst&#228;rkt auf solche Seiten treffe. Frames sind neben den Obenbenannten Tabellenlayouts das <strong>schlimmste was man dem Web antun kann</strong>. Suchmaschinen Indexieren (wenn sie es &#252;berhaupt tun) die einzelnen Inhalte der Frames. Gehen wir mal von dem Beispiel des klassischen 3teiligen Framesets aus, was in so gut wie jedem <a href="http://de.wikipedia.org/wiki/What_You_See_Is_What_I_See">WYSIWYWG </a>Editor vorgefertigt enthalten ist (warum eigentlich?). Die Dreiteilung ist aus Header, Navigation und Content zusammengesetzt. Wenn jetzt ein Bot die Seite crawlt werden wie gesagt die <strong>einzelnen Bestandteile des Framesets indexiert</strong>, sprich die Navigation alleine, der Content, sowie der Header. Sollte jetzt ein User die Seite &#252;ber eine Suchmaschine finden, so wird lediglich der Indexierte Inhalt geladen, zum Beispiel die Navigation ohne Content oder andersherum, es wird nur in den seltensten F&#228;llen das Frameset geladen. Beide M&#246;glichkeiten sind auf jeden Fall alles andere als Optimal. Weitere Probleme bei Framesets sind die unterschiedlichen Ladezeiten der Frames. Ein weiterer gro&#223;er Kritikpunkt an Frames ist es das man sie nicht direkt Verlinken kann, sondern immer nur auf die Seite mit dem Frameset verweisen kann. Des Weiteren sind Frames einfach Benutzerunfreundlich, es ist einfach nervig in einem Frame durch die Navigation scrollen zu m&#252;ssen. Jetzt werden mir einige Frame-Bef&#252;rworter sicherlich das Argument an den kopf werfen, das sie es nervig empfinden wenn die Navigation wegscrollt und nicht immer in erreichbarer n&#228;he ist, doch dieses Argument ist hinf&#228;llig mit einigen <a href="http://www.schmars-world.de/wp-admin/edit-tags.php?action=edit&tag_ID=44">CSS </a>befehlen kann man den selben Effekt erreichen, ohne die negativen Eigenschaften von Frames mit sich zu bringen.</p>
<h4>Tabellenlayouts</h4>
<p>Das gruseligste was ich kenne, ist es wenn mich jemand fragt ob ich mal einen Blick auf seine Seite werfen k&#246;nnte und es ein Tabellenlayout ist. Diese Art von Weblayout sind f&#252;r Mitarbeiter oder Personen die sich sp&#228;ter mit dem Quelltext befassen m&#252;ssen der reine Graus weil ein Tabellenlayout f&#252;r gew&#246;hnlich stark verschachtelt ist und damit verdammt un&#252;bersichtlich wird. Dieser Kritikpunkt setzt sich darin weiter fort das <a href="http://de.wikipedia.org/wiki/Screenreader">Screenreader </a>von Sehgesch&#228;digten Menschen mit diesen Layouts absolut nicht klar kommen. Ich hatte vor einiger Zeit das Vergn&#252;gen der Diskussion einer Landtagsabgeordneten der Linken, welche unter einer Sehbehinderung leidet, mit einem CDU Abgeordneten beizuwohnen zu d&#252;rfen. In dieser Diskussion hat sie sehr deutlich gemacht was Tabellenlayouts f&#252;r negative Auswirkungen auf Screenreader haben. Man m&#252;sste schon <strong>aus Gr&#252;nden der Menschlichkeit</strong> den auf vielen Seiten hochgelobten Tabellenlayouts abschw&#246;ren. Wem dieser Grund noch nicht reicht sollte wissen, dass <a href="http://de.wikipedia.org/wiki/Webcrawler">Webcrawler </a>dieselben Probleme wie Screenreader mit Tabellenlayouts haben und somit eine gute Platzierung bei Suchmaschinen beeintr&#228;chtigt wird. Tabellen waren als Gestaltungsmittel gedacht um Zahlen oder &#228;hnliches zu veranschaulichen, daf&#252;r sind sie auch hervorragend geeignet, aber keinesfalls als Layoutwerkzeug. </p>
<p>Grunds&#228;tzlich ist zu sagen das beide Techniken Frames und Tabellenlayouts nicht mehr dem Aktuellen Standard entsprechen. Weiterhin braucht man f&#252;r ein Tabellenlayout auch zeitm&#228;&#223;ig l&#228;nger und um auf die Frage in dem Zitat am Anfang des Artikels zur&#252;ckzukommen NEIN reicht es nicht!</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-1532263722148161";
/* Content */
google_ad_slot = "4237103192";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<h3>Leute habt keine Scheu davor etwas Neues zu lernen!</h3>
<p><strong>Die Vorteile von CSS liegen auf der Hand</strong>, angesichts der oben genannten negativen Beispiele. CSS hat auch noch andere Vorz&#252;ge wie etwa die Trennung von Struktur und Gestaltung oder die M&#246;glichkeit einer schnellen Design&#228;nderung. CSS hat zwar den Nachteil, dass man f&#252;r den IE6 ein, zwei hacks braucht und das man valides html schreiben muss, doch letzteres hat wiederum Vorteile. Wie zum Beispiel, dass Screenreader besser mit eurer Seite klarkommen und damit gleichzeitig auch die Robots der Suchmaschinen, aber das wichtigste an der Geschichte ist, dass ihr mit dem einhalten der aktuellen Webstandards das Web in seiner Entwicklung nach vorne bringt. Ganz nebenbei schont ihr auch noch eure Kollegen da diese sich nicht mehr mit ma&#223;los verschachtelten Tabellenlayouts Auseinadersetzen m&#252;ssen. </p>
<h3>Man braucht nicht viel Zeit!</h3>
<p>CSS zu lernen braucht wirklich nicht viel Zeit und das Aufwand/Nutzen Verh&#228;ltnis h&#228;lt sich wirklich im positiven Bereich. Als gutes Lehrmaterial kann ich euch w&#228;rmstens die Seite <a href="http://www.css4you.de">CSS4You.de</a> empfehlen welche sich auch als sehr gute Sprachreferenz eignet. Als Videomaterial zu dem Thema kann ich euch  „Jetzt lerne ich CSS Design“ von Video2Brain empfehlen. Das w&#228;re das Grundmaterial mit dem man schon sehr viel machen kann. Wenn ihr Anleitungen zu spezielleren Sachen sucht, googlet ne Runde  es gibt sehr viele gute Blogs die sich mit spezifischen Dingen befassen. Ich werde um auch den letzten Skeptiker unter euch zu &#220;berzeugen das es<strong> nicht schwerer ist ein Design in xhtml/CSS</strong> umzusetzen, als ein Tabellenlayout zu schreiben, demn&#228;chst auf diesem oder einem Partnerblog ein ausf&#252;hrliches Tutorial Posten. Dieses Tutorial wird sich mit dem kompletten Prozess des Umsetzens, Angefangen bei dem Design als PSD bis hin zum fertigen Layout, befassen.</p>
<p>In diesem Sinne horns up! Und nehmt euch den Artikel zu Herzen. <img src='http://www.schmars-world.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Zum Abschluss noch eine kleine Umfrage<br />
Note: There is a poll embedded within this post, please visit the site to participate in this post's poll.</p>
<img src="http://www.schmars-world.de/?ak_action=api_record_view&id=22&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.schmars-world.de/index.php/warum-css-und-kein-tabellenlayout-2008-06-27/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>kleine, aber feine Innovation f&#252;r Webentwickler</title>
		<link>http://www.schmars-world.de/index.php/innovation-webentwickler-2008-06-22/</link>
		<comments>http://www.schmars-world.de/index.php/innovation-webentwickler-2008-06-22/#comments</comments>
		<pubDate>Sun, 22 Jun 2008 16:11:37 +0000</pubDate>
		<dc:creator>SchmaR</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[xhtml]]></category>
		<category><![CDATA[Browser]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Webentwicklung]]></category>
		<category><![CDATA[Workflow]]></category>

		<guid isPermaLink="false">http://www.schmars-world.de/?p=19</guid>
		<description><![CDATA[Man kennt die alte Leier, man ist grade fertig ein Design in xhtml/css umzusetzen, alles ist in Browser x perfekt da dieser css richtig implementiert, dann noch ein schneller Test in Browser y und das Entsetzen ist gro&#223;. Das ganze Design ist durch Fehlinterpretationen seitens des Browsers verunstaltet. 

Eine m&#246;gliche Schlussfolgerung hieraus w&#228;re w&#228;hrend der [...]]]></description>
			<content:encoded><![CDATA[<p>Man kennt die alte Leier, man ist grade fertig ein Design in <a href="http://de.wikipedia.org/wiki/Xhtml">xhtml</a>/<a href="http://de.wikipedia.org/wiki/Cascading_Style_Sheets">css</a> umzusetzen, alles ist in Browser x perfekt da dieser css richtig implementiert, dann noch ein schneller Test in Browser y und das Entsetzen ist gro&#223;. Das ganze Design ist durch Fehlinterpretationen seitens des Browsers verunstaltet. </p>
<p><span id="more-19"></span></p>
<p>Eine m&#246;gliche Schlussfolgerung hieraus w&#228;re w&#228;hrend der Entwicklung Tests in anderen Browsern durchzuf&#252;hren doch dies unterbricht meiner Meinung nach bei der <a href="http://de.wikipedia.org/wiki/Liste_von_Webbrowsern">Masse an Browsern</a> (Versionen) den Workflow ma&#223;geblich. Was zu einen schlechteren Ergebnis bzw. gr&#246;&#223;eren Zeitanspruch f&#252;hrt. Neben diesen beiden Faktoren kommt hinzu dass man seine Festplatte auch noch mit den jeweiligen Browsern sowie Versionen belasten muss.</p>
<p><a href="http://browsershots.org/">Browsershots.org</a> ist eine geniale Idee um Webentwicklern das Leben in Hinsicht auf die oben genannten Punkte zu vereinfachen. Anstatt die Seite in allen m&#246;glichen/wesentlichen Browsern zu betrachten muss man lediglich die URL seiner zu testenden Seite auf Browsershots.org angeben und muss einen kleinen Moment warten. (bei meinen Tests durchschnittlich 2 – 3 Minuten bei der Auswahl aller Browser) Diese Wartezeit kann man effektiv mit der Weiterarbeit an der Seite nutzen, anstatt die Browser x,y und z &#246;ffnen zu m&#252;ssen.</p>
<p>Der Dienst von <a href="http://browsershots.org/">Browsershots.org</a> funktioniert folgender ma&#223;en:</p>
<p>Der Dienst nimmt eine URL auf einen zentralen Server entgegen. Die URL wird von dort aus an so genannte „Fabriken“ verteilt. Bei den Fabriken handelt es sich um Rechner welche dann in einer Vielzahl von Browsern unter 4 verschiedenen  Betriebssystemen (Linux, Windows, Mac OS und BSD) die URL aufrufen und Screennshots angefertigten. Diese Screenshot werden dann auf den zentralen Server geladen und dem Nutzer zu Verf&#252;gung gestellt. </p>
<p>Um den Browsertest zu spezifizieren hat man die M&#246;glichkeit aus Browsern und Betriebssystemen zu w&#228;hlen. Weiterhin hat man die M&#246;glichkeit Festlegungen bez&#252;glich Bildschirmgr&#246;&#223;e(Aufl&#246;sung), Farbtiefe, und der Verwendung von Java, Javascript und Flash zu treffen. </p>
<p>Ich habe bis jetzt nur exemplarische Tests mit dem Dienst gemacht, aber ich bin ziemlich von ihm &#252;berzeugt, sodass er auch bald in der Praxis bei mir Anwendung finden wird. </p>
<img src="http://www.schmars-world.de/?ak_action=api_record_view&id=19&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.schmars-world.de/index.php/innovation-webentwickler-2008-06-22/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
