<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<style>
*{ margin:0px; padding:0px;}
</style>
</head> <body>
<div style=" width:700px; height:300px; background-color:#E7E7E7; overflow:hidden;position:relative;">
<div id="d1" style="width:500px; height:300px; background-color:#FF8486;position:absolute; float:left; transition:0.7s;" onMouseOver="bian(1)"><img src="路易十三/logo.png" ></div>
<div id="d2" style="width:500px; height:300px; background-color:#FFDE6D;position:absolute; float:left; left:50px; transition:0.7s;" onMouseOver="bian(2)"></div>
<div id="d3" style="width:500px; height:300px; background-color:#83FF48;position:absolute; float:left; left:100px; transition:0.7s;" onMouseOver="bian(3)"></div>
<div id="d4" style="width:500px; height:300px; background-color:#63EEF5;position:absolute; float:left; left:150px; transition:0.7s;" onMouseOver="bian(4)"></div>
<div id="d5" style="width:500px; height:300px; background-color:#776CFF;position:absolute; float:left; left:200px; transition:0.7s;" onMouseOver="bian(5)"></div>
</div>
<br>
<div style=" width:700px; height:300px; background-color:#E7E7E7; overflow:hidden;position:relative;">
<div id="dd1" style="width:500px; height:300px; background-color:#FF8486;position:absolute; float:left; transition:0.7s;" onClick="biann(1)"></div>
<div id="dd2" style="width:500px; height:300px; background-color:#FFDE6D;position:absolute; float:left; left:50px; transition:0.7s;" onClick="biann(2)"></div>
<div id="dd3" style="width:500px; height:300px; background-color:#83FF48;position:absolute; float:left; left:100px; transition:0.7s;" onClick="biann(3)"></div>
<div id="dd4" style="width:500px; height:300px; background-color:#63EEF5;position:absolute; float:left; left:150px; transition:0.7s;" onClick="biann(4)"></div>
<div id="dd5" style="width:500px; height:300px; background-color:#776CFF;position:absolute; float:left; left:200px; transition:0.7s;" onClick="biann(5)"></div>
</div><br> <div style=" width:2500px; height:300px; background-color:#111111; position:relative;"></div>
</body>
</html>
<script language="javascript1.1">
function bian(n)
{
if(n==1){
document.getElementById("d1").style.left="";
document.getElementById("d2").style.left="500px";
document.getElementById("d3").style.left="550px";
document.getElementById("d4").style.left="600px";
document.getElementById("d5").style.left="650px";
}
else if(n==2){
document.getElementById("d1").style.left="";
document.getElementById("d2").style.left="50px";
document.getElementById("d3").style.left="550px";
document.getElementById("d4").style.left="600px";
document.getElementById("d5").style.left="650px";
}
else if(n==3){
document.getElementById("d1").style.left="";
document.getElementById("d2").style.left="50px";
document.getElementById("d3").style.left="100px";
document.getElementById("d4").style.left="600px";
document.getElementById("d5").style.left="650px";
}
else if(n==4){
document.getElementById("d1").style.left="";
document.getElementById("d2").style.left="50px";
document.getElementById("d3").style.left="100px";
document.getElementById("d4").style.left="150px";
document.getElementById("d5").style.left="650px";
}
else if(n==5){
document.getElementById("d1").style.left="";
document.getElementById("d2").style.left="50px";
document.getElementById("d3").style.left="100px";
document.getElementById("d4").style.left="150px";
document.getElementById("d5").style.left="200px";
}
}
function biann(n)
{
if(n==1){
document.getElementById("dd1").style.left="";
document.getElementById("dd2").style.left="500px";
document.getElementById("dd3").style.left="550px";
document.getElementById("dd4").style.left="600px";
document.getElementById("dd5").style.left="650px";
}
else if(n==2){
document.getElementById("dd1").style.left="";
document.getElementById("dd2").style.left="50px";
document.getElementById("dd3").style.left="550px";
document.getElementById("dd4").style.left="600px";
document.getElementById("dd5").style.left="650px";
}
else if(n==3){
document.getElementById("dd1").style.left="";
document.getElementById("dd2").style.left="50px";
document.getElementById("dd3").style.left="100px";
document.getElementById("dd4").style.left="600px";
document.getElementById("dd5").style.left="650px";
}
else if(n==4){
document.getElementById("dd1").style.left="";
document.getElementById("dd2").style.left="50px";
document.getElementById("dd3").style.left="100px";
document.getElementById("dd4").style.left="150px";
document.getElementById("dd5").style.left="650px";
}
else if(n==5){
document.getElementById("dd1").style.left="";
document.getElementById("dd2").style.left="50px";
document.getElementById("dd3").style.left="100px";
document.getElementById("dd4").style.left="150px";
document.getElementById("dd5").style.left="200px";
}
}
</script>

