묻고답하기
js파일 읽는 방법
2012.11.15 15:41
아래 소스를
게시판에 documment.html 에 첨부했더니
js파일을 읽지를 못하더라구요
어떻게 해야 js파일을 읽을 수 있을까요..?
<!-- Location of javascript. -->
<script language="javascript" type="text/javascript" src="swfobject.js" ></script>
<!-- Div that contains player. -->
<div id="player">
<h1>No flash player!</h1>
<p>It looks like you don't have flash player installed. <a href="http://www.macromedia.com/go/getflashplayer" >Click here</a> to go to Macromedia download page.</p>
</div>
<!-- Script that embeds player. -->
<script language="javascript" type="text/javascript">
var so = new SWFObject("flashmp3player.swf", "player", "290", "247", "9"); // Location of swf file. You can change player width and height here (using pixels or percents).
so.addParam("quality", "high");
so.addVariable("content_path","mp3"); // Location of a folder with mp3 files (relative to php script).
so.addVariable("color_path","default.xml"); // Location of xml file with color settings.
so.addVariable("script_path","flashmp3player.php"); // Location of php script.
so.write("player");
</script>
댓글 1
-
Sulli
2012.11.15 16:54
-
꾸링
2012.11.15 16:58
우선 답변 고맙습니다. 그렇게도 해봤는데 못불러오더라구요 ㅠ_ㅠ) 그냥 XE 관련되지 않은 php새로 생성하면 되는데 XE에 documment.html 에서는 안되는 이유가 뭘까요?
<load target="swfobject.js" /> 해보세요.