웹마스터 팁

제가 개발한 랜덤으로 배경음악 지정하는 스크립트입니다.

아래의 소스를 html 문서의 head에 넣으세요.

<script>
<!--
var sound1="sound1.mid"
var sound2="sound2.mid"
var sound3="sound3.mid"
var sound4="sound4.mid"
var sound5="sound5.mid"
var x=Math.round(Math.random()*4)
if (x==0) x=sound1
else if (x==1) x=sound2
else if (x==2) x=sound3
else if (x==3) x=sound4
else x=sound5
if (navigator.appName=="Microsoft Internet Explorer")
document.write('<bgsound src='+'"'+x+'"'+' loop="infinite">')
else
document.write('<embed src='+'"'+x+'"'+'hidden="true" border="0" width="20" height="20" autostart="true" loop="true">')
//-->
</script>

\\\
*수정할 부분: sound1.mid, sound2.mid, sound3.mid, sound4.mid, sound5.mid
여기에 음악 파일의 경로를 적어 주시면 됩니다.
제목 글쓴이 날짜
ie6에서 css를 일부 불러들이지 못할때 대처법 아쮸 2011.01.04
파일 업로드시에 403에러 발생시 해결방법. [12] WhiteAT 2007.09.12
나만의 미니홈 만들기 ㅡ 메인 기초 설계 .home.php [12] file 예뜨락 2004.11.17
OpenID 적용 [6] file 맑은하늘75 2007.08.20
1.3.0 버전에서 모듈설치 방법과 시작 모듈 설정하기 [21] file 스타호스트 2009.11.11
"제로보드 XE 기본 개념을 이해하자" 문서화 [3] file amd짱좋아 2009.11.13
파일질라에서 html 파일 수정법 불패의초인 2010.11.11
IIS5,6 용 Rewrite Module [1] file MuzEye 2009.04.10
DNIP.NET 으로 유저.내도메인.dnip.net 세팅방법점.. [1] 키스더데이트 2009.01.09
아파치 웹 서버 설정 == httpd.conf [2] 김병화999 2009.01.02
httpd.conf 의 환경설정파일 안의 내용 [2] 김병화999 2009.01.02
Ubuntu Server - SSH, APM, DNS, FTP 설치하기 [2] file ruo91 2008.08.09
Ubuntu 웹서버 구축 2. APM 환경 구축 [4] [1] earthian 2008.05.23
Ubuntu 웹서버 구축 1. 우분투 설치 하기 [4] file earthian 2008.05.23
내컴퓨터를 FTP 서버로 만들어보자 [6] 서기 2008.03.30
MySQL 암호화함수를 큐브리드 JSP로 사용하기 [3] file 야라바 2008.01.24
lighttpd + php fastcgi + xcache 설치하기 [7] zero 2007.12.24
한방에 제로보드 설치를 위한 서버 환경 준비하기-RWAPC Server 1.0 [6] 야라바 2007.11.28
SVN Commit 정보 출력 설정 (CIA Script) DroArc 2007.11.25
phpCubAdmin으로 큐브리드 DBMS관리하기 [2] 야라바 2007.10.22