웹마스터 팁
page_full_width">
웬 소리가????(하이퍼링크 효과음)
2007.04.08 14:36
안녕하세요....
저는 10월쯤에 강의를 올렸던 김민환 입니다.
드디어 제가 중1이 됬구여......
그리고 저는 이제 중간고사니까 한달동안 못들어올것 같구여....
MuzClan이라는 것은 제 새홈피입니다.....
많이 놀러 오세요...
감사합니다
------------------------------------------------------------
<head></head> <body>아래의 소스를 와 사이에 넣어 주세요.
-------------------------------------------------------------
<script LANGUAGE="JavaScript">
<!--
var over_sound = new Array();
//사운드 파일의 경로 설정
over_sound[0] = "http://myhome.naver.com/flyingeagle/laser.wav";
document.write('<BGSOUND ID="auIEContainer">')
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<over_sound.length;i++)
Str += "<EMBED SRC='"+over_sound[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.auIEContainer:auEmb;
auCon.control = auCtrl;
}
function auCtrl(whSound,play) {
if (IE) this.src = play? over_sound[whSound]:'';
else eval("this.document.embeds[whSound]." + (play? "play()":"stop()"))
}
function wavEffect(whSound) { if (window.auCon) auCon.control(whSound,true); }
function stopSound(whSound) { if (window.auCon) auCon.control(whSound,false); }
//-->
</script>
아래의 소스를 와
<p>사이에 넣어주세요.
<!--아래와 같이 하이퍼 링크 태그안에 onMouseover 와 onMouseout 이벤트핸들러를 추가합니다.-->
<a href="http://www.tmuzclan.wo.to" target="_blank" OnMouseOut="stopSound(0)" OnMouseOver="wavEffect(0)">
MuzClan 화이팅!!</a><a href="http://www.tmuzclan.wo.to" target="_blank" onMouseover="wavEffect(0)"
onMouseout="stopSound(0)">^^</a></body>
이번 중간고사를 무사히!
저는 10월쯤에 강의를 올렸던 김민환 입니다.
드디어 제가 중1이 됬구여......
그리고 저는 이제 중간고사니까 한달동안 못들어올것 같구여....
MuzClan이라는 것은 제 새홈피입니다.....
많이 놀러 오세요...
감사합니다
------------------------------------------------------------
<head></head> <body>아래의 소스를 와 사이에 넣어 주세요.
-------------------------------------------------------------
<script LANGUAGE="JavaScript">
<!--
var over_sound = new Array();
//사운드 파일의 경로 설정
over_sound[0] = "http://myhome.naver.com/flyingeagle/laser.wav";
document.write('<BGSOUND ID="auIEContainer">')
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<over_sound.length;i++)
Str += "<EMBED SRC='"+over_sound[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.auIEContainer:auEmb;
auCon.control = auCtrl;
}
function auCtrl(whSound,play) {
if (IE) this.src = play? over_sound[whSound]:'';
else eval("this.document.embeds[whSound]." + (play? "play()":"stop()"))
}
function wavEffect(whSound) { if (window.auCon) auCon.control(whSound,true); }
function stopSound(whSound) { if (window.auCon) auCon.control(whSound,false); }
//-->
</script>
아래의 소스를 와
<p>사이에 넣어주세요.
<!--아래와 같이 하이퍼 링크 태그안에 onMouseover 와 onMouseout 이벤트핸들러를 추가합니다.-->
<a href="http://www.tmuzclan.wo.to" target="_blank" OnMouseOut="stopSound(0)" OnMouseOver="wavEffect(0)">
MuzClan 화이팅!!</a><a href="http://www.tmuzclan.wo.to" target="_blank" onMouseover="wavEffect(0)"
onMouseout="stopSound(0)">^^</a></body>
이번 중간고사를 무사히!
댓글 7
-
김민환
2007.04.08 21:37
-
에띠안베레
2007.04.23 11:36
댓글 달자~~훠이 -
fkgxdk
2007.05.03 01:41
오오 잘 되네요 감사^^ -
이해용
2007.07.11 21:41
대단하시네요...직접코딩하신거 같은데 나이 어리신데 대단하십니다 ㅜㅜ 부러워요
소스 대충은 이해가 가는데요 ? 는 무슨뜻인가여?? 까먹어서...
if (IE) this.src = play? over_sound[whSound]:'+ '';
여기에 들가는 ? 요.... -
김낙향
2007.08.14 01:49
if (IE) this.src = play? over_sound[whSound]:'';
여기서
play ? over_sound[whSound] : '' <== 조건연산자라고 부르죠
조건 ? A : B
조건이 맞으면 A
조건이 틀리면 B -
강준구334
2007.08.18 16:50
sample도 주셨음 좋겟죠... ㅜㅜ
-
santoky001
2007.11.24 09:50
와우... 제가 초딩 5학년인데 중1에도 불구하시고 그쯤이나 하시다니 대단합니당 ㅋㅋ 저도 홈피 구축하고있어여 ㅋㅋ
조회가 42인데;;;;