搜索
贊助商

帖子標記'鼠標懸停'

鼠標懸停聲

星期五,2009年1月9日

這將插入的<BODY>節

<script LANGUAGE="JavaScript"> <! -
變種 aySound =新的Array();
/ /下面:源聲音文件將預裝
aySound [0] =“sound1.wav”;
aySound [1] =“sound2.wav”;
/ /不要修改下面這行
IE瀏覽器=(navigator.appVersion.indexOf(“的MSIE ")!=- 1&&document.all)? 1:0;
生理鹽水 =(navigator.appName ==“Netscape的”&&navigator.plugins [“LiveAudio”])? 1:0;
ver4 = IE瀏覽器| |生理鹽水? 1:0;
的onload = auPreload;
功能auPreload()(
如果(!ver4)返回;
如果(NS)的auEmb =新層(0,窗);
否則(
海峽 =“<DIV ID='auEmb' STYLE='position:absolute;'> </ DIV的>”;
document.body.insertAdjacentHTML(“BeforeEnd”,乙方);

變種海峽 =“;
對(我= 0;我<aySound.length;我+ +)
海峽 + =“<EMBED SRC='"+aySound[i]+"' AUTOSTART='FALSE' HIDDEN='TRUE'>”
如果(IE)的auEmb.innerHTML = STR基因;
否則(
auEmb.document.open();
auEmb.document.write(海峽);
auEmb.document.close();

auCon = IE瀏覽器? document.all.auIEContainer:auEmb;
auCon.control = auCtrl;

功能auCtrl(whSound,玩)(
如果(IE)的this.src =玩嗎? aySound [whSound]:“;
其他的eval(“this.document.embeds [whSound]。”+(玩嗎?“玩()":"停止()"))

功能playSound(whSound)(如果(window.auCon)auCon.control(whSound,真實);)
功能stopSound(whSound)(如果(window.auCon)auCon.control(whSound,假);)
//-></腳本>
請 <a href="#" onMouseOver="playSound(0)" onMouseOut="stopSound(0)">聲音 1 </一>
聲請 <a href="#" onMouseOver="playSound(0)" onMouseOut="stopSound(0)"> 2 </一>

翻譯