我想在一個html頁面上擁有這個圖庫中的兩個...但是我不能只是重新複製代碼。我相信我需要做一些其他的div id這個工作...我想有一個畫廊顯示我的YouTube頻道和另一個顯示另一個YouTube頻道。不能添加相同的js
<html lang="en">
<head>
<link href="http://files.enjin.com/469593/Styles/ytv.css" type="text/css" rel="stylesheet" />
<link href="http://files.enjin.com/469593/Styles/main.css" type="text/css" rel="stylesheet" />
</head>
<body>
<div id="frame">
</div>
<!--Change user to your channel-->
<script>
window.onload = function(){
window.controller = new YTV('frame', {
user: 'midnightmafiaGUILD',
accent: 'yellow'
});
};
</script>
<div id="frame">
</div>
<!--Change user to your channel-->
<script>
window.onload = function(){
window.controller = new YTV('frame', {
user: 'other youtube channel',
accent: 'yellow'
});
};
</script>
<script type="text/javascript" src="http://files.enjin.com/469593/Styles/ytv.js"></script>
</body>
</html>
你有沒有包含在[jQuery的](http://code.jquery.com/jquery-1.10.2.min。 js)庫中的頭文件? –