手风琴特效 transition的更多相关文章

  1. 图片每天换及纯css3手风琴特效

    <a target="_blank" id="a"><img id="img" /></a> <s ...

  2. 一款点击图片进行无限循环的jquery手风琴特效

    一款点击图片进行无限循环的jquery手风琴特效,点击手风琴折合点,可以无限循环的点击下去,很炫酷的手风琴哟! 还有每张图片的文字介绍,因为兼容IE6所以找来分享给大家这个jquery特效. 适用浏览 ...

  3. 动漫网站基于jquery的横向手风琴特效

    今天给大家分享一款动漫网站基于jquery的横向手风琴特效.这款手风琴特效适用浏览器:IE8.360.FireFox.Chrome.Safari.Opera.傲游.搜狗.世界之窗.效果图如下: 在线预 ...

  4. CSS实现的手风琴特效

    CSS样式: //图像个数 @imageN:5; //图像hover之前的总宽度 @w:800px; //图像hover之后的宽度 @imageL:640px; //图像hover之前的宽度 @ima ...

  5. 纯js代码实现手风琴特效

    我知道现在大多数前端开发人员都在使用jQuery等第三方的库来进行开发,这不仅节约了时间,也让效率大大的提高,并让公司的效益增加,何乐而不为呢? 但是,这也会有一定的缺点,比如jQ比js慢,尤其在大型 ...

  6. 场景切换特效Transition——Cocos2d-x学习历程(十二)

    Transition 场景切换 在游戏中通常会用到一些场景的切换,比如从加载界面切换到欢迎界面.游戏中的所有场景存放在一个栈中,有且只有一个场景可以处于激活状态.直接replaceScene(即不适用 ...

  7. jQuery特效手风琴特效 手写手风琴网页特效

    今天写一个简单的手风琴效果,不用插件,利用强大的jQuery,写一个手风琴效果. 页面预览,请点击这里预览:  手风琴预览 案例分析: html结构 就是一个大盒子里面放着5个li,每个li的小小是2 ...

  8. JS手风琴特效

    <!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title>& ...

  9. 推荐一款优雅的jquery手风琴特效

    推荐一款基于 jQuery和 CSS3实现的手风琴效果. 查看demo演示

随机推荐

  1. PHP缓存机制Output Control详解

    开启OB缓存的方式有如下两种: 1. php.ini中开启 output_buffering = 4096 启用了此指令,那么每个PHP脚本都相当于一开始就调用了ob_start()函数,PHP5.5 ...

  2. mongodb_修改器($inc/$set/$unset/$push/$pop/upsert......)

    主从复制:http://blog.csdn.net/drifterj/article/details/7833883 对于文档的更新除替换外,针对某个或多个文档只需要部分更新可使用原子的更新修改器,能 ...

  3. java常量池存放在哪里

    运行以下方法: public class Test { public static void main(String[] args) { String str = "abc"; c ...

  4. 01什么是ExtJs?

    前言: 我之前是搞EasyUI+KO.js的,由于最近项目需要用到ExtJs.因此.边学边记录我的学习历程,希望能给自己和大家一点帮助. 1.0什么是ExtJs? 首先,什么是ExtJs呢?ExtJs ...

  5. H5canvas赛车游戏-基于lufylegend引擎

    lufylegend引擎是canvas游戏中,比较简单的引擎之一,它不需要配置环境,类似引入jquery包的方式,引用对应js文件即可 lufylegend官方网站:http://www.lufyle ...

  6. dropify插件的字符串

    1.可以拖拽图片进行上传. 2.使用起来方便. 3.不能进行视频与其他文件的上传,只能上传图片. 4.其余都像普通<input type="file">. 5.在dro ...

  7. php类与对象

    1.类与对象 对象:实际存在该类事物中每个实物的个体.$a =new User(); 实例化后的$a 引用:php的别名,两个不同的变量名字指向相同的内容 封装: 把对象的属性和方法组织在一个类(逻辑 ...

  8. MySQL知识点链接

    1.使用ab进行压力测试详解                                         http://www.365mini.com/page/apache-benchmark. ...

  9. ios中json解析出现的null问题

    http://my.oschina.net/iq19900204/blog/408034 在iOS开发过程中经常需要与服务器进行数据通讯,Json就是一种常用的高效简洁的数据格式. 问题现象 但是几个 ...

  10. css3 transition effect(其它效果)

    http://blog.csdn.net/jerryvon/article/details/8755548 整理了一些其它动画,用的模板为flip模板,只不过CSS3不同 /************* ...