js 兼容火狐漂亮的图片切换

js 兼容火狐漂亮的图片切换

<!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>
<title>兼容火狐漂亮的图片切换效果代码_网页代码站(www.webdm.cn)</title>
<link href="css教程">http://www.webdm.cn/images/20091005/ycStyle200905.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div style="height:100px;"></div>
<div id="topArea">
 <div class="leftBox1">
     <div class="foc">
          <div id="bigImg" style="filter:progid:DXImageTransform.Microsoft.Fade( duration=0.5,overlap=1.0)">
            <div class="dis"><a href="/" target="_blank"><img src="http://www.webdm.cn/images/20091005/93401.jpg" width="231" height="319" onmouseo教程ver="clearAuto();"

onmouseout="setAuto()" /></a><br /><span><a href="/" target="_blank">欢迎来到网页代码站</a></span></div>
            <div class="undis"><a href="/" target="_blank"><img src="http://www.webdm.cn/images/20091005/93407.jpg" width="231" height="319" onmouseover="clearAuto();"

onmouseout="setAuto()" /></a><br /><span><a href="/" target="_blank">精品网页代码</a></span></div>
            <div class="undis"><a href="/" target="_blank"><img src="http://www.webdm.cn/images/20091005/93411.jpg" width="231" height="319" onmouseover="clearAuto();"

onmouseout="setAuto()" /></a><br /><span><a href="/" target="_blank">绝色女子:情魅凤陵王</a></span></div>
            <div class="undis"><a href="/" target="_blank"><img src="http://www.webdm.cn/images/20091005/93409.jpg" width="231" height="319" onmouseover="clearAuto();"

onmouseout="setAuto()" /></a><br /><span><a href="/" target="_blank">小仙女:眷恋五百年</a></span></div>
          </div>
          <div class="rbox">
              <div id="thumbImg">
                 <div class="cur"><img src="http://www.webdm.cn/images/20091005/93402.jpg" alt="" onclick="Mea(0);" onmouseover="clearAuto();" onmouseout="setAuto()"

/></div><p></p><div class="normal"><img src="http://www.webdm.cn/images/20091005/93408.jpg" alt="" onclick="Mea(1);" onmouseover="clearAuto();" onmouseout="setAuto()"

/></div><p></p><div class="normal"><img src="http://www.webdm.cn/images/20091005/93412.jpg" alt="" onclick="Mea(2);" onmouseover="clearAuto();" onmouseout="setAuto()"

/></div><p></p><div class="normal"><img src="http://www.webdm.cn/images/20091005/93410.jpg" alt="" onclick="Mea(3);" onmouseover="clearAuto();" onmouseout="setAuto()"

/></div>
              </div>
              <div class="more color_717"></div>
          </div>
          <div class="cb"></div>
          <script language="网页特效">
                var n=0;
                var showImg = document.getElementById("bigImg");
                var showNum = document.getElementById("thumbImg");
               var ie = document.all?true:false;
                function Mea(value){
                    n=value;
                    setBg(value);
                    plays(value);
                }
                function setBg(value){
                  for(var i=0;i<4;i++)
                   if(value==i){showNum.getElementsByTagName("div")[i].className='cur';}
                    else{showNum.getElementsByTagName("div")[i].className='normal';} 
                  }
                function plays(value){
                    if(ie){with (bigImg){
                        filters[0].Apply();
                        for(i=0;i<4;i++)i==value?showImg.getElementsByTagName("div")[i].className='dis':showImg.getElementsByTagName("div")[i].className='undis';
                        filters[0].play();  
                    }
}else{
                        for(i=0;i<4;i++)i==value?showImg.getElementsByTagName("div")[i].className='dis':showImg.getElementsByTagName("div")[i].className='undis';
}                }            
                function clearAuto(){clearInterval(autoStart)}
                function setAuto(){autoStart=setInterval("auto(n)", 3000)}
                function auto(){
                    n++;
                    if(n>3)n=0;
                    Mea(n);
                }
         window.onload =  setAuto();
           </script>
        </div>
  </div>
 
</div>
<div id="vipBox" class="warp960"></div>
<div id="artList"></div>
</body>
</html>
<br />

时间: 2024-08-01 00:48:50

js 兼容火狐漂亮的图片切换的相关文章

js兼容火狐获取图片宽和高的方法

  本文实例讲述了js兼容火狐获取图片宽和高的方法.分享给大家供大家参考.具体实现方法如下: ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 <!doctype html> <html> <head> <meta content="text/html; charset=GBK" http-equiv="Content-Type" />

js兼容火狐获取图片宽和高的方法_javascript技巧

本文实例讲述了js兼容火狐获取图片宽和高的方法.分享给大家供大家参考.具体实现方法如下: <!doctype html> <html> <head> <meta content="text/html; charset=GBK" http-equiv="Content-Type" /> <title>获取Image 宽高</title> </head> <body> <

js兼容火狐显示上传图片预览效果的方法

  本文实例讲述了js兼容火狐显示上传图片预览效果的方法.分享给大家供大家参考.具体实现方法如下: ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 <!doctype html> <html> <head> <meta content="text/html; charset=GBK" http-equiv="Content-

js兼容火狐显示上传图片预览效果的方法_javascript技巧

本文实例讲述了js兼容火狐显示上传图片预览效果的方法.分享给大家供大家参考.具体实现方法如下: <!doctype html> <html> <head> <meta content="text/html; charset=GBK" http-equiv="Content-Type" /> <title>Image preview example</title> <style type=&

js兼容ie ff ie8 图片等比例缩放代码

 代码如下 复制代码 <!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=&qu

js 带缩略图纯javascript图片切换代码

2008年度排名第一的网页游戏-武林三国 2009年最新的网页游戏,游戏特长:个人英雄主义 商业大亨,挑战亿万富翁,09年顶级网页游戏 一款2009年不得不玩的网页游戏-帝国远征

js 带Loading效果的图片切换代码

左 右

js兼容多钟浏览tab切换代码

提示:您可以先修改部分代码再运行 把如下代码加入区域中 链接一 链接二 链接三 链接四 链接五 链接六 提示:您可以先修改部分代码再运行

js+div实现文字滚动和图片切换效果代码_javascript技巧

本文实例讲述了js+div实现文字滚动和图片切换效果代码.分享给大家供大家参考.具体如下: 这里演示js+div文字滚动和图片切换代码,为了演示方便,去掉了图片调用,用数字代替了,用时候再加上就可以了,本效果实现了两种效果,Div切换,TAB切换,和文字滚动,鼠标移上后文字停止滚动,两种功能可任意剥离出来,这不影响代码使用. 运行效果截图如下: 在线演示地址如下: http://demo.jb51.net/js/2015/js-div-txt-pic-scroll-cha-style-codes