<?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>Kubiczek devblog &#187; Gotowe skrypty i programy</title>
	<atom:link href="http://blog.kubiczek.eu/category/download/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.kubiczek.eu</link>
	<description>I&#039;m lovin&#039; it ;)</description>
	<lastBuildDate>Thu, 19 Jan 2012 12:09:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>FemtoPlayer &#8211; mini free mp3 flash player</title>
		<link>http://blog.kubiczek.eu/2008/11/femtoplayer-mini-free-mp3-flash-player/</link>
		<comments>http://blog.kubiczek.eu/2008/11/femtoplayer-mini-free-mp3-flash-player/#comments</comments>
		<pubDate>Mon, 17 Nov 2008 13:01:18 +0000</pubDate>
		<dc:creator>Adam Kubiczek</dc:creator>
				<category><![CDATA[Gotowe skrypty i programy]]></category>
		<category><![CDATA[#Actionscript]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://kubiczek.net.pl/?p=120</guid>
		<description><![CDATA[Kilka dni temu szukałem malutkiego mp3 playera, który wyświetlał by jedynie ikonkę z przyciskiem play i odgrywał wskazany dźwięk mp3. Poszukiwania w googlu dały kilka rezultatów, ale każdy z nich albo był &#8220;za bardzo&#8221;, albo miał złą licencję. Zamiast tracić dalej czas napisałem te kilkanaście linijek kodu i stworzyłem swój własny FemtoPlayer &#8211; Femto to [...]]]></description>
			<content:encoded><![CDATA[<p>Kilka dni temu szukałem malutkiego mp3 playera, który wyświetlał by jedynie ikonkę z przyciskiem play i odgrywał wskazany dźwięk mp3. Poszukiwania w googlu dały kilka rezultatów, ale każdy z nich albo był &#8220;za bardzo&#8221;, albo miał złą licencję. Zamiast tracić dalej czas napisałem te kilkanaście linijek kodu i stworzyłem swój własny FemtoPlayer &#8211; Femto to brzmi dumnie ;)</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="20" height="25" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="FlashVars" value="file=/files/femtoplayer/test.mp3&amp;autoplay=false" /><param name="wmode" value="transparent" /><param name="src" value="/files/femtoplayer/femtoplayer.swf" /><param name="flashvars" value="file=/files/femtoplayer/test.mp3&amp;autoplay=false" /><embed type="application/x-shockwave-flash" width="20" height="25" src="/files/femtoplayer/femtoplayer.swf" wmode="transparent" flashvars="file=/files/femtoplayer/test.mp3&amp;autoplay=false"></embed></object></p>
<p>Parametry:</p>
<pre>file = pathToMP3 //ścieżka do pliku mp3
autoplay = true|false //czy automatycznie odgrywać dźwięk po wczytaniu</pre>
<p>Przykład użycia:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;object classid=&quot;clsid:d27cdb6e-ae6d-11cf-96b8-444553540000&quot; width=&quot;20&quot; height=&quot;25&quot; codebase=&quot;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0&quot;&gt;&lt;param name=&quot;FlashVars&quot; value=&quot;file=test.mp3&amp;amp;autoplay=true&quot; /&gt;&lt;param name=&quot;src&quot; value=&quot;FemtoPlayer.swf&quot; /&gt;&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot; /&gt;&lt;param name=&quot;flashvars&quot; value=&quot;file=test.mp3&amp;amp;autoplay=true&quot; /&gt;&lt;embed type=&quot;application/x-shockwave-flash&quot; width=&quot;20&quot; height=&quot;25&quot; src=&quot;FemtoPlayer.swf&quot; wmode=&quot;transparent&quot; flashvars=&quot;file=test.mp3&amp;amp;autoplay=true&quot;&gt;&lt;/embed&gt;&lt;/object&gt;</pre></div></div>

<p>SWF do pobrania: <a href="/files/femtoplayer/femtoplayer.zip">download</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.kubiczek.eu/2008/11/femtoplayer-mini-free-mp3-flash-player/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DateTimePicker komponent</title>
		<link>http://blog.kubiczek.eu/2008/09/datetimepicker-komponent/</link>
		<comments>http://blog.kubiczek.eu/2008/09/datetimepicker-komponent/#comments</comments>
		<pubDate>Mon, 01 Sep 2008 16:11:05 +0000</pubDate>
		<dc:creator>Adam Kubiczek</dc:creator>
				<category><![CDATA[Gotowe skrypty i programy]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://kubiczek.net.pl/?p=80</guid>
		<description><![CDATA[Takie coś kiedyś napisałem (hen dawno temu), a teraz na powrót to odkryłem: (aby zobaczyć prawidłowo funkcjonujące demo otwórz skrypt w nowym oknie) Jest to prosty skrypt wyświetlający kalendarzyk, i wstawiający wybraną przez użytkownika datę do pola tekstowego. Wywołanie skryptu jest banalne: &#60;input id=&#34;DateShow&#34; style=&#34;width: 80px;&#34; maxlength=&#34;10&#34; name=&#34;DateShow&#34; type=&#34;text&#34; /&#62; &#60;img style=&#34;cursor:pointer;&#34; onclick=&#34;DateTimePicker.Show(this,'DateShow');&#34; src=&#34;calendar.gif&#34; alt=&#34;&#34; [...]]]></description>
			<content:encoded><![CDATA[<p>Takie coś kiedyś napisałem (hen dawno temu), a teraz na powrót to odkryłem:</p>
<p>
<style type="text/css">
table.ems-date-picker { font-family:verdana; font-size:7pt; background-color:rgb(234,229,206); border:1px solid black; }

table.ems-date-picker td.month { text-align:center; font-weight:bold; color: black; width:60px; }

table.ems-date-picker td.year { text-align:center; font-weight:bold; color: black; width:40px; }

/* Current day */ table.ems-date-picker td.today { text-align:center; font-weight:bold; color: black; padding:2px; cursor:pointer; }

table.ems-date-picker td.today_h { text-align:center; font-weight:bold; color:white; padding:2px; background-color:blue; cursor:pointer; }

/* Current month's days */ table.ems-date-picker td.currentmonth { text-align:center; color: black; padding:2px; cursor:pointer; }

table.ems-date-picker td.currentmonth_h { text-align:center; color: white; background-color:blue; padding:2px; cursor:pointer; }

/* Previous or next month's days */ table.ems-date-picker td.nextprevmonth { text-align:center; color: #555555; padding:2px; cursor:pointer; }

table.ems-date-picker td.nextprevmonth_h { text-align:center; color: black; padding:2px; cursor:pointer; }

/* Weekdays' names */ table.ems-date-picker th.weekday { background-color:rgb(161,60,60); color:white; padding:2px; padding-left:5px; padding-right:5px; }

input.ems-date-picker-button { font-family:helvetica; font-size:8pt; font-weight:bold; border:none; background-color:rgb(234,229,206); }  
</style>
</p>
<p><script lang="javascript" src="/files/datetimepicker/datetimepicker.js" type="text/javascript"></script></p>
<input id="DateShow" style="width: 80px;" maxlength="10" name="DateShow" type="text" /> <img style="cursor:pointer;" onclick="DateTimePicker.Show(this,'DateShow');" src="/files/datetimepicker/calendar.gif" alt="" /></p>
<p>(aby zobaczyć prawidłowo funkcjonujące demo <a href="files/datetimepicker/datetimepicker.html" target="_blank">otwórz skrypt w nowym oknie</a>)</p>
<p>Jest to prosty skrypt wyświetlający kalendarzyk, i wstawiający wybraną przez użytkownika datę do pola tekstowego. Wywołanie skryptu jest banalne:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;input id=&quot;DateShow&quot; style=&quot;width: 80px;&quot; maxlength=&quot;10&quot; name=&quot;DateShow&quot; type=&quot;text&quot; /&gt;
&lt;img style=&quot;cursor:pointer;&quot; onclick=&quot;DateTimePicker.Show(this,'DateShow');&quot; src=&quot;calendar.gif&quot; alt=&quot;&quot; /&gt;</pre></div></div>

<p>W drugim parametrze przekazujemy id pola tekstowego, do którego chcemy wstawić wybraną przez użytkownika datę. Paczuszkę ze skryptem, stylami i przykładowym użyciem można <a href="/files/datetimepicker/datetimepicker.zip">pobrać tutaj</a>. Jak zajrzycie do kodu źródłowego, to odkryjecie wiele dodatkowych możliwości (ok, zdradzę trochę: można zmienić język w jakim kalendarz jest wyświetlany, albo format zwracanej daty).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.kubiczek.eu/2008/09/datetimepicker-komponent/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Scroller, pokazywacz komunikatów, reklam itp.</title>
		<link>http://blog.kubiczek.eu/2008/08/scroller-pokazywacz-komunikatow-reklam-itp/</link>
		<comments>http://blog.kubiczek.eu/2008/08/scroller-pokazywacz-komunikatow-reklam-itp/#comments</comments>
		<pubDate>Tue, 26 Aug 2008 22:23:15 +0000</pubDate>
		<dc:creator>Adam Kubiczek</dc:creator>
				<category><![CDATA[Gotowe skrypty i programy]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://kubiczek.net.pl/?p=40</guid>
		<description><![CDATA[Pod tym wybitnym tytułem, kryje się obiekt w Javascript, który powstał pewnego dnia w przerwie pomiędzy pierwszą kanapką a drugą ;). W każdym razie umożliwia on łatwo osiągnięcie takiego efektu jak widać to poniżej. A oto kod obiektu: function Scroller&#40;divID,stringsArray&#41; &#123; &#160; var pause=3000; &#160; var currentIndex=0; var mainDiv=document.getElementById&#40;divID&#41;; var innerDiv=document.createElement&#40;'div'&#41;; mainDiv.style.overflow='hidden'; &#160; mainDiv.appendChild&#40;innerDiv&#41;; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>Pod tym wybitnym tytułem, kryje się obiekt w Javascript, który powstał pewnego dnia w przerwie pomiędzy pierwszą kanapką a drugą ;). W każdym razie umożliwia on łatwo osiągnięcie takiego efektu jak widać to poniżej.</p>
<p>A oto kod obiektu:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> Scroller<span style="color: #009900;">&#40;</span>divID<span style="color: #339933;">,</span>stringsArray<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #003366; font-weight: bold;">var</span> pause<span style="color: #339933;">=</span><span style="color: #CC0000;">3000</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #003366; font-weight: bold;">var</span> currentIndex<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> mainDiv<span style="color: #339933;">=</span>document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span>divID<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> innerDiv<span style="color: #339933;">=</span>document.<span style="color: #660066;">createElement</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'div'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	mainDiv.<span style="color: #660066;">style</span>.<span style="color: #660066;">overflow</span><span style="color: #339933;">=</span><span style="color: #3366CC;">'hidden'</span><span style="color: #339933;">;</span>
&nbsp;
	mainDiv.<span style="color: #660066;">appendChild</span><span style="color: #009900;">&#40;</span>innerDiv<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>	
&nbsp;
	<span style="color: #003366; font-weight: bold;">var</span> marginTop<span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> stepDelta<span style="color: #339933;">=</span><span style="color: #CC0000;">2</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #003366; font-weight: bold;">var</span> initScrolling <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		marginTop<span style="color: #339933;">=</span>mainDiv.<span style="color: #660066;">offsetHeight</span><span style="color: #339933;">;</span>
		innerDiv.<span style="color: #660066;">innerHTML</span><span style="color: #339933;">=</span>stringsArray<span style="color: #009900;">&#91;</span>currentIndex<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
		innerDiv.<span style="color: #660066;">style</span>.<span style="color: #660066;">marginTop</span><span style="color: #339933;">=</span>marginTop<span style="color: #339933;">+</span><span style="color: #3366CC;">'px'</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #003366; font-weight: bold;">var</span> CountDelta <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #003366; font-weight: bold;">var</span> newDelta<span style="color: #339933;">=</span>Math.<span style="color: #660066;">sin</span><span style="color: #009900;">&#40;</span>marginTop<span style="color: #339933;">/</span>mainDiv.<span style="color: #660066;">offsetHeight</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span><span style="color: #CC0000;">10</span><span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>newDelta<span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;=</span><span style="color: #CC0000;">0.01</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> newDelta<span style="color: #339933;">=</span><span style="color: #CC0000;">0.01</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>	
		<span style="color: #000066; font-weight: bold;">return</span> newDelta<span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>	
&nbsp;
	<span style="color: #003366; font-weight: bold;">var</span> SetPosition <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		stepDelta<span style="color: #339933;">=</span>CountDelta<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
&nbsp;
		<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>marginTop<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			marginTop<span style="color: #339933;">-=</span>stepDelta<span style="color: #339933;">;</span>			
			innerDiv.<span style="color: #660066;">style</span>.<span style="color: #660066;">marginTop</span><span style="color: #339933;">=</span>marginTop<span style="color: #339933;">+</span><span style="color: #3366CC;">'px'</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
&nbsp;
		<span style="color: #000066; font-weight: bold;">return</span> marginTop<span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #003366; font-weight: bold;">var</span> nextString <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>currentIndex<span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>stringsArray.<span style="color: #660066;">length</span><span style="color: #339933;">-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			currentIndex<span style="color: #339933;">++;</span>
		<span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
			currentIndex<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
		startScrolling<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #003366; font-weight: bold;">var</span> startScrolling <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
		initScrolling<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #003366; font-weight: bold;">var</span> stepInterval <span style="color: #339933;">=</span> window.<span style="color: #660066;">setInterval</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>SetPosition<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;=</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				clearInterval<span style="color: #009900;">&#40;</span>stepInterval<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				setTimeout<span style="color: #009900;">&#40;</span>nextString<span style="color: #339933;">,</span>pause<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</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: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	startScrolling<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>A tutaj przykład użycia:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;html&gt;
&lt;head&gt;
&lt;script src=&quot;scroller.js&quot; type=&quot;text/javascript&quot; language=&quot;javascript&quot;&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&nbsp;
&lt;div id=&quot;scroller&quot; style=&quot;width:300px;height:70px;padding:5px;background-color:orange;font-size:8pt;font-family:verdana;&quot;&gt;&lt;/div&gt;
&nbsp;
&lt;script type=&quot;text/javascript&quot; language=&quot;javascript&quot;&gt;
//&lt;![CDATA[
&nbsp;
var Strings=new Array();
Strings[0]='Hi! Jestem mrówka!';
Strings[1]='Lorem ipsum dolor sit amet consectetuer turpis lacinia Curabitur vel a. Massa morbi Donec est in leo consequat vestibulum lobortis enim.';
Strings[2]='Lákamí vůněhulás úmyval rohlivý jednovod lek vlač Partavěď ka vla.';
Strings[3]='Massa morbi Donec est in leo consequat vest. Massa morbi Donec est in leo consequat vest, massa morbi Donec est in leo consequat vest.';
&nbsp;
var scroller=new Scroller('scroller',Strings);
//]]&gt;
&lt;/script&gt;
&nbsp;
&nbsp;
&lt;/body&gt;
&lt;/html&gt;</pre></div></div>

<p>W pierwszym parametrze konstruktora przekazujemy ID warstwy na której chcemy wyświetlać komunikaty, w drugim natomiast tablicę z komunikatami. Voila.</p>
<p>Przetestowane pod Firefox2, IE7, Opera9.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.kubiczek.eu/2008/08/scroller-pokazywacz-komunikatow-reklam-itp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

