想做个翻页效果的相册,找了两个网站:
http://www.turnjs.com
http://www.jpageflip.de/index_en.php上面那个愣是没弄出来,下面这个今天弄了一下还是没弄会.
往下面看(这个是首页的html,使用的是html5):<!DOCTYPE HTML>
<html>
<head>
<title>index</title>
<meta charset="utf-8">
</head>
<script type="text/javascript">
$(document).ready(function(){
$('#myPageFlip').jPageFlip({
width: "1000",
height: "1000",
// other parameters
});
});
</script>
<script type="text/javascript" src="jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="jpageflip-0.9.7.js"></script>
<style type="text/css">
<!--
body {font-size:14px; background-color:#A6FFA6; margin:0; padding:0; width:auto; height:auto; color:#ffffff; text-align:center; }#img { width:auto; height:auto; padding:3px; margin-bottom:30px; margin-top:50px; }
footer { background:#0066CC url(foot.png) repeat-y scroll center; padding-top:10px; padding-bottom:10px; border:0; margin:0; }
-->
</style>
<body> <div id="myPageFlip">
<img src="1.jpg" class="jPageFlip">
<img src="2.jpg" class="jPageFlip">
<img src="3.jpg" class="jPageFlip">
<img src="4.jpg" class="jPageFlip">
<img src="5.jpg" class="jPageFlip">
<img src="6.jpg" class="jPageFlip">
<img src="7.jpg" class="jPageFlip">
<img src="8.jpg" class="jPageFlip">
<img src="9.jpg" class="jPageFlip">
<img src="10.jpg" class="jPageFlip">
<img src="11.jpg" class="jPageFlip">
<img src="12.jpg" class="jPageFlip">
</div>
</body>
</html>这些是js(在本地测试的时候,js照片,和HTML文件都放在同一个文件夹):
http://www.jpageflip.de/js/jquery-1.4.2.min.js
http://www.jpageflip.de/js/jpageflip-0.9.7.js
========================================================================
无论如何运行都还是不行,希望高手指点迷津......
http://www.turnjs.com
http://www.jpageflip.de/index_en.php上面那个愣是没弄出来,下面这个今天弄了一下还是没弄会.
往下面看(这个是首页的html,使用的是html5):<!DOCTYPE HTML>
<html>
<head>
<title>index</title>
<meta charset="utf-8">
</head>
<script type="text/javascript">
$(document).ready(function(){
$('#myPageFlip').jPageFlip({
width: "1000",
height: "1000",
// other parameters
});
});
</script>
<script type="text/javascript" src="jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="jpageflip-0.9.7.js"></script>
<style type="text/css">
<!--
body {font-size:14px; background-color:#A6FFA6; margin:0; padding:0; width:auto; height:auto; color:#ffffff; text-align:center; }#img { width:auto; height:auto; padding:3px; margin-bottom:30px; margin-top:50px; }
footer { background:#0066CC url(foot.png) repeat-y scroll center; padding-top:10px; padding-bottom:10px; border:0; margin:0; }
-->
</style>
<body> <div id="myPageFlip">
<img src="1.jpg" class="jPageFlip">
<img src="2.jpg" class="jPageFlip">
<img src="3.jpg" class="jPageFlip">
<img src="4.jpg" class="jPageFlip">
<img src="5.jpg" class="jPageFlip">
<img src="6.jpg" class="jPageFlip">
<img src="7.jpg" class="jPageFlip">
<img src="8.jpg" class="jPageFlip">
<img src="9.jpg" class="jPageFlip">
<img src="10.jpg" class="jPageFlip">
<img src="11.jpg" class="jPageFlip">
<img src="12.jpg" class="jPageFlip">
</div>
</body>
</html>这些是js(在本地测试的时候,js照片,和HTML文件都放在同一个文件夹):
http://www.jpageflip.de/js/jquery-1.4.2.min.js
http://www.jpageflip.de/js/jpageflip-0.9.7.js
========================================================================
无论如何运行都还是不行,希望高手指点迷津......
解决方案 »
- 怎样将字符串转成浮点数?
- 网站评论系统如何调用动态网站页面ID
- javascript 自定义对象的子对象的子方法内如何访问顶级父对象(内有实例)
- 急急 ..正则表达式 匹配问题
- 关于SuperComboBox.HTC问题。
- 如何向OCX控件传递参数?
- 打印怎么所得不是所见?为什么绝对位置的元素的打印却打到了另一页?
- js中如何对html中一个表格中某个单元格的背景颜色进行引用呢?
- 我的领导让我用javascript和数据库通信,真是恐慌怖啊,各位谁做过啊
- 当鼠标移到某文字上,出现一个浮动层,描述该文字的含义。怎样做。以前见过,可现在找不到
- JQ在单选按钮点击后,改变单选项的字体和背景,再在后面显示他选择内容
- 求:为什么我写的代码 获取不到系统当前时间
<script type="text/javascript" src="jpageflip-0.9.7.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#myPageFlip').jPageFlip({
width: "1000",
height: "1000",
// other parameters
});
});
</script>
顺序换下试试
$(document).ready(function(){
$('#myPageFlip').jPageFlip({
width: "1000",
height: "1000",
// other parameters
});
});
</script>
<script type="text/javascript" src="jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="jpageflip-0.9.7.js"></script>你在用jquery的时候,还根本没有导入jq