图片翻转效果
.box {overflow:hidden;position:relative;}
.txt {width:100%;height:100%;background:#f51146;font-size:12px;position:absolute;top:-100%;color:white;
text-align:center;filter:alpha(Opacity=80);-moz-opacity:0.8;opacity:0.8;}
#b1 {background:url(http://biyuan.tk/u/upload/201310221457326875.jpg);width:232px;height:232px;}
#b2 {background:url(http://biyuan.tk/u/upload/201310221457486875.jpg);width:110px;height:110px;}
#b3 {background:url(http://biyuan.tk/u/upload/201310221458149843.jpg);width:110px;height:110px;}文字说明
文字说明文字文字说明
文字说明文字文字说明
文字说明文字
function Show(o, s, v){
clearInterval(Show.prototype[“a” + v]);
Show.prototype[“a” + v] = setInterval(function(){
if(s == -1) {
if(o.offsetTop <= -o.parentNode.offsetHeight) {
o.style.top = -o.parentNode.offsetHeight + “px”;
return clearInterval(Show.prototype[“a” + v]);
}
} else {
if(o.offsetTop >= -10) {
o.style.top = 0;
return clearInterval(Show.prototype[“a” + v]);
}
}
o.style.top = (o.offsetTop * 1 + 10 * s) + “px”;
}, 10);
}
var igs = document.getElementById(‘obj’).getElementsByTagName(“div”);
for(var i = 0; i < igs.length; i ++) {
if(igs[i].className == “box”) {
(function(x){
igs[x].onmouseover = function(){
Show(this.childNodes[0], 1, x);
this.onmouseout = function() {
Show(this.childNodes[0], -1, x);
}
}
})(i);
}
}
效果预览:http://biyuan.tk/u/upload/201310221500310000.htmlqq空间交友源码,vscode十大插件小游戏,Ubuntu重启终端,tomcat 支持的并发量,豆瓣爬虫心得,php很难学吗,淘宝seo是什么如何优化排名lzw
首页 >
图片翻转效果具体实现代码【javascript】
web前端|js教程
图片翻转
web前端-js教程
以下为程序代码: automapper 源码,vscode怎么在输出中输入,ubuntu 新建组,tomcat打开页面空白,卖茶大叔 爬虫,php网站后门检测,重庆谷歌seo谁做的好,优秀学校网站模板lzw