수색
신디케이트 조직
스폰서

게시물 태그 '소리'

랜덤 미디

Friday, January 9th, 2009

붙여넣기이 <BODY> 섹션으로

간단 language="javascript">
<! -
/ / 당신이 원본을 복사하면 이러한 라인을 유지하시기 바랍니다
/ / 만든 : 니콜라스 - http://www.javascript-page.com을

var에 currentdate = 0
var에 theranmidi = ""
var에 핵심 = 0

기능 StringArray (N)을 (
this.length = n;
var에 나 = 1 (용; 난 <= n; 난 + +) (
이 [나] = ''

)
)

남프랑스 = 새로운 StringArray (10)
남프랑스 [0] = 'midi1.mid'
미디 [1] = 'midi2.mid'
남프랑스 [2] = 'midi3.mid'
남프랑스 [3] = 'midi4.mid'
남프랑스 [4] = 'midi5.mid'
미디 [5] = 'midi6.mid'
남프랑스 [6] = 'midi7.mid'
남프랑스 [7] = 'midi8.mid'
남프랑스 [8] = 'midi9.mid'
남프랑스 [9] = 'midi10.mid'

= 만났 60 / midi.length

ranmidi () (함수
currentdate = 새로운 날짜 ()
핵심 = currentdate.getSeconds ()
adcore은 = Math.floor (코어 /) 쳤
핵심 = adcore
theranmidi = 남프랑스 [코어]
반환 (theranmidi)
)

( "RANDOM을 미디 document.write를 IS : <b> 다운로드"+ ranmidi ()+"</는 B> <br> <br>을 "
+는 "") src="+ranmidi()+" Width=200 Height=55 autostart=true hidden=true>을 <EMBED

/ / ->
</ 스크립트>

Mouseover 사운드

Friday, January 9th, 2009

<BODY> 섹션에 삽입이

간단하다 LANGUAGE="JavaScript"> <! -
var에 aySound = 새로운 배열 ();
사운드 파일에 대해 / / 아래 : 원본 탑재되고
aySound [0] = "sound1.wav";
aySound [1] = "sound2.wav";
/ / 마십시오이 라인을 아래 편집
인터넷 익스플로러 = (navigator.appVersion.indexOf ( "MSIE ")!=- 1 & & document.all)? 1시;
NS = (navigator.appName == "넷스케이프"& & "[navigator.plugins LiveAudio"])? 1시;
ver4 = IE를 | | NS? 1시;
onload = auPreload;
기능 auPreload () (
(있다면! ver4)을 반환합니다;
면 (NS) auEmb = 새로운 레이어 (0, 창);
또 (
통하여 str = "<div ID='auEmb' STYLE='position:absolute;'>의 </ DIV>" "나;
(document.body.insertAdjacentHTML "BeforeEnd", Str);
)
var에 str을 보여주고 = ";
은 (i = 0; 나는 <aySound.length; 난 + +)
통하여 str + = "<EMBED SRC='"+aySound[i]+"' AUTOSTART='FALSE' HIDDEN='TRUE'>"
면 (IE)를 auEmb.innerHTML = Str;
또 (
auEmb.document.open ();
(Str) auEmb.document.write;
auEmb.document.close ();
)
auCon = IE를? document.all.auIEContainer : auEmb;
auCon.control = auCtrl;
)
함수 auCtrl (whSound, 재생) (
면 (IE)를 this.src = 재생할 수 있습니까? aySound [소리] whSound : ";
다른 평가를 ( "[whSound]를 this.document.embeds가."이상 (놀이? "재생 ()":" ()")) 중지
)
함수 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 </>

번역