»
Tiếng AnhTiếng PhápTiếng Việt

In - Liên kết chơi nhạc khi rê chuột - JavaScriptBank.com

Phiên bản đầy đủ: jsB@nk » Liên kết » Liên kết chơi nhạc khi rê chuột
URL: https://www.javascriptbank.com/rollover-sounds-for-textlinks-imagelinks-and-menus.html

Liên kết chơi nhạc khi rê chuột © JavaScriptBank.comHiệu ứng làm cho liên kết có thể chơi nhạc khi ta rê con trỏ chuột đến.

Phiên bản đầy đủ: jsB@nk » Liên kết » Liên kết chơi nhạc khi rê chuột
URL: https://www.javascriptbank.com/rollover-sounds-for-textlinks-imagelinks-and-menus.html



CSS
<STYLE>.mainbody {COLOR: #ffffff; FONT-FAMILY: Arial; FONT-SIZE: 12pt; LEFT: 0px; POSITION: relative; TOP: 50px; WIDTH: 100%;}.soundpic {LEFT: -400px; POSITION: relative; TOP: -400px;}A {COLOR: #ff0000; TEXT-DECORATION: none}</STYLE><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


JavaScript
<SCRIPT language=javaScript><!-- Beginning of JavaScript -var x,y,ivar shakestrength=30var i=shakestrengthvar vorzeichen=1function showsoundpic() {if (document.all) {document.all.soundgif1.style.posTop=y-100document.all.soundgif1.style.posLeft=xshakesound()   }      if (document.layers) {document.soundgif1.top=y-100document.soundgif1.left=xshakesound()   }}function shakesound() {if (document.all) {if (i > 0) {document.all.soundgif1.style.posTop+=i*vorzeichendocument.all.soundgif1.style.posLeft+=i*vorzeichenvorzeichen=vorzeichen*(-1)i--var timer=setTimeout("shakesound()",50)}else {document.all.soundgif1.style.posTop=-400document.all.soundgif1.style.posLeft=-400i=shakestrengthclearTimeout(timer)}   }      if (document.layers) {if (i > 0) {document.soundgif1.top+=i*vorzeichendocument.soundgif1.left+=i*vorzeichenvorzeichen=vorzeichen*(-1)i--var timer=setTimeout("shakesound()",50)}else {document.soundgif1.top=-400document.soundgif1.left=-400i=shakestrengthclearTimeout(timer)}   }}function makesound(soundobj){showsoundpic()var thissound= eval("document."+soundobj)    thissound.play()}function handlerMM(e){x = (document.layers) ? e.pageX : event.clientXy = (document.layers) ? e.pageY : event.clientY}if (document.layers){document.captureEvents(Event.MOUSEMOVE);}document.onmousemove = handlerMM;// - End of JavaScript - --></SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<DIV class=soundpic id=soundgif1><IMG src="../image/logojs.gif" width="150" height="60"></DIV><DIV class=mainbody id=mainbody><A href="http://JavaScriptBank.com" onmouseover="makesound('sound1')" target=_blank>Move your mouse over this link</A></DIV><EMBED hidden=true name=sound1 src="5onit.mid" MASTERSOUND autostart="false" width="128" height="128"><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->