Atsitiktinis youtube video
Parašė nesby 2010 birželio 9 14:06:30
Cia buvo ikelta php random youtube video versija, kuri veikia ne ant visu tinklapiu. Perdariau ja ant javascript+patobulinau kelias klaideles.Gal kam pavers
[code]<script language="JavaScript">
<!--
var youtube = new Array ();
youtube[0] = "hJjZR3IMTg0";
youtube[1] = "lc9A1KxxuN0";
youtube[2] = "y3LKGX7K_tQ";
youtube[3] = "E54xGrDcMao";
var kiek = youtube.length;
var kint = Math.floor(kiek*Math.random());
document.write('<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/' + youtube[kint] + '&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/' + youtube[kint] + '&hl=en&fs=1"" allowfullscreen="true" width="425" height="344"></embed></object>')
//-->
</script>
[/code]
[b]Paaiskkinimas[/b]
youtube[0] = "hJjZR3IMTg0";
youtube[1] = "lc9A1KxxuN0";
youtube[2] = "y3LKGX7K_tQ";
youtube[3] = "E54xGrDcMao";
cia rasote youtubes video nuorodos dali kuri seka po v= pvz http://www.youtube.com/watch?v=ZBR2G-iI3-I tai bus ZBR2G-iI3-I