所以我得到錯誤,當我使用bgstretcher,所有的鏈接都是正確的腳本,並在演示網站上工作,我試圖從index.php文件中刪除所有其他腳本,但仍然有相同的錯誤 - 遺漏的類型錯誤:對象的翻譯:有沒有方法「bgStretcher」 所以這裏是代碼 -bgstretcher無法正常工作
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>STANDBY Countdown Script</title>
<link rel="stylesheet" type="text/css" href="css/jcountdown-style.css" />
<link rel="stylesheet" type="text/css" href="css/standby-style.css" />
<link rel="stylesheet" href="css/bgstretcher.css" />
<script src="script/jquery-1.7.1.min.js" type="text/javascript"></script>
<script src="script/bgstretcher.js" type="text/javscript"></script>
<script src="script/jquery.jcountdown1.3.3.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
// Initialize Backgound Stretcher
$('body').bgStretcher({
images: ['demo/images/sample-1.jpg', 'demo/images/sample-2.jpg', 'demo/images/sample-3.jpg', 'demo/images/sample-4.jpg', 'demo/images/sample-5.jpg', 'demo/images/sample-6.jpg'],
imageWidth: 1024,
imageHeight: 768,
slideDirection: 'N',
slideShowSpeed: 3000,
transitionEffect: 'fade',
sequenceMode: 'normal',
});
});
</script>
<script type="text/javascript">
$(document).ready(function() {
$("#time").countdown({
date: "January 31, 2013", /* Counting to a date */
offset: 1,
hoursOnly: false,
leadingZero: true
});
$('[placeholder]').focus(function() {
var input = $(this);
if (input.val() == input.attr('placeholder')) {
input.val('');
input.removeClass('placeholder');
}
}).blur(function() {
var input = $(this);
if (input.val() == '' || input.val() == input.attr('placeholder')) {
input.addClass('placeholder');
input.val(input.attr('placeholder'));
}
}).blur();
});
</script>
</head>
而且沒有JS/HTML代碼,soI'm還不能確定,這是什麼問題,爲什麼我得到錯誤?