<?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>Jayj.dk &#187; Web</title>
	<atom:link href="http://jayj.dk/category/web/feed/" rel="self" type="application/rss+xml" />
	<link>http://jayj.dk</link>
	<description>Blog, portfolio, templates</description>
	<lastBuildDate>Mon, 06 Sep 2010 15:51:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Colorbox &#8211; Det perfekte lightbox plugin?</title>
		<link>http://jayj.dk/colorbox-det-perfekte-lightbox-plugin/</link>
		<comments>http://jayj.dk/colorbox-det-perfekte-lightbox-plugin/#comments</comments>
		<pubDate>Tue, 04 May 2010 13:02:17 +0000</pubDate>
		<dc:creator>Jesper</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[colorbox]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[lightbox]]></category>

		<guid isPermaLink="false">http://jayj.dk/?p=1276</guid>
		<description><![CDATA[Der findes mange gode lightbox scripts til jQuery. Min personlige favorit var indtil i går var Fancybox, men i forbindelse med et nyt WordPress tema jeg arbejder på (glæd dig!), stødte jeg ind i problemer mellem den og jQuery pluginet Roundabout. Jeg arbejdede bogstavlig talt i flere timer på en løsning af problemet &#8211; Jeg [...]]]></description>
			<content:encoded><![CDATA[<p>Der findes mange gode lightbox scripts til jQuery. Min personlige favorit var indtil i går var <a href="http://fancybox.net/" title="Fancybox - Et godt lightbox script">Fancybox</a>, men i forbindelse med et nyt WordPress tema jeg arbejder på (glæd dig!), stødte jeg ind i problemer mellem den og jQuery pluginet <a href="http://fredhq.com/projects/roundabout/">Roundabout</a>. Jeg arbejdede bogstavlig talt i flere timer på en løsning af problemet &#8211; Jeg kom tæt på, men fandt den aldrig. </p>
<p>Jeg begyndte derfor, at lede efter et nyt script. Der findes rigtig mange, men ikke rigtig nogen der passede indtil jeg kom forbi <strong>Colorbox</strong>. Jeg prøvede det, det virkede og det er vildt niiice!</p>
<p><span id="more-1276"></span></p>
<h3>Grunde til at bruge Colorbox</h3>
<p>Her er nogle af grundene fra Colorboxs hjemmeside til at bruge Colorbox.</p>
<ul>
<li>Understøtter billeder, billede grupper, slideshow, ajax, inline, og iframe indhold</li>
<li>Lightweight: mindre end 9KB javascript!!</li>
<li>Det er dejlig let at ændre udseendet via CSS</li>
<li>Kræver ingen ændringer i din HTML</li>
<li>Genererer valid XHTML</li>
</ul>
<p>En af fordelene er, at det er så dejlig let. Både at arbejde med og i filstørrelse. Plugin filen er bare 9kb, der bruges kun 2 billeder og der skal næsten ingen CSS til.</p>
<p>Der er 5 forskellige styles til at starte med, men det er nemt at lave sin egen ved, at skifte grafikken ud og tilføje noget CSS.</p>
<p><img src="http://jayj.dk/wp-content/uploads/colorbox-fancyboxstyle.jpg" alt="" title="colorbox-fancyboxstyle" width="620" height="340" class="aligncenter size-full wp-image-1282" /></p>
<p>Her er et eksempel fra det WordPress tema jeg arbejder på. Få linjer CSS og en enkelt billede udskiftning. Kan det blive nemmere?</p>
<p>Så står du og mangler et jQuery lightbox, så anbefaler jeg klart Colorbox. Nu er det godt nok ikke meget, jeg har fået arbejdet med Colorbox, men indtil får det 5/5 stjerner.</p>
<p><img src="http://jayj.dk/wp-content/uploads/5stars.png" alt="5 stjerner" title="5 stjerner" width="89" height="16" class="size-full wp-image-1285" /></p>
<p><a href="http://colorpowered.com/colorbox/" title="Download Colorbox og læs meget mere" class="btn">Download Colorbox og læs meget mere om hvad du kan gøre med Colorbox</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jayj.dk/colorbox-det-perfekte-lightbox-plugin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Hurtig løsning på Z-index bug i IE7</title>
		<link>http://jayj.dk/hurtig-losning-pa-z-index-bug-i-ie7/</link>
		<comments>http://jayj.dk/hurtig-losning-pa-z-index-bug-i-ie7/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 18:48:22 +0000</pubDate>
		<dc:creator>Jesper</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[ie7]]></category>
		<category><![CDATA[z-index]]></category>

		<guid isPermaLink="false">http://jayj.dk/?p=1256</guid>
		<description><![CDATA[Internet Explorer 7 har nogle mærkelige fejl. En af dem er, hvordan den håndterer z-index. Det kan den slet ikke finde ud af. Hvis du har prøvet at lave en dropdown-menu, har du garanteret stødt på dette problem &#8211; Det har jeg i hvert fald. En hurtig Google søgning fandt en hel masse sider med [...]]]></description>
			<content:encoded><![CDATA[<p>Internet Explorer 7 har nogle mærkelige fejl. En af dem er, hvordan den håndterer z-index. Det kan den slet ikke finde ud af. Hvis du har prøvet at lave en dropdown-menu, har du garanteret stødt på dette problem &#8211; Det har jeg i hvert fald.</p>
<p>En hurtig Google søgning fandt en hel masse sider med løsninger på problemet. De fleste af dem <a href="http://www.vancelucas.com/blog/fixing-ie7-z-index-issues-with-jquery/">involverede jQuery</a>, men jeg blev ved med at søge ,for at finde en mere simpel og bedre løsning.</p>
<p>Og jeg fandt den!</p>
<p><span id="more-1256"></span></p>
<p>Onlinebrand.dk havde en <a href="http://www.onlinebrand.dk/blog/19-z-index-ie7.html">meget simpel CSS løsning</a>. Løsningen er simpelthen, at give overordnet (Parent) element et højere z-index værdi end elementet selv.</p>
<blockquote><p>
Dette skyldes, at IE7 nulstiller z-index værdien på alle positionerede elementer. Dette fungere selvfølgelig ikke, da hele ideen med z-index, er at man skal kunne positionere sine elementer foran eller bagved hinanden.
</p></blockquote>
<p>Lad os sige du har denne markup:</p>

<div class="wp_syntax"><div class="code"><pre class="plain" style="font-family:monospace;">&lt;ul id=&quot;menu&quot;&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Forside&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Om&lt;/a&gt;
  &lt;ul&gt;
    &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Om&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Kontakt&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</pre></div></div>

<p>Så skal du give #menu en højere z-index værdi end #menu li</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#menu</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">10</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#menu</span> li <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">5</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Det behøver ikke være 10 og 5, men det er dejlig lette tal.</p>
]]></content:encoded>
			<wfw:commentRss>http://jayj.dk/hurtig-losning-pa-z-index-bug-i-ie7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free Google Wave invites</title>
		<link>http://jayj.dk/free-google-wave-invites/</link>
		<comments>http://jayj.dk/free-google-wave-invites/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 19:10:31 +0000</pubDate>
		<dc:creator>Jesper</dc:creator>
				<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://jayj.dk/?p=1090</guid>
		<description><![CDATA[I&#8217;m sorry that I didn&#8217;t uploaded my new WordPress theme last week as promised, but I ran into some computer problems But don&#8217;t be unhappy. I&#8217;ve have 8 invites to Google Wave. Follow on and see how easy you can get yours! Google gave me 8 invites. To get an invite just sent me an [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m sorry that I didn&#8217;t uploaded my new WordPress theme last week as promised, but I ran into some computer problems <img src='http://jayj.dk/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /><br />
But don&#8217;t be unhappy. <strong>I&#8217;ve have 8 invites to Google Wave</strong>. Follow on and see how easy you can get yours!</p>
<p><span id="more-1090"></span></p>
<p><br class="clear" /><br />
Google gave me 8 invites. To get an invite just sent me an email on <em>email removed</em><br />
The first 8 will get one, so you better be quick <img src='http://jayj.dk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><strong>Update:</strong> Sorry, but I don&#8217;t have anymore invites.</p>
]]></content:encoded>
			<wfw:commentRss>http://jayj.dk/free-google-wave-invites/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>November Christmas &#8211; 3 free themes</title>
		<link>http://jayj.dk/november-christmas/</link>
		<comments>http://jayj.dk/november-christmas/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 23:12:48 +0000</pubDate>
		<dc:creator>Jesper</dc:creator>
				<category><![CDATA[Nyheder]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[christmas]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[giveaway]]></category>
		<category><![CDATA[hide]]></category>
		<category><![CDATA[november]]></category>
		<category><![CDATA[templates]]></category>
		<category><![CDATA[themes]]></category>

		<guid isPermaLink="false">http://jayj.dk/?p=1009</guid>
		<description><![CDATA[Today is the first day in a great month. It&#8217;s soon Christmas, but forget all about that! November will be just like Christmas here on Jayj.dk, because I will give away 3 free templates through the whole month, and in the end will there be a big surprise! As said I&#8217;ll give 3 templates away [...]]]></description>
			<content:encoded><![CDATA[<p>Today is the first day in a great month. It&#8217;s soon Christmas, but forget all about that! November will be just like Christmas here on Jayj.dk, because <strong>I will give away <big>3</big> free templates</strong> through the whole month, and in the end will there be a big surprise!</p>
<p>As said I&#8217;ll give 3 templates away for free. It will be 2 HTML templates and 1 premium WordPress template. </p>
<h3>Sneak Peaks</h3>
<p><img src="http://jayj.dk/wp-content/uploads/japibas.png" alt="Japibas" /></p>
<p>&#8220;Japibas&#8221; is the name of the WordPress theme I&#8217;ll give you. It have a clean design, a content slider, huge Theme Options Panel and much much more.</p>
<p><span id="more-1009"></span></p>
<p><img src="http://jayj.dk/wp-content/uploads/shophtml.png" alt="Shop HTML" /></p>
<p>The next theme is a HTML template designed be me, but coded by the PSD to HTML site <a href="http://shophtml.com/">ShopHTML.com</a></p>
<p><img src="http://jayj.dk/wp-content/uploads/css3theme.png" alt="A CSS3 and HTML5 theme" /></p>
<p>This theme uses HTML5 and CSS3. It kinda strange, but really nice <img src='http://jayj.dk/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>In the end will there a surprise, so stay ready! November is gonna be a nice month.</p>
<p><em>* Psst! If you wanna give a theme away here on Jayj.dk in November, please <a href="http://jayj.dk/kontakt">send me an email</a></em></p>
]]></content:encoded>
			<wfw:commentRss>http://jayj.dk/november-christmas/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Få alle sider til at rotere i Safari og Chrome</title>
		<link>http://jayj.dk/fa-alle-sider-til-at-rotere-i-safari-og-chrome/</link>
		<comments>http://jayj.dk/fa-alle-sider-til-at-rotere-i-safari-og-chrome/#comments</comments>
		<pubDate>Sun, 18 Oct 2009 13:59:10 +0000</pubDate>
		<dc:creator>Jesper</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[safari]]></category>

		<guid isPermaLink="false">http://jayj.dk/?p=999</guid>
		<description><![CDATA[Kom lige forbi denne &#8220;Tweet&#8221; af Simon Willison tidligere i dag. Det er et sjovt lille stykke javascript du kan skrive i adresselinjen. Hvis du bruger Safari eller Chrome vil det få den side du er inde på til at rotere. &#160; javascript:&#40;function&#40;&#41;&#123;var d=0;setInterval&#40;function&#40;&#41; &#123;document.body.style&#91;'-webkit-transform'&#93;= 'rotate('+ d +'deg)';d+=1&#125;,10&#41;&#125;&#40;&#41;&#41;;]]></description>
			<content:encoded><![CDATA[<p>Kom lige forbi <a href="http://twitter.com/simonw/status/825123672">denne &#8220;Tweet&#8221;</a> af Simon Willison tidligere i dag. Det er et sjovt lille stykke javascript du kan skrive i adresselinjen. Hvis du bruger Safari eller Chrome vil det få den side du er inde på til at rotere.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">&nbsp;
javascript<span style="color: #339933;">:</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #003366; font-weight: bold;">var</span> d<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>setInterval<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>document.<span style="color: #660066;">body</span>.<span style="color: #660066;">style</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">'-webkit-transform'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span> <span style="color: #3366CC;">'rotate('</span><span style="color: #339933;">+</span> d <span style="color: #339933;">+</span><span style="color: #3366CC;">'deg)'</span><span style="color: #339933;">;</span>d<span style="color: #339933;">+=</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">10</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p><a href="http://jayj.dk/wp-content/uploads/rotate-big.png" class="portfolio-img-small"><br />
<img src="http://jayj.dk/wp-content/uploads/rotate-small.png" alt="Roterende side" /><br />
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jayj.dk/fa-alle-sider-til-at-rotere-i-safari-og-chrome/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CSS kontaktform &#8211; Del 2</title>
		<link>http://jayj.dk/css-kontaktform-del-2/</link>
		<comments>http://jayj.dk/css-kontaktform-del-2/#comments</comments>
		<pubDate>Sun, 20 Sep 2009 13:46:47 +0000</pubDate>
		<dc:creator>Jesper</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[kontakt]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://jayj.dk/?p=917</guid>
		<description><![CDATA[I sidste uge skrev jeg om, hvordan du kan lave en simpel kontaktform med HTML og CSS. Hvis du ikke har læst den endnu, er det en god idé at gøre det. I denne uge vil jeg skrive om, hvordan du kan få formen til faktisk at sende emails. Da filen der indeholder kontaktformen er [...]]]></description>
			<content:encoded><![CDATA[<p>I sidste uge skrev jeg om, hvordan du kan lave en <a href="http://jayj.dk/css-kontaktform/" title="Lav en simpel kontaktform">simpel kontaktform med HTML og CSS</a>. Hvis du ikke har læst den endnu, er det en god idé at gøre det. I denne uge vil jeg skrive om, hvordan du kan få formen til faktisk at sende emails.</p>
<p><span id="more-917"></span></p>
<div class="clear"></div>
<p>Da filen der indeholder kontaktformen er en HTML fil, skal den først laves til en PHP fil. Omdøb filen fra <code>index.html</code> til <code>index.php</code></p>
<p>Indsæt følgende kode under <code>&lt;h3>Kontakt mig&lt;/h3&gt;</code></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Hvis der er trykket på send knappen</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'submit'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Næsten alt vores PHP kode vil være inde mellem { og }, og vil først blive kørt når der bliver trykket på Send knappen.</p>
<p>Først skal vi skaffe informationer fra kontaktformen: Navn, Email og Besked</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$navn</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'navn'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$email</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'email'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$besked</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'besked'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span></pre></div></div>

<p><em>Husk at koden skal være mellem { og }</em>
</pre>
<p>Vi rykker videre med at skrive nogle informationer, der skal bruges for at kunne sende mailen. Skriv din email og det emne mailen skal have.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$adresse</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Din email som mailen vil blive sendt til</span>
<span style="color: #000088;">$emne</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Emne her&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Emnet som emailen skal have</span>
&nbsp;
<span style="color: #000088;">$header</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'From: '</span><span style="color: #339933;">.</span> <span style="color: #000088;">$email</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Nu skal vi have sendt den besked</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'navn'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'email'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'besked'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #990000;">filter_var</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$email</span><span style="color: #339933;">,</span>FILTER_VALIDATE_EMAIL<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
<span style="color: #000088;">$sendt</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mail</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$adresse</span><span style="color: #339933;">,</span> <span style="color: #000088;">$emne</span><span style="color: #339933;">,</span> <span style="color: #000088;">$besked</span><span style="color: #339933;">,</span> <span style="color: #000088;">$header</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Send emailen</span>
&nbsp;
  <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sendt</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;p class=&quot;success&quot;&gt;Din besked blev sendt.&lt;/p&gt;'</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Succes besked</span>
   <span style="color: #009900;">&#125;</span> 
&nbsp;
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;p class=&quot;error&quot;&gt;Der var en fejl med at sende beskeden. Tjek venligst alle felter.&lt;/p&gt;'</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Fejl besked</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Først tjekker vi om alle felter er udfyldt, og om emailen er gyldig. Hvis du vil læse mere om <code>FILTER_VALIDATE_EMAIL</code>, kan du læse <a href="http://net.tutsplus.com/tutorials/php/getting-clean-with-php/">Getting Clean With PHP</a> på Net.tutsplus.com </p>
<p><code>Mail</code> sender mailen, og hvis den er blevet sendt får brugeren en succes besked. Hvis en eller flere af felterne er tomme, får brugeren en fejlbesked.</p>
<p>Nu rykker vi videre til formen, hvor der skal gives fejlbeskeder. Erstat den gamle form med den nye</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;p&gt;
    &lt;label for=&quot;navn&quot;&gt;Navn&lt;/label&gt; 
    &lt;input type=&quot;text&quot; name=&quot;navn&quot; id=&quot;navn&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'submit'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$navn</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; /&gt;
    <span style="color: #000000; font-weight: bold;">&lt;?php</span> 
	<span style="color: #666666; font-style: italic;">// Hvis navn er tomt</span>
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'submit'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$navn</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;span class=&quot;error&quot; id=&quot;navn&quot;&gt;Udfyld venligst navn&lt;/span&gt;'</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/p&gt;
&nbsp;
&lt;p&gt;
    &lt;label for=&quot;email&quot;&gt;Email&lt;/label&gt; 
    &lt;input type=&quot;text&quot; name=&quot;email&quot; id=&quot;email&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'submit'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$email</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; /&gt;
    <span style="color: #000000; font-weight: bold;">&lt;?php</span> 
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'submit'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$email</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;&quot;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;span class=&quot;error&quot; id=&quot;email&quot;&gt;Udfyld venligst email&lt;/span&gt;'</span><span style="color: #339933;">;</span> 
	<span style="color: #009900;">&#125;</span>
	<span style="color: #666666; font-style: italic;">// Valider email</span>
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'submit'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span><span style="color: #990000;">filter_var</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$email</span><span style="color: #339933;">,</span>FILTER_VALIDATE_EMAIL<span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$email</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;span class=&quot;error&quot; id=&quot;email&quot;&gt;Udfyld venligst en gyldig email&lt;/span&gt;'</span><span style="color: #339933;">;</span> 
	<span style="color: #009900;">&#125;</span> 
	<span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/p&gt;
&lt;p&gt;
	&lt;textarea name=&quot;besked&quot; id=&quot;besked&quot; rows=&quot;10&quot; cols=&quot;30&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'submit'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$besked</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/textarea&gt;
    <span style="color: #000000; font-weight: bold;">&lt;?php</span> 
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'submit'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$besked</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;span class=&quot;error&quot; id=&quot;besked&quot;&gt;Skriv venligst en besked&lt;/span&gt;'</span><span style="color: #339933;">;</span> 
	<span style="color: #009900;">&#125;</span>
	<span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/p&gt;
&lt;p&gt;
	&lt;input type=&quot;submit&quot; name=&quot;submit&quot; id=&quot;submit&quot; value=&quot;Send&quot; /&gt;
&lt;/p&gt;</pre></div></div>

<p>Her er noget af koden forklaret bedre</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> 
<span style="color: #666666; font-style: italic;">// Hvis navn er tomt</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'submit'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$navn</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;span class=&quot;error&quot; id=&quot;navn&quot;&gt;Udfyld venligst navn&lt;/span&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Hvis der er blevet trykket på Send knappen og navn feltet er tomt, vil der komme en fejlbesked</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;input type=&quot;text&quot; name=&quot;navn&quot; id=&quot;navn&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'submit'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$navn</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; /&gt;</pre></div></div>

<p>Hvis der er blevet trykket på Send knappen vil navnet blive skrevet i input feltet, så brugeren er fri for at skrive det igen.</p>
<p>Det samme gælder for de andre. Dog er der også lidt email validering ved email feltet.</p>
<p>Download det samlet script, hvor der også er lidt ekstra CSS style og noget jQuery for at kunne lukke fejlbeskederne.</p>
<p><div class="download"><a href="http://jayj.dk/download/5" title="Download Kontaktform - PHP">Download Kontaktform - PHP</a><br /><small>268 downloads</small></div><br />
</p>
<p class="box"><a href="http://jayj.dk/examples/grey-form-php">Se demo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jayj.dk/css-kontaktform-del-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CSS kontaktform</title>
		<link>http://jayj.dk/css-kontaktform/</link>
		<comments>http://jayj.dk/css-kontaktform/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 11:57:00 +0000</pubDate>
		<dc:creator>Jesper</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[kontakt]]></category>

		<guid isPermaLink="false">http://jayj.dk/?p=837</guid>
		<description><![CDATA[I denne tutorial vil jeg vise, hvordan du ret enkelt kan lave en pæn HTML/CSS kontaktform. Jeg vil bruge nogle nye CSS3 features, som runde hjørner og text shadow, såsom giver et ekstra wow i moderne browsers, men stadig er pæn i gamle browsere. Det er desværre ikke en funktionel form (endnu?), det er bare [...]]]></description>
			<content:encoded><![CDATA[<p>I denne tutorial vil jeg vise, hvordan du ret enkelt kan lave en pæn HTML/CSS kontaktform. Jeg vil bruge nogle nye CSS3 features, som runde hjørner og text shadow, såsom giver et ekstra wow i moderne browsers, men stadig er pæn i gamle browsere. Det er desværre ikke en funktionel form (endnu?), det er bare hvordan man koder designet til en. </p>
<p><span id="more-837"></span></p>
<div class="clear"></div>
<p>Here er kontaktformen, som du vil lære at lave, og indbygningen af den.<br />
<a href="http://jayj.dk/wp-content/uploads/greycontactformStor2.jpg" title="Preview af kontaktform" class="portfolio-img-small"><br />
<img src="http://jayj.dk/wp-content/uploads/greycontactform.jpg" alt="Preview af kontaktform" /><br />
</a></p>
<p>Vi starter med en form</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><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>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">html</span> xmlns<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.w3.org/1999/xhtml&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">head</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">meta</span> <span style="color: #000066;">http-equiv</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Content-Type&quot;</span> <span style="color: #000066;">content</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/html; charset=iso-8859-1&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">title</span>&gt;</span>Kontakt form<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">title</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">link</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;style.css&quot;</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;stylesheet&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">head</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">body</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">form</span> <span style="color: #000066;">action</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;kontaktform&quot;</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h3</span>&gt;</span>Kontakt mig<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h3</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">label</span> <span style="color: #000066;">for</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;navn&quot;</span>&gt;</span>Navn<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">label</span>&gt;</span> 
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;name&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;navn&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">label</span> <span style="color: #000066;">for</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;email&quot;</span>&gt;</span>Email<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">label</span>&gt;</span> 
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;email&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;email&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">textarea</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;besked&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;besked&quot;</span> <span style="color: #000066;">rows</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;10&quot;</span> <span style="color: #000066;">cols</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;30&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">textarea</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;submit&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;submit&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;submit&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Send&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">form</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">body</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">html</span>&gt;</span></pre></div></div>

<p>Opret så filen <code>style.css</code> i samme mappe som din kontaktform fil (hvis ikke bliver du nødt til at rette i html koden).<br />
Først starter vi med en global reset CSS, som nulstiller margins og paddings på alle elementer. (:focus fjerner en grim blå outline border agtig ting i browsers som Firefox og Safari)</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #00AA00;">*</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span> 
<span style="color: #3333ff;">:focus </span><span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">outline</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre></div></div>

<p><em>Hvis du bruger denne form på en side hvor der er flere elementer, burde du ikke bruge *, men i stedet fx <a href="http://meyerweb.com/eric/tools/css/reset/" title="Eric Meyers Reset CSS">Eric Meyers Reset CSS</a></em></p>
<p>Før vi går videre, <a href="http://jayj.dk/download/4" title="Kontaktform">kan du downloade filerne</a> (der er inkluderet billeder og PSD fil)</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">body<span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#kontaktform</span> input<span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#kontaktform</span> textarea <span style="color: #00AA00;">&#123;</span> 
	<span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">:</span> <span style="color: #933;">16px</span> Arial<span style="color: #00AA00;">,</span> Helvetica<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span> 
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#333</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#kontaktform</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#ccc</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/formgradient.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">repeat-x</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#aeaeae</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">50px</span> <span style="color: #993333;">auto</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* 50px fra toppen, 0 fra bunden og auto fra venstre og højre (center) */</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">420px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Bliver 500px med padding */</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">40px</span> <span style="color: #933;">40px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Først sætter vi alle skrifttyper til Arial i størrelse 16. Det næste er formen (husk vi gav formen <code>id="kontaktform"</code>). Vi sætter baggrunden til en gradient, men da den ikke er uendelig lang sætter vi også lige en baggrundsfarve <img src='http://jayj.dk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#kontaktform</span> h3 <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">36px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">30px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#kontaktform</span> p <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">margin-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">30px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#kontaktform</span> label <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">18px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">41px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">41px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Samme som højden, centrer teksten */</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p><code>#kontaktform h3</code> er &#8220;Kontakt mig&#8221; overskriften. Alle elementerne i formen er wrappet ind i &lt;p> tags, som vi sætter til <code>margin-bottom: 30px;</code> for at adskille dem fra hinanden. Vi sætter <code>position: relative;</code>, fordi vi senere sætter fejlbeskeden til <code>position: absolute;</code>.</p>
<h3>Input felterne</h3>
<p>Nu skal vi style input felterne. Da alle tekstfelterne har <code>type="text"</code>, er det oplagt at style alle felterne med <code>type="text"</code> i stedet for at give felterne en class. For at style alle tekst input felterne bruger vi <code>input[type=text]</code>. Det virker godt nok ikke i IE6, men er det ikke ligemeget?</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#kontaktform</span> input<span style="color: #00AA00;">&#91;</span>type<span style="color: #00AA00;">=</span><span style="color: #993333;">text</span><span style="color: #00AA00;">&#93;</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span> <span style="color: #808080; font-style: italic;">/* Alle inputfelter med typen text */</span>
<span style="color: #cc00cc;">#kontaktform</span> input<span style="color: #00AA00;">&#91;</span>type<span style="color: #00AA00;">=</span><span style="color: #993333;">text</span><span style="color: #00AA00;">&#93;</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#kontaktform</span> textarea <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/input.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">repeat-x</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#cbcbcb</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#aeaeae</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#kontaktform</span> input<span style="color: #00AA00;">&#91;</span>type<span style="color: #00AA00;">=</span><span style="color: #993333;">text</span><span style="color: #00AA00;">&#93;</span><span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#kontaktform</span> input<span style="color: #00AA00;">&#91;</span>type<span style="color: #00AA00;">=</span><span style="color: #993333;">text</span><span style="color: #00AA00;">&#93;</span><span style="color: #3333ff;">:focus</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#kontaktform</span> textarea<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#kontaktform</span> textarea<span style="color: #3333ff;">:focus </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#aeaeae</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#333</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#kontaktform</span> input<span style="color: #00AA00;">&#91;</span>type<span style="color: #00AA00;">=</span><span style="color: #993333;">text</span><span style="color: #00AA00;">&#93;</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">333px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#kontaktform</span> textarea <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">408px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span> <span style="color: #808080; font-style: italic;">/* Overflow fjerner scrollbar i IE */</span>
&nbsp;
<span style="color: #cc00cc;">#kontaktform</span> input<span style="color: #00AA00;">&#91;</span>type<span style="color: #00AA00;">=</span>submit<span style="color: #00AA00;">&#93;</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #808080; font-style: italic;">/* Alle inputfelter med typen submit */</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#dedede</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/submit.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">repeat-x</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#aeaeae</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">18px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">175px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">cursor</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">pointer</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#kontaktform</span> input<span style="color: #00AA00;">&#91;</span>type<span style="color: #00AA00;">=</span>submit<span style="color: #00AA00;">&#93;</span><span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#949494</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre></div></div>

<p><em><a href="http://www.smashingmagazine.com/2009/08/17/taming-advanced-css-selectors" title="CSS selectors">Læs mere om CSS selectors på Smashing Magazine</a></em></p>
<h3>Fejl besked</h3>
<p>Der skal selvfølgelig også være en fejlbesked. Vil ikke gå så meget i dybden med den.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">span<span style="color: #6666ff;">.error</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#ffebe8</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#C00</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">14px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">7px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
&nbsp;
       <span style="color: #808080; font-style: italic;">/* CSS3 */</span>
	opacity<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0.75</span><span style="color: #00AA00;">;</span>
	border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
	-webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span> 
	-moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<h3>CSS3</h3>
<p>Nu skal vi til det sjove, der kun virker i moderne browsers som Safari, Chrome og Firefox. Nemlig CSS3 features, som runde hjørner og tekst skygge.</p>
<p>Vi starter først med nogle runde hjørner på selve formen, input felterne og tekstfeltet</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#kontaktform</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#kontaktform</span> input<span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#kontaktform</span> textarea <span style="color: #00AA00;">&#123;</span>
	border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Denne officielle border-radius, bliver pt. ikke brugt af nogle browsere */</span> 
	-webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Runde hjørner i Webkit browsere (bla Safari og Chrome)*/</span>
	-moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Runde hjørner i Firefox */</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Cool hva&#8217;? <img src='http://jayj.dk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Lad os rykke videre til en næsten hvid tekst skygge på overskriften, labelsne og Send knappen.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#kontaktform</span> h3<span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#kontaktform</span> input<span style="color: #cc00cc;">#submit</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#kontaktform</span> label <span style="color: #00AA00;">&#123;</span> 
        <span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#f6f5f5</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Tekst shadow i Safari, Chrome, Firefox og Opera10 */</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Læs mere om CSS3:</p>
<ul>
<li><a href="http://www.css3.info/" title="CSS3.info">CSS3.info</a></li>
<li><a href="http://net.tutsplus.com/tutorials/html-css-techniques/5-techniques-to-acquaint-you-with-css-3/" title="5 Techniques to Acquaint You With CSS 3">5 Techniques to Acquaint You With CSS 3</a></li>
<li><a href="http://net.tutsplus.com/videos/screencasts/a-crash-course-in-advanced-css3-effects/" title="A Crash-Course in Advanced CSS3 Effects">A Crash-Course in Advanced CSS3 Effects (video)</a></li>
</ul>
<h4>Download &#038; Demo</h4>
<p><div class="download"><a href="http://jayj.dk/download/4" title="Download Kontaktform">Download Kontaktform</a><br /><small>364 downloads</small></div><br />
</p>
<h6><a href="http://jayj.dk/examples/grey-form/" title="Demo">Demo</a></h6>
</p>
<p>Så var så alt for i dag. Har du spørgsmål eller kommentarer, er du velkommen til at skrive en kommentar, så skal jeg nok prøve at give dig svar.</p>
]]></content:encoded>
			<wfw:commentRss>http://jayj.dk/css-kontaktform/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>5 WordPress tricks</title>
		<link>http://jayj.dk/5-wordpress-tricks/</link>
		<comments>http://jayj.dk/5-wordpress-tricks/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 13:43:11 +0000</pubDate>
		<dc:creator>Jesper</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://jayj.dk/?p=641</guid>
		<description><![CDATA[I denne uge har jeg gravet 5 WordPress tricks frem, som jeg vil dele med jer. Der er alt lige fra &#8220;shortcodes&#8221; til hvordan man gør sit tema oversættelse klar. Mastering WordPress Shortcodes WordPress Configuration Tricks Brug custom taxonomies til at lave en filmdatabase Fjern en kategori fra dit RSS Feed Gør dit tema oversættelse [...]]]></description>
			<content:encoded><![CDATA[<p>I denne uge har jeg gravet 5 WordPress tricks frem, som jeg vil dele med jer. Der er alt lige fra &#8220;shortcodes&#8221; til hvordan man gør sit tema oversættelse klar.</p>
<h3>Mastering WordPress Shortcodes</h3>
<p><a href="http://www.smashingmagazine.com/2009/02/02/mastering-wordpress-shortcodes"><img src="http://jayj.dk/wp-content/uploads/wordpress_shortcodes_3.jpg" alt="Wordpress Shortcodes" title="Wordpress Shortcodes" width="599" height="150" class="size-full wp-image-599" /></a></p>
<p><span id="more-641"></span></p>
<h3>WordPress Configuration Tricks</h3>
<p><a href="http://diggingintowordpress.com/2009/06/wordpress-configuration-tricks"><img src="http://jayj.dk/wp-content/uploads/wp_config.jpg" alt="WP-Config" title="WP-Config" width="599" height="150" class="size-full wp-image-613" /></a></p>
<h3>Brug custom taxonomies til at lave en filmdatabase</h3>
<p><a href="http://justintadlock.com/archives/2009/06/04/using-custom-taxonomies-to-create-a-movie-database"><img src="http://jayj.dk/wp-content/uploads/movie_database.jpg" alt="Lav en filmdatabase" title="Lav en filmdatabase" width="599" height="150" class="size-full wp-image-615" /></a></p>
<h3>Fjern en kategori fra dit RSS Feed</h3>
<p><a href="http://yoast.com/exclude-category-feed/"><img src="http://jayj.dk/wp-content/uploads/remove_cat.jpg" alt="Fjern kategori fra RSS Feed" title="Fjern kategori fra RSS Feed" width="599" height="150" class="size-full wp-image-616" /></a></p>
<h3>Gør dit tema oversættelse klar</h3>
<p><a href="http://www.wprecipes.com/make-your-wordpress-theme-translatable"><img src="http://jayj.dk/wp-content/uploads/flags.jpg" alt="Gør dit tema oversættelse klar" title="Gør dit tema oversættelse klar" width="599" height="150" class="size-full wp-image-619" /></a></p>
<p>Kender du andre gode WordPress tutorials du vil dele med os andre? Så skriv en kommentar med linket til den <img src='http://jayj.dk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://jayj.dk/5-wordpress-tricks/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Template: Green Tomec</title>
		<link>http://jayj.dk/green-tomec/</link>
		<comments>http://jayj.dk/green-tomec/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 14:09:52 +0000</pubDate>
		<dc:creator>Jesper</dc:creator>
				<category><![CDATA[Downloads]]></category>
		<category><![CDATA[Nyheder]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[green]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[tomec]]></category>

		<guid isPermaLink="false">http://jayj.dk/?p=655</guid>
		<description><![CDATA[Har endelig fået lavet endnu en hjemmeside template. Som tilfældet ved Necoan WordPress temaet er denne desværre heller ikke helt gratis &#8211; Skal nok få lavet nogle flere Selvom den ikke er helt gratis, er prisen heller helt ude i hampen &#8211; For lidt over 50 kr kan du købe den på Themeforest.net. Green Tomec [...]]]></description>
			<content:encoded><![CDATA[<p>Har endelig fået lavet endnu en hjemmeside template. Som tilfældet ved <a href="http://jayj.dk/nyt-wordpress-tema/">Necoan WordPress temaet</a> er denne desværre heller ikke helt gratis &#8211; Skal nok få lavet nogle flere <img src='http://jayj.dk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Selvom den ikke er helt gratis, er prisen heller helt ude i hampen &#8211; For lidt over 50 kr kan du købe den på <a href="http://themeforest.net/item/green-tomec-business-template/46456?ref=jayjdk" title="Køb Green Tomec på Themeforest">Themeforest.net</a>.</p>
<p>Green Tomec er en template som passer perfekt til din virksomhedshjemmeside &#8211; eller bare som din egen personlige portfolio.</p>
<p><span id="more-655"></span></p>
<p>Nøgle features:</p>
<ul>
<li><strong>Valid</strong> Xhtml 1.0 Strict</li>
<li>Let at bruge og redigere</li>
<li><strong>Galleri</strong> med Fancybox, automatisk thumbnail resizing, cache og jQuery Coda-Slider hvis du vil have flere sider</li>
<li><strong>Tested og virker med:</strong>IE6, IE7, IE8, Safari, FF3, Opera og Chrome</li>
<li>jQuery</li>
<li><strong>3 PSD files følger med</strong> &#8211; Den første indeholder alle 4 sider. Nummer 2 er med logoet, og den sidste indeholder nogle af de ting du måske til ændre (fx knapperne og headeren)</li>
<li><strong>Funktionel PHP kontaktform</strong> med jQuery validation</li>
<li>Dropdown menu support</li>
<li>Kommenteret kode</li>
<li>Godt dokumenteret</li>
</ul>
<p><a href="http://themeforest.net/item/green-tomec-business-template/46456?ref=jayjdk"><img src="http://s3.envato.com/files/133400/1_Home.__large_preview.jpg" alt="Green Tomec Business Template" /></a></p>
<div class="download">
<a href="http://themeforest.net/item/green-tomec-business-template/46456" title="Køb Green Tomec på ThemeForest.net"><img src="http://jayj.dk/wp-content/uploads/133399.jpg" alt="Green Tomec" class="dlimage alignleft"  /></a><br />
<a href="http://themeforest.net/item/green-tomec-business-template/46456">Køb på ThemeForest.net for bare 50kr! ($10)</a><br />
<a href="http://jayj.dk/templates/tomec">Live demo</a>
</div>
<p>Hvis du behøver hjælp, har et spørgsmål eller har fundet en bug så kontakt mig via ThemeForest, kontaktsiden eller i en kommentar.</p>
]]></content:encoded>
			<wfw:commentRss>http://jayj.dk/green-tomec/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kategori tag cloud</title>
		<link>http://jayj.dk/kategori-tag-cloud/</link>
		<comments>http://jayj.dk/kategori-tag-cloud/#comments</comments>
		<pubDate>Sun, 14 Jun 2009 14:03:58 +0000</pubDate>
		<dc:creator>Jesper</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[kategori]]></category>
		<category><![CDATA[tag]]></category>

		<guid isPermaLink="false">http://jayj.dk/?p=650</guid>
		<description><![CDATA[Hvis du bruger WordPress kender du garanteret til &#8220;Tag cloud&#8221;, som er de mest bruge tags i sky-format. Afhængigt af hvordan din WordPress blog er oprettet, kan du have interesse i at vise dine WordPress-tags til dine læsere. Er du bare helt lost og aner ikke hvad jeg snakker om? Ta&#8217; et kig på dette [...]]]></description>
			<content:encoded><![CDATA[<p>Hvis du bruger WordPress kender du garanteret til &#8220;Tag cloud&#8221;, som er de mest bruge tags i sky-format. Afhængigt af hvordan din WordPress blog er oprettet, kan du have interesse i at vise dine WordPress-tags til dine læsere. Er du bare helt lost og aner ikke hvad jeg snakker om? Ta&#8217; et kig på dette billede, så får du måske en idé om det! <img src='http://jayj.dk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><img src="http://jayj.dk/wp-content/uploads/tagcloud.png" alt="Wordpress tag cloud" title="Wordpress tag cloud" width="294" height="348" class="size-full wp-image-570" /></p>
<p>Fra og med WordPress 2.8 som udkom for nogle dage siden er det nu ikke kun muligt at vise tags, det er også muligt at vise kategorier og link kategorier.</p>
<p>Dette er koden til den normale tag sky:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_tag_cloud<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p><a href="http://codex.wordpress.org/Template_Tags/wp_tag_cloud">Du kan læse i codexet om wp_tag_cloud</a></p>
<p>Hvis du går ned til taxonomy, kan du se at <code>category</code> er det der laver Kategori skyen</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_tag_cloud<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'taxonomy=category'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p><img src="http://jayj.dk/wp-content/uploads/kategoricloud.png" alt="Wordpress kategori cloud" title="Wordpress kategori cloud" width="291" height="237" class="size-full wp-image-577" /></p>
]]></content:encoded>
			<wfw:commentRss>http://jayj.dk/kategori-tag-cloud/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk (enhanced)

Served from: jayj.dk @ 2010-09-08 04:10:32 -->