linkedin facebook linkedin facebook nod32

Audio-plerni ifodalash

Muallif: Mengliyev SH.

Qo`shilgan sana: 2015-04-16

Audio-plerni ifodalash

audio-player.js faylni hosil qilib <head> tegiga joylashtiramiz kodi quyida keltirilgan

audio-player.js

var ap_instances = new Array();

function ap_stopAll(playerID) {
for(var i = 0;i<ap_instances.length;i++) {
try {
if(ap_instances[i] != playerID) document.getElementById("audioplayer" + ap_instances[i].toString()).SetVariable("closePlayer", 1);
else document.getElementById("audioplayer" + ap_instances[i].toString()).SetVariable("closePlayer", 0);
} catch( errorObject ) {
// stop any errors
}
}
}

function ap_registerPlayers() {
var objectID;
var objectTags = document.getElementsByTagName("object");
for(var i=0;i<objectTags.length;i++) {
objectID = objectTags[i].id;
if(objectID.indexOf("audioplayer") == 0) {
ap_instances[i] = objectID.substring(11, objectID.length);
}
}
}

var ap_clearID = setInterval( ap_registerPlayers, 100 );

Index.html hosil qiling uning ko`rinishi quyidagicha

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>audio-pler</title>

<script src="audio/audio-player.js" type="text/javascript"></script>

</head>

<body>

<div style="margin-left:50px;">
<script language="JavaScript" src="http://www.tami.uz/audio/audio-player.js"></script>
<object type="application/x-shockwave-flash" data="http://www.tami.uz/audio/player.swf" id="audioplayer1" height="24" width="290">
<param name="movie" value="http://www.tami.uz/audio/player.swf">
<param name="FlashVars" value="playerID=1&amp;soundFile=http://www.tami.uz/audio/1.mp3">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="wmode" value="transparent">
</object></div>

</body>
</html>

oxirgi ko`rinish player.swf ni yuklab olib audio papkaga ko`chirib oling

player.swf fayl audio uchun

1022 marta o`qildi.

Parol:
Eslab qolish.


Ro`yhatdan o`tish

testing

+998915878681

Siz o`z maxsulotingizni 3D reklama ko`rinishda bo`lishini xohlaysizmi? Unda xamkorlik qilamiz.

3D Reklama


Рейтинг@Mail.ru
Рейтинг@Mail.ru

Besucherzahler
счетчик посещений