<!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. 从头开始写框架(一):浅谈JS模块化发展

    博客申请下来已经过去一个月了,一直不知道写点什么,毕竟我的文笔不是很好orz. 不过既然申请下来了,不写点什么总是觉得很可惜.正好最近在自己写框架,就把自己的进程和一些心得体会分享出来吧. 写在前面: ...

  2. [转载]JavaScript内存分析

    https://github.com/CN-Chrome-DevTools/CN-Chrome-DevTools/blob/master/md/Performance-Profiling/javasc ...

  3. 遍历一个类的属性--并转换为Dictionary类型

    参考地址...http://www.cnblogs.com/xwgli/p/3306297.html 记录点滴...以前很少用泛型...HaHa... /// <summary> /// ...

  4. 怎么看网站是否开启CDN加速?测试网站全国访问速度方法详解

    注意域名,动静分离的网站,只对静态文件的域名做了cdn 怎么看网站有没开启CDN? 要看一个网站是否开启CDN,方法很简单,只要在不同的地区ping网址就可以,比如在山东济南ping www.jb51 ...

  5. bootstrap实现弹出窗口

    bootstrap使用modal-dialog实现弹对话框. 一个对话框包含3部分: 对话框头部 modal-header 对话框内容体 modal-body 对话框底部 modal-footer 如 ...

  6. 吉他笔记 solo 和弦 推弦 音程

    十二平均律: 如下图所示: 第一行为唱名:do re mi fa so.... 第二行为音名:C #C D #D E F #F G #G A #A B C 第三行为D调对应的音名,即1 = D 第四行 ...

  7. Bellman_Ford

    Source:http://www.cnblogs.com/Jason-Damon/archive/2012/04/21/2460850.html 摘自百度百科 Bellman-ford算法是求含负权 ...

  8. HDU 5074 Hatsune Miku(2014鞍山赛区现场赛E题)

    题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5074 解题报告:给出一个长度为n的序列,例如a1,a2,a3,a4......an,然后这个序列的美丽 ...

  9. web文件操作常见安全漏洞(目录、文件名检测漏洞)

    做web开发,我们经常会做代码走查,很多时候,我们都会抽查一些核心功能,或者常会出现漏洞的逻辑.随着技术团队的壮大,组员技术日益成熟. 常见傻瓜型SQL注入漏洞.以及XSS漏洞.会越来越少,但是我们也 ...

  10. spring边边角角

    我们在使用ssh框架的时候,很多人抱怨为什么之前都运行得好好的,第二天就报错了,我也是被这个问题纠结了很久. 我们来看看spring的配置文件: <?xml version="1.0& ...