0
브라우저가 HTML5 오디오 컨트롤러를 감지하지 못하면 swf 플레이어를 폴백합니다.IE8이 swf를 표시하지 않습니다
그러나 일부 알 수없는 이유로 IE8은 swf 플레이어를 표시하지 않습니다. swfobject.js는 html과 동일한 폴더에 있습니다.
여기에 전체 코드입니다 :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
swfobject.registerObject("myId", "9.0.0", "expressInstall.swf");
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<center>
<audio controls preload="auto" autobuffer>
<source src="friday.ogg" />
<source src="friday.mp3" />
<div class="fallback">
<object type="application/x-shockwave-flash" data="xspf_player.swf?playlist_url=playlist.xspf&autoplay=true
&repeat_playlist=true&player_title=KICK&playlist_size=3"
width="400" height="151">
<param name="movie" value="xspf_player
.swf? playlist_url=playlist.xspf&
;autoplay=true&repeat_playlist=true&player_title=
KICK&playlist_size=3" />
</object>
</div>
</audio>
</center>
</body>
</html>
이 행을 삭제하기 만합니까? 나는 단지 복사/붙여 넣기했기 때문에, 내 지식은 단지 정크 코드 일 뿐이라는 것인가? –
그냥 시도하고 작동하지 않았다, IE8 같은 버그가 브라우저입니다 ... –
아니, 실제로 "myId"는 개체 태그의 ID를 나타내야합니다. http://code.google.com/p/swfobject/wiki/documentation#STEP_3:_Register_your_Flash_content_with_the_SWFObject_library_a 문서의이 섹션을 살펴 보시기 바랍니다. – Leo