0
我想創建圖像和視頻幻燈片。幻燈片正在運行,但是當視頻正在運行時,幻燈片會轉到下一張幻燈片,因爲jquery超時。 我希望視頻完成後再轉到下一張幻燈片,即使視頻需要5分鐘才能運行。幻燈片圖像,與jQuery週期視頻
任何人都可以幫助我嗎?
這是腳本..
<head>
<script src="js/jquery-1.4.4.min.js" type="text/javascript"></script>
<script src="js/jquery.cycle.all.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#myslides').cycle({
fit: 1, pause: 2
});
});
</script>
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" />
</head>
<body>
<?php
echo " < table border=0 align=center width=1280 bgcolor=#FA9C56 CLASS='deepsea' >";
echo "< tr height=65><td><img src=images/logo.png width=50 height=50 border=0>< /td>
< td align=left width=100%>< font class=fakultas>< font color=#F3F60F>< strong>Fakultas Ilmu Sosial & Politik < /strong></ font>< /td>< /tr>";
echo "< /table>";
?>
< div id="myslides">
< ?php
include "config/koneksi.php";
$tanggalku = date("Y-m-d");
$cek_query= mysql_query("SELECT * FROM pengumuman a JOIN pengumuman_detail b ON a.id_pengumuman=b.id_pengumuman and deadline_pengumuman > '$tanggalku'");
while ($rs=mysql_fetch_array($cek_query))
{
echo "< table border=0 align=center width=1200>";
echo "< tr>";
echo "< td align=center width=100%>";
echo "< font class=judul><font color=#111111><strong>".$rs[judul_pengumuman]." </strong>< /font>";
echo "< /td>";
echo "< /tr>";
echo "< tr>";
echo "< td width=1200>";
echo '< tr>< td>< hr class="style2">< /td>< /tr>';
echo "< /td>";
echo "< /tr>";
echo "< tr>";
if ($rs[status]=='F')
{
echo "< td align=center>";
echo "< img src='foto/".$rs[file_upload]."' border=2 >";
echo "< /td>";
}
elseif ($rs[status]=='V')
{
echo "< td align=center>";
?>
< OBJECT ID="MediaPlayer" WIDTH=320 HEIGHT=331 CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject">
< PARAM NAME="FileName" VALUE="video-filename.wmv">
< PARAM name="ShowControls" VALUE="true">
< param name="ShowStatusBar" value="true">
< PARAM name="ShowDisplay" VALUE="true">
< PARAM name="autostart" VALUE="true">
< EMBED TYPE="application/x-mplayer2" SRC="ABBG.avi" NAME="MediaPlayer" WIDTH=820 HEIGHT=451 ShowControls="0"
ShowStatusBar="1" ShowDisplay="1" autostart="1"> </EMBED>
</OBJECT>
< ?php
echo "< /td>";
}
else
{
echo "< td width=1200 align=center>";
echo " ".$rs[isi_pengumuman_detail]."";
echo "< /td>";
}
echo "< /tr>";
echo "< /table>";
}
?>
</div>
我不認爲,如果無法檢測確切的視頻緩衝時間,因爲它取決於互聯網的速度。 –