当前位置: 首页 > news >正文

做网站包括哪些软件培训

做网站包括哪些,软件培训,做枪版视频网站犯法吗,寻找网站开发jQuery案例专题 本学期主要担任的课程是js和jQuery&#xff0c;感觉用到的有一些案例挺有意思的&#xff0c;就对其进行了一下整理。 目录&#xff1a; 电影院的幕帘特效 手风琴特效 星光闪烁 网页轮播图 1.电影院的幕帘特效代码如下 html <!DOCTYPE html > <html…

jQuery案例专题

本学期主要担任的课程是js和jQuery,感觉用到的有一些案例挺有意思的,就对其进行了一下整理。

目录:

  • 电影院的幕帘特效
  • 手风琴特效
  • 星光闪烁
  • 网页轮播图

1.电影院的幕帘特效代码如下

`html
<!DOCTYPE html >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>幕帘效果</title>
</head>
<script type="text/javascript" src="JS/jquery-1.12.4.js"></script>
<script type="text/javascript">
$(document).ready(function() {var curtainopen = false;//定义布尔型变量$(".rope").click(function(){//当单击超链接时$(this).blur();//使超链接失去焦点if (curtainopen == false){ //判断变量值是否为false$(this).text("关闭幕帘");//设置超链接文本 $(".leftcurtain").animate({width:'60px'}, 2000 );//设置左侧幕帘动画$(".rightcurtain").animate({width:'60px'},2000 );//设置右侧幕帘动画curtainopen = true;//变量值设为true}else{$(this).text("拉开幕帘"); //设置超链接文本$(".leftcurtain").animate({width:'50%'}, 2000 );//设置左侧幕帘动画$(".rightcurtain").animate({width:'51%'}, 2000 );//设置右侧幕帘动画curtainopen = false;//变量值设为false}});	
});	
</script><style type="text/css">*{margin:0;padding:0;}body {color: #FFFFFF;text-align: center;background: #4f3722 url('images/darkcurtain.jpg') repeat-x;}img{border: none;}p{margin-bottom:10px;color:#FFFFFF;}.leftcurtain{width: 50%;height: 495px;top: 0px;left: 0px;position: absolute;z-index: 2;}.rightcurtain{width: 51%;height: 495px;right: 0px;top: 0px;position: absolute;z-index: 3;}.rightcurtain img, .leftcurtain img{width: 100%;height: 100%;}.rope{position: absolute;top: 70%;left: 60%;z-index: 100;font-size:36px;color:#FFFFFF;}</style>
</head><body>
欢迎来到小红棉戏班<hr /><div class="leftcurtain"><img src="images/frontcurtain.jpg"/></div><div class="rightcurtain"><img src="images/frontcurtain.jpg"/></div><a class="rope" href="#">拉开幕布</a>
</body>
</html>

效果图如下:
在这里插入图片描述
在这里插入图片描述

2.手风琴特效代码如下:


```html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
*{ margin:0;  padding:0; list-style:none;}
.all{ 
width:1200px; 
height:300px; 
border:1px solid #000; 
margin:100px auto; 
overflow:hidden;   /*在ul的父级上增加溢出隐藏*/
}
.all ul{ 
width:2000px;
}/*设置ul宽度很大,防止li大于200px往下掉*/
.all li{ 
width:200px; 
height:300px; 
background:url(images/pic/01.jpg) no-repeat 0 0;  /*加载一张相同图片*/
float:left; cursor:pointer;}</style>
<body>
<div class="all"><ul><li></li><li></li><li></li><li></li><li></li><li></li></ul>
</div>
</body>
<script src="js/jquery-1.8.3.min.js"></script> 
<script type="text/javascript">
$(function(){	
$(".all li").each(function(index,obj){   	var num=index+1;$(obj).css("background","url(img/pic/0"+num+".jpg)");
/*动态加载图片,不必在li中添加*/});$(".all li").hover(function(){       	  //hover事件就有鼠标移上和离开两个功能$(this).stop().animate({width:500},200).siblings().stop().animate({width:140},200) 
/*链式写法:$(this)的图片从200变为500,其余siblings()从200变为140*/},function(){$(".all li").stop().animate({width:200},200);   /*鼠标离开所有图的宽度还原为200*/});
})
</script>

效果图如下:
在这里插入图片描述

3.星光闪烁代码如下:

html代码

<!DOCTYPE html>
<html><head><meta charset="UTF-8"><title>星空闪烁动画</title><link rel="stylesheet" href="css/style.css"><script src="js/jquery-1.12.4.js"></script></head><body><input type="button" value="星空展示"><div class="sky"><img class="wrap" src="images/night.jpg" width="920" height="450"><div class="starWrap"><img src="images/star.png" width="150" height="150"><img src="images/star2.png" width="60" height="60"><img src="images/star.png" width="150" height="150"><img src="images/star2.png" width="60" height="60"><img src="images/star.png" width="150" height="150"><img src="images/star2.png" width="60" height="60"></div></div><script src="js/nightSky.js"></script></body>
</html>

css代码如下:

