日期:2014-05-18  浏览次数:20383 次

一个关于定时变换图片有意思的问题120分,在线加分
我用vs.net 2008.怎么样能实现都可以。
 问题开始
1,在页面上一个方框里(单元格或空格都可以),显示几副图片(按3幅图吧),这几副图片定时变换。
2,变换到一个图片是,双击是一个连接(呵呵 这个简单,是为了问题连贯性)
3,在显示的图片上有这个有几个这图片的选择按钮(如1,2,3)图片动时按钮是不动的。当按钮得到焦点时,显示对应的图片。

效果如http://www.healthbanks.cn/ 中间的定时变换的图片
先给120分解决后再加100分。这个东西 不错。

------解决方案--------------------
http://blog.csdn.net/suyiming/archive/2008/05/08/2415756.aspx
------解决方案--------------------
老兄,你说的那个效果如http://www.healthbanks.cn/ 中间的定时变换的图片 ,人家是做了一个flash实现的.
------解决方案--------------------
没有变化是我忘了贴Css的缘故。2楼用的是Flash幻灯片结合js。
HTML code
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>无标题页</title>
<style type="text/css">
<!--
/*scroll image*/
#MainPromotionBanner{float:left; width:280px; height:160px; background:#FFF; }
    #MainPromotionBanner #SlidePlayer {position:relative; margin: 0 auto; }
        #MainPromotionBanner #SlidePlayer a { padding:0; }
        #MainPromotionBanner #SlidePlayer .hackbox { clear:both;  border-top:transparent 0px solid; }
        #MainPromotionBanner #SlidePlayer .Slides { padding: 0; margin: 0; list-style: none; height: 160px; overflow: hidden; }
        #MainPromotionBanner #SlidePlayer .Slides li { float: left; width: 280px; height: 160px; }
        #MainPromotionBanner #SlidePlayer .Slides img { border:0; display: block; width: 280px; height: 160px;     }
        #MainPromotionBanner #SlidePlayer .SlideTriggers { margin: 0; padding: 0; list-style: none;  position: absolute;  top: 135px;  right: 3px; z-index: 10; height: 25px;     }
        #MainPromotionBanner #SlidePlayer .SlideTriggers li { float: left; display: inline; color: #2E98D5; text-align: center; line-height:16px; width: 16px; height: 16px; font-family: Arial; font-size: .9em; cursor: pointer; overflow: hidden;  margin:3px 1px; border:1px solid #2E98D5; background-color:#fff; }
        #MainPromotionBanner #SlidePlayer .SlideTriggers li.Current { color:#fff;  background-color:#2E98D5; border:0;  font-weight:bold; font-size: 1.4em; line-height: 21px; height: 21px; width: 21px; margin:0 1px;  }
-->
    </style>
</head>
<body>
<form id="form1" runat="server">
  <div class="grayBorder2 fr">
    <script src="http://www.xz138.com/template/images/yui.js" type="text/javascript"> </script>
    <script src="http://www.xz138.com/template/images/tbar.js" type="text/javascript"> </script>
    <div id="MainPromotionBanner">
      <div id="SlidePlayer">
        <ul class="Slides">
          <li> <a href="http://bible.younet.com/files/2008/07/03/394196.shtml" target="_blank"> <img src="http://www.xz138.com/template/images/s001.jpg"> </a> </li>
          <li> <a href="http://magzine.younet.com/html/22/05/08/536778_438121.shtml" target="_blank"> <img src="http://www.xz138.com/template/images/s002.jpg"> </a> </li>
          <li> <a href="http://magzine.younet.com/html/22/05/08/536777_438120.shtml" target="_blank"> <img src="http://www.xz138.com/template/images/s003.jpg"> </a> </li>
        </ul>
        <div class="hackbox"> </div>
      </div>
      <div class="hackbox"> </div>
    </div>
    <div class="hackbox"> </div>
    <script type="text/javascript">TB.widget.SimpleSlide.decorate('SlidePlayer', {eventType:'mouse', effect:'scroll'}); </script>
  </div>
</form>
</body>
</html>