그래서 bgstretcher를 사용할 때 모든 링크가 스크립트에 올 바르고 데모 웹 사이트에서 작동하므로 index.php 파일에서 다른 모든 스크립트를 제거하려고했지만 동일한 오류가 발생했습니다. - catch되지 않은 형식 오류 : 개체 [개체 개체]있는 방법이 없습니다 '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>
는 또한, soI'm은 아직 확실하지, 문제가 무엇인가 더 JS/HTML 코드가 없다가, 왜 오류가 발생합니까? 라인 (12), 그래서
sequenceMode: 'normal',
코드에서
sequenceMode: 'normal'