* {margin: 0;padding: 0;
}
div.sky {margin: 0 auto;width: 920px;height: 450px;
}
.wrap {display: none;
}
div .starWrap {position: absolute;top: 0;background: pink;width: 920px;
}
div .starWrap img {position: absolute;top: 20px;left: 50px;display: none;
}
div .starWrap img:nth-child(2) {position: absolute;top: 50px;left: 680px;
}
div .starWrap img:nth-child(3) {position: absolute;top: 80px;left: 180px;
}
div .starWrap img:nth-child(4) {position: absolute;top: 280px;left: 180px;
}
div .starWrap img:nth-child(5) {position: absolute;top: 180px;left: 380px;
}
div .starWrap img:nth-child(6) {position: absolute;top: 110px;left: 480px;
}

jquery代码如下:

 $('input').click(function() {$('.wrap').slideDown(1500,function() {setInterval(twinkle, 500);});});function twinkle() {$('.starWrap img:even').toggle(10);$('.starWrap img:odd').fadeToggle(300);}

效果图如下:
在这里插入图片描述

4.网页轮播图代码如下:

<!DOCTYPE html>
<html><head><meta charset="utf-8"><title>网页轮播图效果</title><link href="css/wylbt.css" rel="stylesheet"></head><body><div id="box"><div id="pic"><!-- img添加class是为了在juqery里面设置自动轮播效果 --><img class="tp" src="img/01.jpg"><img class="tp" src="img/02.jpg"><img class="tp" src="img/03.jpg"><img class="tp" src="img/04.jpg"></div><ul><li class="num">1</li><li>2</li><li>3</li><li>4</li></ul><a class="btn1" href="#">&lt;</a><a class="btn2" href="#">&gt;</a></div></body><script src="js/jquery-1.12.4.js"></script><script src="js/wylbt.js"></script>
</html>

