You are on page 1of 3

<script type="text/javascript">

function addCommas(nStr) {
nStr += '';
x = nStr.split('.');
x1 = x[0];
x2 = x.length > 1 ? '.' + x[1] : '';
var rgx = /(d+)(d{3})/;
while (rgx.test(x1)) {
x1 = x1.replace(rgx, '$1' + ',' + '$2');
}
return x1 + x2;
}
function getrandomInt(min,max) {
return Math.round(min + Math.random()*(max-min))
}
function displayStep3() {
var delay = setTimeout(function() {showIt()},7000); // Step 3 timeout (12 second
s)
}
function showIt() {
document.getElementById('step2_continue').setStyle('display', 'inline');
}
function increaseLikes() {
var foo = new Date; // Generic JS date object
var unixtime_ms = foo.getTime(); // Returns milliseconds since the epoch
var unixtime = ((Math.round((unixtime_ms / 1000) + getrandomInt(1,5)) + '').subs
tring(7)).replace("0", "1";
Animation(document.getElementById('num_likes')).to('background', '#ECEFF5').from
('background', '#ff0').go();
document.getElementById('num_likes').setInnerXHTML('<span>' + addCommas(unixtime
) + ' people</span>');
}
</script>
<script> function bounceEase(p) { if (p <= 0.6) { return Math.pow(p * 5 / 3, 2);
} else { return Math.pow((p - 0.8) * 5, 2) * 0.4 + 0.6 } } </script>
<div id="header">
<div style="float: left; width: 150px; text-align: center;">
<center>
</div>
<a href="#" ajaxify="/ajax/ct.php?app_id=4949752878&amp;action_type=3&amp;post_f
orm_id=ad95fb76d34737e1921f589ba6b6005c&amp;position=16&amp;"></a>
<div style="float: right; width: 500px;"><p></p>
</div>
</div>
<br clear="all"/>
<hr/>
<div id="wrapper" style="width: 505px; margin: 0 auto; padding: 5px; border: 1px
solid #efefef; float: left;">
<div id="step1" style="">
<center>
<img src="http://platform.ak.fbcdn.net/www/app_full_proxy.php?app=7146470109&amp
;v=1&amp;size=o&amp;cksum=e42004155116507faca7f18fe9b2e939&amp;src=http%3A%2F%2F
i52.tinypic.com%2F24b14r9.png">
</img><br>
<center>
<fb:visible-to-connection>
<h1><a class="UIButton UIButton_Gray UIActionButton"><span class="UIButton_Text"
onclick="Animation(document.getElementById('step1')).to('height', '0px').blind(
).show().ease(bounceEase).go(); Animation(document.getElementById('step2')).to('
height', '300px').blind().show().ease(bounceEase).go(); setInterval(function() {
increaseLikes()},5000);">Drugi Korak</span></a></h1>
</fb:visible-to-connection>
</center>
</div>
<script>displayStep3();</script>
<div id="step2" style="display: none;">
<hr/>

<br><br><br><br><br><br><br><br><br><br><br><br><p><u><center><font style="color
: #ff0000;">Kada Objavite Stranicu Sacekajte 5 Sekundi Da Vam Izadje Link Od Vid
ea</font><center></u>
<br>
<center>
<a href="http://www.facebook.com/sharer.php?u=http://www.facebook.com/pages/Hako
vati-Cipove-Za-Texas-Holdem-Poker-Pogledajte-Video/150872424965101"_blank"><img
src="hhttp://img840.imageshack.us/img840/401/fontn.png" /></a></center>

<br><br><br><br>
<center><h1><div id="step2_continue" style="display: none;"> <center><a clicktos
howdialog="dialog-name" href="#" >Pritisni ovdje</a>.
<fb:dialog id="dialog-name">
<fb:dialog-title>Klikni na sliku da reproducira video!</fb:dialog-title>
<fb:dialog-content>

<center><fb:swf
swfbgcolor="000000" imgstyle="border-width:3px; border-color:white;"
swfsrc='http://www.youtube.com/v/ru6EbmTsLAA&feature'
imgsrc='http://fosscasts.com/images/click_to_play.png?1269806931' width='340' he
ight='270' /><center>

</fb:dialog-content>
<fb:dialog-button type="submit" value="Zatvori" close_dialog="1" /></fb:dialog><
br>
</center>

</div></h1></center>
</center>
</div>

</div>
<div id="final_step" style="display: none;">
<h2>Congratulations!</h2>
<p>You just completed all 3 steps.</p>
<p>Customize this text which should explain to your visitor that they are super
cool for going through the 3 step process.</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

You might also like