基于jquery的网站幻灯片切换效果焦点图代码 - Web前端
作者:98wpeu发布时间:2026-06-09分类:网页前端技术浏览:2
导入JQuery代码
复制代码 代码如下:
<script src="http://libs.bAIdu.com/jQuery/1.9.1/jquery.min.JS" type="text/javascript"></script>
<script src="js/jquery-image-scale-carousel.js" type="text/JavaScript" charset="utf-8"></script>
<script>
var carousel_images = [
"images/01.jpg",
"images/02.jpg",
"images/03.jpg",
"images/04.jpg",
"images/05.jpg",
"images/06.jpg",
"images/07.jpg"
];
// Example without autoplay
$(window).load(function() {
$("#photo_container").isc({
imgArray: carousel_images
});
});
// Example with autoplay
/* $(window).load(function() {
$("#photo_container").isc({
imgarray: carousel_images,
autoplay: true,
autoplaytimer: 5000 // 5 seconds.
});
}); */
</script>
样式文件CSS有几个 需要加载个
复制代码 代码如下:
body {
font-family:"HelveticaNeue-Light","Helvetica Neue Light","Helvetica Neue",Helvetica,Arial,sans-serif;
color: #FFF;
font-size: 12px;
background: #000;
}
h1 {
font-size: 52px;
text-align: center;
}
h1,h2,h3,h4 {
font-weight: 100;
}
#photo_container {
width: 960px;
height: 400px;
margin: auto;
background-color: #000;
}
p {
text-align: center;
}
/*定义文字样式*/
A {FONT-SIZE: 12px; COLOR: #000;}
A:link {COLOR: #2d8931; TEXT-DECORATION: none;}
A:visited {COLOR: #333; TEXT-DECORATION: none;}
A:hover {COLOR: #333; TEXT-DECORATION:underline;}
A:active {COLOR: #333; TEXT-DECORATION: none;}
#swipe_nav_PRev,#swipe_nav_next {
position: absolute;
top: 0;
left: 0;
z-index: 2000;
background-color: #ccc;
cursor: pointer;
text-align: center;
display: none;
}
#swipe_nav_prev {
background: #333 url('prev.png') no-repeat center center;
}
#swipe_nav_next {
background: #333 url('next.png') no-repeat center center;
}
.internal_swipe_container {
position: relative;
}
.trans {
filter:alpha(opacity=75);
-moz-opacity:0.75;
-khtml-opacity: 0.75;
opacity: 0.75;
}
.JQ_swipe_image {
background: url('loader.gif') no-repeat center center;
}
#count_container {
padding: 0;
margin: 0;
position: absolute;
top: 0;
left: 0;
background-color: pink;
height: 6px;
list-style: none;
}
.counter {
float: left;
height: 6px;
background-color: #FFF;
z-index: 200;
height: 6px;
padding: 0;
margin: 0;
}
.counter:hover {
Cursor: pointer;
background-color: #ff00fc !important;
}
.current {
background-color: #ff00fc !important;
}
相关推荐
- jQuery实现鼠标移到元素上动态提示消息框效果 - Web前端
- JQueryiframe页面操作父页面中的元素与方法(实例讲解) - Web前端
- jQuery读取和设定KindEditor值的方法 - Web前端
- jquery实现兼容浏览器的图片上传本地预览功能 - Web前端
- jquery 跳到顶部和底部动画2句代码简单实现 - Web前端
- jQuery 顶部导航跟随滚动条滚动固定浮动在顶部 - Web前端
- 多个datatable共存造成多个表格的checkbox都被选中 - Web前端
- jQuery Animation实现CSS3动画示例介绍 - Web前端
- 实用的Jquery选项卡TAB示例代码 - Web前端
- jquery实现漂浮在网页右侧的qq在线客服插件示例 - Web前端
- 网页前端技术排行
- 最近发表
-
- WordPress随机显示特色图片插件:Random Post Thumbnails
- KeePass实现Chrome浏览器自动填充密码方法一
- LNMP一键包nginx 301强制跳转到https教程
- KeePass实现Chrome浏览器自动填充密码方法二
- #建站# 免费的VPS管理软件Xshell8/Xftp8中文版下载
- 使用Xshell 8连接VPS教程_电脑登录vps的方法
- WordPress评论界面添加烟花????效果
- 不同浏览器书签同步方案:坚果云+Floccus_详细使用教程
- iOS端KeePassXC客户端APP:Strongbox Password Safe
- 给WordPress评论中的Gravatar头像图片添加ALT属性


