Tolong pilih kategori sesuai, jenis posting (diskusi atau bukan) dan sertakan tag/topik yang sesuai seperti komputer, java, php, mysql, dll. Promosi atau posting tidak pada tempatnya akan kami hapus!
- Bagi Anda yang ingin mendaftar, baca link berikut:
http://diskusiweb.com/discussion/50491/how-to-registrasi-diskusiweb-com-baca-ini-terlebih-dahulu
- Cara menyisipkan kode program supaya tampil rapi dan terformat dengan baik di diskusiweb.com: http://www.diskusiweb.com/discussion/50415/cara-menyisipkan-kode-program-di-diskusiweb-com
- Cara posting gambar/image di post Anda: http://www.diskusiweb.com/discussion/47345/cara-menyisipkan-menyertakan-image-pada-posting/p1

Tanya JavaScript

Permisi masta...
mau tanya nih...
kode javascript di bawah maksud & tujuannya gmn yahh.. hehe. maklum newbie.. :D

<script language="JavaScript" type="text/javascript">
var sSport="180";
var RES_REFRESH = "<div class='iconRefresh' title='Refresh'></div>";
var RES_PLEASE_WAIT = "<div class='iconRefresh wait' title='Please Wait'></div>";
function SetPlayer(streamName, token, targetName) {
var swfVersion = "10.1.0";
var installSwf = "template/public/TV/playerProductInstall.swf";

var flashvars = {};
flashvars.uid = "";
flashvars.location = "ID";
flashvars.stream = streamName;
flashvars.token = token;
flashvars.button = "1,1,1,1,1,1";

var params = {};
params.quality = "high";
params.bgcolor = "#FFFFFF";
params.allowscriptaccess = "always";
params.allowfullscreen = "true";

var attributes = {};
attributes.id = targetName;
attributes.name = targetName;
attributes.align = "middle";

swfobject.embedSWF("template/public/TV/ONEBOOKPlayer.swf", targetName, "489", "384", swfVersion, installSwf, flashvars, params, attributes);
}
SetPlayer("Virtual10@s30307", "daEaXcRahcNb4anawbQb7dbcVdcdbcucCcY-buYYqz-jy-0MO", "player");
</script>

Tagged:

Comments

  • itu buat nge load flash player buat nge-play movie tertentu yg ditentukan lewat parameter
Sign In or Register to comment.