묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
배경음악에 대한 질문이예요
2002.11.02 21:43
제가 제홈에 배경음악 7개를 랜덤으로 돌릴려고 하는데요..
분명 제대로 한것 같은데 음악이 안나와요..ㅜㅜ
<head>와</head>에 넣는게 아닌가요? 제대로 한것 같은데..ㅠㅠ
알려주세요..ㅜㅜ
당연히 배경음이라고 써있는곳은 음악주소 제대로 써 넣었는뎅...
<html>
<head>
<title>^^</title>
<meta name="generator" content="Namo WebEditor v4.0">
<style>
a:link {color:#007cd0;text-decoration:none}
a:visited {color:#007cd0;text-decoration:none}
a:active {color:#007cd0;text-decoration:none}
a:hover {color:#0099ff;text-decoration:none}
</style>
<!-- 여기부터 -->
<script language="JavaScript">
<!--
var how_many_ads = 7;
var now = new Date()
var sec = now.getSeconds()
var ad = sec % how_many_ads;
ad +=1;
if (ad==1) {
banner="배경음1";
}
else if (ad==2) {
banner="배경음2";
}
else if (ad == 3) {
banner="배경음3";
}
else if (ad == 4) {
banner="배경음4";
}
else if (ad == 5) {
banner="배경음5";
}
else if (ad == 6) {
banner="배경음6";
}
else if (ad == 7) {
banner="배경음7";
}
document.write('<embed src="' + banner + '+ '+ '" loop="100" hidden="true">');
// -->
</script>
<!-- 여기까지 -->
</head>
분명 제대로 한것 같은데 음악이 안나와요..ㅜㅜ
<head>와</head>에 넣는게 아닌가요? 제대로 한것 같은데..ㅠㅠ
알려주세요..ㅜㅜ
당연히 배경음이라고 써있는곳은 음악주소 제대로 써 넣었는뎅...
<html>
<head>
<title>^^</title>
<meta name="generator" content="Namo WebEditor v4.0">
<style>
a:link {color:#007cd0;text-decoration:none}
a:visited {color:#007cd0;text-decoration:none}
a:active {color:#007cd0;text-decoration:none}
a:hover {color:#0099ff;text-decoration:none}
</style>
<!-- 여기부터 -->
<script language="JavaScript">
<!--
var how_many_ads = 7;
var now = new Date()
var sec = now.getSeconds()
var ad = sec % how_many_ads;
ad +=1;
if (ad==1) {
banner="배경음1";
}
else if (ad==2) {
banner="배경음2";
}
else if (ad == 3) {
banner="배경음3";
}
else if (ad == 4) {
banner="배경음4";
}
else if (ad == 5) {
banner="배경음5";
}
else if (ad == 6) {
banner="배경음6";
}
else if (ad == 7) {
banner="배경음7";
}
document.write('<embed src="' + banner + '+ '+ '" loop="100" hidden="true">');
// -->
</script>
<!-- 여기까지 -->
</head>