2015-01-15 7 views
0

전체 HTML 페이지가 아닙니다! 재생 목록 자체가 완벽하게 작동하고 내 HTML 파일 내부에서 작동하지만 contentStory라는 div 태그 안에 삽입하는 방법은 없습니다. 아무도 도와 줄 수 있습니까? 나는 그것이 간단하다고 확신한다. 그것은 길입니까? $ ('body')는 div 태그의 절대 경로 여야합니까? 당신에게 기술 개발자, 그런 구피 질문에 대한 미안 해요.div 태그 안에 검색어 포함

<head> 
<script type="text/javascript" src="js/jquery-1.6.1.min.js"></script> 
<script type="text/javascript" src="../plugin/jquery-jplayer/jquery.jplayer.js"></script> 
<script type="text/javascript" src="../plugin/ttw-music-player-min.js"></script> 
<script type="text/javascript" src="js/myplaylist.js"></script> 

<script type="text/javascript"> 
    $(document).ready(function(){ 
     var description = 'This is ipsum dolor sit amet, consectetur adipiscing elit. Fusce id tortor nisi. Aenean sodales diam ac lacus elementum scelerisque. Suspendisse a dui vitae lacus faucibus venenatis vel id nisl. Proin orci ante, ultricies nec interdum at, iaculis venenatis nulla. '; 

     $('body').ttwMusicPlayer(myPlaylist, { 
      autoPlay:false, 
      description:description, 
      jPlayer:{ 
       swfPath:'music-player/plugin/jquery-jplayer' //You need to override the default swf path any time the directory structure changes 
      } 
     }); 
    }); 
    </script> 
    </head> 
    <body class="wireframe"> 
    <div id="page"> 
    <header>.....</header> 
    <div>….</div> 
    <div>….</div> 
    <div>….</div> 
    <div>….</div> 
    <div>….</div> 
    <div id="contentStory"></div> 
    <footer>….</footer> 

    </body> 
    </html> 
+0

를 찾습니다 contentStory ID를 사용? 원하는 최종 결과를 설명하십시오. –

답변

1

실제로 달성하려고하는 것은 무엇

$('#contentStory').ttwMusicPlayer(myPlaylist, { 
     autoPlay:false, 
     description:description, 
     jPlayer:{ 
      swfPath:'music-player/plugin/jquery-jplayer' //You need to override the default swf path any time the directory structure changes 
     } 
}); 
+0

이 오디오 재생 목록을 웹 사이트의 html 페이지에 표시하고 싶습니다. –

+0

이 오디오 재생 목록을 웹 사이트의 html 페이지에 표시하고 싶습니다. 나는 $ ('contentStory')를 시도했지만, 그렇게하면 전체 재생 목록이 모두 사라집니다. http://www.morethanconquerorschurch.org/music-player/demo/index2.html –

+0

@Sheree Smith 귀하의 사이트를 방문하지는 않지만 http://jsfiddle.net/에서 귀하의 시나리오를 재 작성하면 저기 봐. –

관련 문제