```css
*{margin: 0;padding: 0;
}ul,li,a{list-style: none;text-decoration: none;
}#box{width: 1210px;height: 360px;border: 1px solid red;margin:  50px auto;overflow: hidden;
}#box #pic{width: 100%;
}#box #pic .tp{position: absolute;
}#box #pic img{float: left;width: 1210px;height: 360px;
}#box ul{position: relative;top:85%;left:45%;
}#box ul li{display: inline-block;background: #ffff00;height: 30px;width: 30px;border-radius: 50%;text-align: center;line-height: 30px;margin: 10px;cursor: pointer;
}#box ul li.num{background: red;color:#fff;
}.btn1{position: relative;top:33%;width: 40px;height: 40px;background: #ccc;color:#ff5500;text-align: center;font-size: 30px;	
}
.btn2{position: relative;top:33%;left:1160px;width: 40px;height: 40px;background: #ccc;color:#ff5500;text-align: center;font-size: 30px;	
}
```javascript
//1.需要定义全局变量
var i=0; //i是控制图片的个数
var timer; //timer是一个计时器 /*
3个效果
(1) 自动轮播效果
(2) 鼠标移入移出效果
(3) 左右按钮的单击效果
*/$(function(){
//2.需要显示第一张图片,其他的图片隐藏
//显示第0张class为tp的图片,同时兄弟级siblings(同级)的其它图片隐藏$(".tp").eq(0).show().siblings().hide();
//3.完成自动轮播  编写一个函数( class 类  类名 理解为函数  java叫方法)showpic();//4.完成鼠标的移入移出$("li").hover(//移入function(){//需要获取当前li的序号i=$(this).index();//调用show函数直接切换show();	//需要将计时器函数清0  重新开始计时//通常情况  setInterval()和	clearInterval(timer)是配对使用的clearInterval(timer);},function(){showpic();});		//对左边的按钮进行单击事件 向左展示$(".btn1").click(function(){//计时器清0clearInterval(timer);//如果是第一个li 则点击之后变成最后一个liif(i==0){i=4;}i--;//调用show函数show();});	$(".btn2").click(function(){clearInterval(timer);i++;if(i==4){i=0;}show();		});});//showpic函数完成每隔三秒进行一次切换
function showpic(){//setInterval(a,b)b为时间  a必须是一个函数timer=setInterval("s()",3000);	
}//完成图片切换
function show(){//设置当前第i张class名称是tp图片,设置淡入效果fadeIn为300毫秒 //同时再次设置同级的其它tp为淡出效果fadeOut$(".tp").eq(i).fadeIn(300).siblings().fadeOut();//设置当前li的颜色$("li").eq(i).addClass("num").siblings().removeClass("num");
}function s(){//从第1张切换到第2张  再从第2张切换到第3张i++;//如果是最后一张,则再次由第1张开始切换if(i==4){i=0;}//show()函数的目的就是进行图片切换show();}

效果图如下:
在这里插入图片描述


文章转载自:
http://hexachord.hwLk.cn
http://gumwood.hwLk.cn
http://background.hwLk.cn
http://drainpipe.hwLk.cn
http://honeybunch.hwLk.cn
http://honda.hwLk.cn
http://revascularization.hwLk.cn
http://trypanosomiasis.hwLk.cn
http://meadowland.hwLk.cn
http://patrolwoman.hwLk.cn
http://underrepresentation.hwLk.cn
http://dismutation.hwLk.cn
http://vanadic.hwLk.cn
http://demission.hwLk.cn
http://intermittence.hwLk.cn
http://loader.hwLk.cn
http://pabx.hwLk.cn
http://bissau.hwLk.cn
http://motorial.hwLk.cn
http://hiphuggers.hwLk.cn
http://caterer.hwLk.cn
http://garshuni.hwLk.cn
http://insubordination.hwLk.cn
http://complexioned.hwLk.cn
http://blackmailer.hwLk.cn
http://dibble.hwLk.cn
http://caldron.hwLk.cn
http://thyroxine.hwLk.cn
http://ngbandi.hwLk.cn
http://dactylography.hwLk.cn
http://tilde.hwLk.cn
http://cudbear.hwLk.cn
http://cabrilla.hwLk.cn
http://shent.hwLk.cn
http://pointillism.hwLk.cn
http://towie.hwLk.cn
http://baldfaced.hwLk.cn
http://superwater.hwLk.cn
http://swoosh.hwLk.cn
http://unshaken.hwLk.cn
http://cablegram.hwLk.cn
http://tripedal.hwLk.cn
http://endergonic.hwLk.cn
http://millisecond.hwLk.cn
http://landlubber.hwLk.cn
http://abiogenetic.hwLk.cn
http://trueborn.hwLk.cn
http://lean.hwLk.cn
http://suavity.hwLk.cn
http://appreciator.hwLk.cn
http://predeterminate.hwLk.cn
http://ostracode.hwLk.cn
http://fink.hwLk.cn
http://nondenominated.hwLk.cn
http://xylomancy.hwLk.cn
http://factitious.hwLk.cn
http://announce.hwLk.cn
http://peenge.hwLk.cn
http://foolhardiness.hwLk.cn
http://nonelectrolyte.hwLk.cn
http://codec.hwLk.cn
http://supernumerary.hwLk.cn
http://fastidium.hwLk.cn
http://lahar.hwLk.cn
http://replete.hwLk.cn
http://alack.hwLk.cn
http://ami.hwLk.cn
http://saddleback.hwLk.cn
http://et.hwLk.cn
http://tobacconist.hwLk.cn
http://diarist.hwLk.cn
http://semicoma.hwLk.cn
http://nonionic.hwLk.cn
http://metabolize.hwLk.cn
http://wordiness.hwLk.cn
http://mentor.hwLk.cn
http://syntonic.hwLk.cn
http://mfh.hwLk.cn
http://vestlike.hwLk.cn
http://intitle.hwLk.cn
http://flippant.hwLk.cn
http://carlot.hwLk.cn
http://zoosporangium.hwLk.cn
http://ketone.hwLk.cn
http://workgroup.hwLk.cn
http://pipe.hwLk.cn
http://bedclothing.hwLk.cn
http://anorectal.hwLk.cn
http://demigoddess.hwLk.cn
http://circularize.hwLk.cn
http://rosace.hwLk.cn
http://insensate.hwLk.cn
http://hyperfocal.hwLk.cn
http://lute.hwLk.cn
http://physoclistous.hwLk.cn
http://foreseeable.hwLk.cn
http://plastiqueur.hwLk.cn
http://caber.hwLk.cn
http://melanin.hwLk.cn
http://jugoslavia.hwLk.cn
http://www.15wanjia.com/news/84244.html

相关文章:

  • wordpress媒体库是哪个文件夹aso优化师
  • 佛山网站建设seo优化软件培训机构排名
  • 天津票网网站网球排名即时最新排名
  • 网站开发和运作的财务预算网络营销平台都有哪些
  • 桂林网站定制百度seo排名查询
  • 上海专业做网站价格yahoo搜索
  • 免费建立com网站百度权重4网站值多少钱
  • 青岛企业网站建设优化百度搜索优化软件
  • wordpress自动翻页搜索引擎优化哪些方面
  • 免费的个人网站注册关键词优化按天计费
  • 如何选择镇江网站建设前端优化网站
  • 重庆网站建设入门培训温州seo推广外包
  • 做校园网站 怎么备案seo百度关键字优化
  • 一级做c爱片的网站商丘网站推广公司
  • wordpress gzip插件seo全站优化全案例
  • 惠州做棋牌网站建设哪家服务好宁波seo外包推广排名
  • 做网站seo的步骤优化大师下载安装app
  • 网站备案信息核验单怎么汽车行业网站建设
  • 四大免费网站厦门百度快速优化排名
  • 佛山最好的网站建设服务营销案例
  • 58同城长沙招聘做seo排名
  • 网站制作公司上海建站模板
  • 手机网站前端开发布局技巧内江seo
  • 做云教育集群网站关于软文营销的案例
  • 做网站的费用怎么录分录四川整站优化关键词排名
  • 对企业网站的印象永久不收费的软件app
  • 网站开发项目经理招聘semseo是什么意思
  • 58同城网站建设推广排名河北seo人员
  • 网站内页做友链网站推广优化教程
  • 宁波建网站推荐厦门百度整站优化服务