<?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>Software Developer &#187; JavaScript</title>
	<atom:link href="http://neonman.dk/category/programering/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://neonman.dk</link>
	<description>Paris Nakita Kejser aka NeoNmaN</description>
	<lastBuildDate>Tue, 31 Aug 2010 08:16:36 +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>Javascript / jQuery dropdown menu</title>
		<link>http://neonman.dk/2008/10/javascript-jquery-dropdown-menu/</link>
		<comments>http://neonman.dk/2008/10/javascript-jquery-dropdown-menu/#comments</comments>
		<pubDate>Wed, 22 Oct 2008 06:31:23 +0000</pubDate>
		<dc:creator>Paris Nakita Kejser</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://neonman.dk/?p=283</guid>
		<description><![CDATA[Har tit selv forsøgt mig frem med at finde så simple en dropdown menu som muligt, finder man dem i ren CSS er det alt alt for komplex til man kan ændre nået remlig hurtig. Så gik jeg til Javascript methoden og i langtid har...]]></description>
			<content:encoded><![CDATA[<p>Har tit selv forsøgt mig frem med at finde så simple en dropdown menu som muligt, finder man dem i ren CSS er det alt alt for komplex til man kan ændre nået remlig hurtig.</p>
<p>Så gik jeg til Javascript methoden og i langtid har jeg kun fundet alt alt for store dropdown bibloteker, så nu søgte jeg igen her igår og fandt denne side <a href="http://javascript-array.com/">http://javascript-array.com/</a></p>
<p>den er super fed da der er en simple, jQuery og Multi level dropdown menu i Javascript og i jQuery, der næst er menuere super simple at rette og tilføje indhold til.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://neonman.dk/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://neonman.dk/2008/10/javascript-jquery-dropdown-menu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Snart jQuery</title>
		<link>http://neonman.dk/2008/10/snart-jquery/</link>
		<comments>http://neonman.dk/2008/10/snart-jquery/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 06:25:21 +0000</pubDate>
		<dc:creator>Paris Nakita Kejser</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://neonman.dk/?p=252</guid>
		<description><![CDATA[Da jeg her i weekeden afprøvet JavaScript bibloteket jQuery, er det nu slået fast at jeg vil til at benytte det mere og mere. jQuery har nogle fede basic ting i sig som eks. slideUp og slideDown, det gør at det er nemt at få...]]></description>
			<content:encoded><![CDATA[<p>Da jeg her i weekeden afprøvet JavaScript bibloteket jQuery, er det nu slået fast at jeg vil til at benytte det mere og mere.</p>
<p>jQuery har nogle fede basic ting i sig som eks. slideUp og slideDown, det gør at det er nemt at få ting til at slide.</p>
<p>jQuery har også funktioner som eks. FadeOut og FadeIn med en masse andre ting også.</p>
<p>hvis du vil prøve jQuery kan du hente det helt gratis på <a href="http://jquery.com">http://jquery.com</a></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://neonman.dk/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://neonman.dk/2008/10/snart-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript variable  types</title>
		<link>http://neonman.dk/2008/02/javascript-variable-types/</link>
		<comments>http://neonman.dk/2008/02/javascript-variable-types/#comments</comments>
		<pubDate>Mon, 04 Feb 2008 02:24:22 +0000</pubDate>
		<dc:creator>Paris Nakita Kejser</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://neonman.dk/?p=105</guid>
		<description><![CDATA[I Javascript er der 5 typer det er undefined, null, boolean, number og string, du kan se følge eks. hvad der er hvad og hvordan man kan finde ud af det ved at poste det i en alert boks. PLAIN TEXT JAVASCRIPT: // Opretter variable....]]></description>
			<content:encoded><![CDATA[<p>I Javascript er der 5 typer det er undefined, null, boolean, number og string, du kan se følge eks. hvad der er hvad og hvordan man kan finde ud af det ved at poste det i en alert boks.</p>
<div class="igBar"><span id="ljavascript-2"><a href="#" onclick="javascript:showPlainTxt('javascript-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVASCRIPT:</span>
<div id="javascript-2">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">// Opretter variable.</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> oTmp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">// Hvis den er undefined</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<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: #000066; font-weight: bold;">typeof</span> oTmp <span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">// om den er sat true / false ved undefined</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000066;">alert</span><span style="color: #66cc66;">&#40;</span> oTmp == undefined <span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<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;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">/**</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> * Hvis den retuere et value vil den være false ellers vil den være true, hvis Javascript</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> * functionen ikke retuere nået er den undefined.</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> */</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">function</span> fnTmp<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<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;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000066;">alert</span><span style="color: #66cc66;">&#40;</span> fnTmp<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> == undefined <span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">/**</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> * Hvis null ikke er deinfert vil den være true, og null er aldrig definert så derfor vil</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> * den altid være true.</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> */</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<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: #003366; font-weight: bold;">null</span> == undefined <span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">/**</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> * Hvis bFound bliver sat til 0 vil det svare til false, der kan også sættes bFound til</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> * true eller 1.</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> */</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> bFound = <span style="color: #003366; font-weight: bold;">false</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">/**</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> * en Number type kan indeholde både 32bit og 64bit tal, nenden for her kan se hvordan</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> * de forskellige tal vil se ud med en kommentar oven for sig.</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;"> */</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> iNum1&nbsp; &nbsp;= <span style="color: #CC0000;color:#800000;">55</span>; <span style="color: #009900; font-style: italic;">// 55</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> iNum2&nbsp; &nbsp;= <span style="color: #CC0000;color:#800000;">070</span>; <span style="color: #009900; font-style: italic;">// 56</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> iNum3&nbsp; &nbsp;= 0x1f; <span style="color: #009900; font-style: italic;">// 31</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> iNum4&nbsp; &nbsp;= 0xAB; <span style="color: #009900; font-style: italic;">// 171</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> iNum5&nbsp; &nbsp;= <span style="color: #CC0000;color:#800000;">5</span>.<span style="color: #CC0000;color:#800000;">0</span>; <span style="color: #009900; font-style: italic;">// 5.0</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> iNum6&nbsp; &nbsp;= <span style="color: #CC0000;color:#800000;">3</span>.125e7; <span style="color: #009900; font-style: italic;">// 31.250.000 ( 3125e7 = 3125 i 7ene )</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000066;">alert</span> <span style="color: #66cc66;">&#40;</span> 10e5 <span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://neonman.dk/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://neonman.dk/2008/02/javascript-variable-types/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pre definer Javascript variabler</title>
		<link>http://neonman.dk/2008/02/pre-definer-javascript-variabler/</link>
		<comments>http://neonman.dk/2008/02/pre-definer-javascript-variabler/#comments</comments>
		<pubDate>Mon, 04 Feb 2008 01:56:21 +0000</pubDate>
		<dc:creator>Paris Nakita Kejser</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://neonman.dk/?p=104</guid>
		<description><![CDATA[I Javascript kan det hurtig blive uoverskuligt over hvad for nogle variabler der er defineret som string og hvad for nogle der er defineret som array's derfor er det en god ting et pre-definer sine varaibler. Her er der en lille guidt til hvordan man...]]></description>
			<content:encoded><![CDATA[<p>I Javascript kan det hurtig blive uoverskuligt over hvad for nogle variabler der er defineret som string og hvad for nogle der er defineret som array's derfor er det en god ting et pre-definer sine varaibler.</p>
<p>Her er der en lille guidt til hvordan man kan pre-definer sine variabler i Javascript</p>
<table>
<tr>
<td>Array</td>
<td>a</td>
<td>aValues</td>
</tr>
<tr>
<td>Boolean</td>
<td>b</td>
<td>bFound</td>
</tr>
<tr>
<td>Float ( Number )</td>
<td>f</td>
<td>fValue</td>
</tr>
<tr>
<td>Function</td>
<td>fn</td>
<td>fnMethod</td>
</tr>
<tr>
<td>Integer ( Number )</td>
<td>i</td>
<td>iValue</td>
</tr>
<tr>
<td>Object</td>
<td>o</td>
<td>oType</td>
</tr>
<tr>
<td>Regular Expression</td>
<td>re</td>
<td>rePattern</td>
</tr>
<tr>
<td>String</td>
<td>s</td>
<td>sValue</td>
</tr>
<tr>
<td>Variant ( can be any type )</td>
<td>v</td>
<td>vValue</td>
</tr>
</table>
<p>Håber denne liste kan hjælpe jer med enten at få selv en overskulige kode i Javascript eller med til at forstå kode som andre skriver til jer.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://neonman.dk/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://neonman.dk/2008/02/pre-definer-javascript-variabler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sortering af JavaScript array</title>
		<link>http://neonman.dk/2008/01/sortering-af-javascript-array/</link>
		<comments>http://neonman.dk/2008/01/sortering-af-javascript-array/#comments</comments>
		<pubDate>Wed, 30 Jan 2008 13:53:22 +0000</pubDate>
		<dc:creator>Paris Nakita Kejser</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://neonman.dk/?p=100</guid>
		<description><![CDATA[Når man gerne vil sortere et array eks. a, b, c, d osv.. kan det nemt lade sig gøre Det enste der skal gøres her er at du skal lave et JavaScript Array PLAIN TEXT JAVASCRIPT: var myArray = new array&#40;5&#41;; myArray&#91;0&#93; = "demo"; myArray&#91;1&#93;...]]></description>
			<content:encoded><![CDATA[<p>Når man gerne vil sortere et array eks. a, b, c, d osv.. kan det nemt lade sig gøre</p>
<p>Det enste der skal gøres her er at du skal lave et JavaScript Array</p>
<div class="igBar"><span id="ljavascript-6"><a href="#" onclick="javascript:showPlainTxt('javascript-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVASCRIPT:</span>
<div id="javascript-6">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> myArray = <span style="color: #003366; font-weight: bold;">new</span> array<span style="color: #66cc66;">&#40;</span><span style="color: #CC0000;color:#800000;">5</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">myArray<span style="color: #66cc66;">&#91;</span><span style="color: #CC0000;color:#800000;">0</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #3366CC;">"demo"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">myArray<span style="color: #66cc66;">&#91;</span><span style="color: #CC0000;color:#800000;">1</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #3366CC;">"array"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">myArray<span style="color: #66cc66;">&#91;</span><span style="color: #CC0000;color:#800000;">2</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #3366CC;">"hallo world"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">myArray<span style="color: #66cc66;">&#91;</span><span style="color: #CC0000;color:#800000;">3</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #3366CC;">"test"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">myArray<span style="color: #66cc66;">&#91;</span><span style="color: #CC0000;color:#800000;">4</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #3366CC;">"support"</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>efter du har lavet dit Array kan du køre en sort på den så det kommer i alfebetisk med a - z ved hjælp af dette</p>
<div class="igBar"><span id="ljavascript-7"><a href="#" onclick="javascript:showPlainTxt('javascript-7'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVASCRIPT:</span>
<div id="javascript-7">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">myArray.<span style="color: #006600;">sort</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000066;">alert</span><span style="color: #66cc66;">&#40;</span> myArray <span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Skulle du ønske at sortere det z - a isted for skriver du dette.</p>
<div class="igBar"><span id="ljavascript-8"><a href="#" onclick="javascript:showPlainTxt('javascript-8'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVASCRIPT:</span>
<div id="javascript-8">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">myArray.<span style="color: #006600;">sort</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">myArray.<span style="color: #006600;">reverse</span><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;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000066;">alert</span><span style="color: #66cc66;">&#40;</span> myArray <span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://neonman.dk/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://neonman.dk/2008/01/sortering-af-javascript-array/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
