웹마스터 팁

링크 클릭시 사운드 효과입니다.
온클릭과 온마우스오버 다 가능합니다.






<style type="text/css">
<!--
A:link    {color:444444;text-decoration:none;}
A:visited {color:444444;text-decoration:none;}
A:active  {color:444444;text-decoration:none;}
A:hover  {color:444444;text-decoration:none;}
-->
</style>
<script LANGUAGE="JavaScript">
<!--
var ButtonSound = new Array();
ButtonSound[0] = "1.wav"; //사운드 파일의 경로
ButtonSound[1] = "2.wav"; //사운드 파일의 경로
ButtonSound[2] = "3.wav"; //사운드 파일의 경로
document.write('<BGSOUND ID="alertsound">')
IE = (navigator.appVersion.indexOf("MSIE")!=-1 && document.all)? 1:0;
NS = (navigator.appName=="Netscape" && navigator.plugins["LiveAudio"])? 1:0;
ver4 = IE||NS? 1:0;
onload=auPreload;

function auPreload() {
if (!ver4) return;
if (NS) auEmb = new Layer(0,window);
else {
Str = "<DIV ID='auEmb' STYLE='position:absolute;'></DIV>";
document.body.insertAdjacentHTML("BeforeEnd",Str);
}
var Str = '';
for (i=0;i<ButtonSound.length;i++)
Str += "<EMBED SRC='"+ButtonSound[i]+"' AUTOSTART='FALSE' HIDDEN='TRUE'>"
if (IE) auEmb.innerHTML = Str;
else {
auEmb.document.open();
auEmb.document.write(Str);
auEmb.document.close();
}
auCon = IE? document.all.alertsound:auEmb;
auCon.control = auCtrl;
}
function auCtrl(whSound,play) {
if (IE) this.src = play? ButtonSound[whSound]:'';
else eval("this.document.embeds[whSound]." + (play? "play()":"stop()"))
}
function musicplay(whSound) { if (window.auCon) auCon.control(whSound,true); }
function stopSound(whSound) { if (window.auCon) auCon.control(whSound,false); }
//-->
</script>





<a href="#" onmouseover="musicplay(0)">아햏햏</a>,

<a href="#" onClick="musicplay(1)">스타쉬피스</a>,

<a href="#" onClick="musicplay(2)">뚫흙뚫흙</a>,






제목 글쓴이 날짜
링크 클릭시 사운드 효과 [3] REAL 2003.04.09
이미지 링크로 사용하다가 짤렸을때 대체 이미지 [6] REAL 2003.04.09
새창뜨는 링크 누를때 스크롤바 고정시키기 [8] REAL 2003.04.09
textbox의 값을 오른쪽부터 채우기. [1] RedEye 2003.04.12
[html 초보용] 홈페이지 무작정 따라하기!① [6] file 깻잎사랑=_=v 2003.04.14
[html 초보용] 홈페이지 무작정 따라하기!② [3] file 깻잎사랑=_=v 2003.04.14
textarea 세로 글쓰기 [1] ZipShin 2003.04.15
이미지 테두리에 점선 두르기 [6] ZipShin 2003.04.15
label태그 아십니까? [6] ZipShin 2003.04.27
쭘식 메뉴만들기 - 세로 슬라이드 메뉴 [11] file 쭘's 2003.04.29
HTML 암호화시킨것 풀어주는소스(암호화도가능) [11] 호호짱 2003.05.06
더블클릭으로 웹문서 새로고침 하기 [3] RedEye 2003.05.09
동영상이 로딩될때까지 이미지 보여주기 [8] ZipShin 2003.05.19
세계인구와 한국인구 구하기 애플릿 소스 [3] TimeMode 2003.05.19
onload 두개 사용하려고 할때... [5] chosun815 2003.05.20
CSS파일이용하여 링크에 건반효과주기(강력추천) [8] 호호짱 2003.05.23
무심코 지나치기 쉬운 인푸트(input)폼에 대한 몇가지들.... [4] RedEye(rinja) 2003.05.23
개미선 없애기.. [10] -크크크- 2003.06.04
[초보자용] 노프레임 이해하고 만들기 [16] zeroMD™ 2003.06.05
[re] 쭘's식 홈페이지 만들기 No.3 - 깔끔 노프레임 (미리보기 포함) [5] 파마아줌마 2003.07.21