你必須把你的JavaScript你想在頁面中的位置。 我想你可以像這樣定位它。
<div id="left">
<img src="media/MediaTextBanner.jpg" alt="" width="596" height="58">
<table>
<tr>
<td>
<img src="media/Transcriptions.jpg" width="547" height="39">
<br><a href="media/mmbtab.html">TABLATURE: Me & My Bass Guitar: Victor Wooten</a>
<br><a href="media/Circles - Gwizdala - Bass Parts.pdf"> Circles: Janek Gwizdala - Bass Notes</a>
<br><a href="media/That Stern Look - Gwizdala - Bass Parts.pdf">That Stern Look: Janek Gwizdala - Bass Notes</a>
<br><a href="media/flyback.html">Fly Back [2009 Redux]: Dave D'aranjo/The Ocean Band</a>
<p>
<img src="media/VideoBanner.jpg" width="547" height="39">
<p>
<iframe src="http://player.vimeo.com/video/21755863?title=0&byline=0&portrait=0&autoplay=0" width="398" height="224" frameborder="0"></iframe>
<br><a href="http://vimeo.com/darangatang" target="_blank"><img src="contact/thumbs/Vimeo.jpg" width="90" height="81"></a>
<a href="http://www.youtube.com/profile?user=DaveDaranjo" target="_blank"><img src="contact/thumbs/YouTube.jpg" width="90" height="81"></a>
<br><img src="media/OceanBanner.jpg" width="547" height="39">
<br><a href="http://www.myspace.com/oceanband" target="_blank">The Ocean Band - MySpace</a>
<br><a href="http://www.youtube.com/profile?user=theoceanbandsg" target="_blank">The Ocean Band - YouTube</a>
<br><a href="http://www.cdbaby.com/Artist/TheOceanBand" target="_blank">The Ocean Band - CDBaby.com </a>
</p>
</td>
<td position: relative; vertical-align: top;><center>
<div id="title" align="right"></div></center>
</td>
</tr>
</table>
<center>
<img src="/ambigram.jpg" alt="" width="113" height="61"><br>
<font color="CC0000"> © 2011 DaveDaranjo.com<br>
All Rights Reserved.</font></p>
</center>
</div>
<div id="right">
<script type="text/javascript">
$(document).ready(function(){
var description = 'Solo bass work, videos, and songs from bands. ';
$('body').ttwMusicPlayer(myPlaylist, {
autoPlay:false,
tracksToShow:12,
description:description,
jPlayer:{
swfPath:'../js' //You need to override the default swf path any time the directory structure changes
}
});
});
</script>
</div>
這會將您想要的文本和圖像置於一個框中,並將播放器置於另一個框中。 你現在有在箱子定位到浮動框,使他們能夠在CSS旁邊的海誓山盟:
#left {
float: left;
}
#right {
float: right;
}
應該這樣做!