Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/80.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
jQuery硬币滑块插件不工作_Jquery - Fatal编程技术网

jQuery硬币滑块插件不工作

jQuery硬币滑块插件不工作,jquery,Jquery,我正在尝试在我的页面上使用jQuery硬币滑块插件。我已经下载了最新的Jquery并将其附加到我的头文件中,以及所有必要的硬币滑块文件。当jQuery的最新版本不起作用时,我下载了说明书中使用的旧版本。然而,页面只是简单地堆叠图像,就好像我只是插入了标签一样 所有文件的路径都正确。我试着按照他在“如何安装”页面上的指示进行操作,但没有成功 我相信我是按照正确的顺序附加.js的,所以我不确定问题出在哪里 <!doctype html> <html> <head>

我正在尝试在我的页面上使用jQuery硬币滑块插件。我已经下载了最新的Jquery并将其附加到我的头文件中,以及所有必要的硬币滑块文件。当jQuery的最新版本不起作用时,我下载了说明书中使用的旧版本。然而,页面只是简单地堆叠图像,就好像我只是插入了标签一样

所有文件的路径都正确。我试着按照他在“如何安装”页面上的指示进行操作,但没有成功

我相信我是按照正确的顺序附加.js的,所以我不确定问题出在哪里

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Title</title>
<script type="text/javascript" src="js/jquery-1.4.2.js"></script>
<script type="text/javascript" src="js/coin-slider.min.js"></script>
<link rel="stylesheet" href="coin-slider-styles.css" type="text/css" />
<link href="styles/screen.css" rel="stylesheet" type="text/css">
</head>

<body>
<header id="mainHeading">
<div id="headingContent">
<h1>Header</h1>

</div> <!--Closes headingContent div-->
</header>

<article id="page-content">

<section>
<hgroup>
<h1></h1>
<h2></h2>
</hgroup>

</article>



<div id="coin-slider">
    <a href="img01_url" target="_blank">
        <img src='img01.jpg' >
    <span>
        Description for img01
    </span>
    </a>

    <a href="img02_url">
        <img src='img02.jpg' >
    <span>
        Description for img02
    </span>
    </a>

    <a href="img03_url">
        <img src='img03.jpg' >
    <span>
        Description for img03
    </span>
    </a>
</div>

<script type="text/javascript">
$(document).ready(function() {
$('#coin-slider').coinslider({ width: 600, height: 300, navigation: false, delay: 5000, hoverPause: true });
});
</script>


</div> <!--Closes the main content-->

<footer id="mainFooter">
<p>Footer</p>
</footer> <!--Closes the footer-->

</div> <!--Closes the wrapper-->

</body>
</html>

标题
标题
$(文档).ready(函数(){
$(“#硬币滑块”).coinslider({宽度:600,高度:300,导航:false,延迟:5000,悬停:true});
});
页脚


你确定coin-slider-styles.css的url不应该指向“css”子目录吗?

这应该是一条注释,因为它没有回答问题。我不确定你在问什么。您是否在询问coin-slider-styles.css的url是否应指向styles文件夹?