<!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="Content-Type" content="text/html; charset=gb2312" /> <title>Semiall.com</title><link href="index.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="index_yp"> <!--yp1 start--> <div id="yp_card1" style="display:block"> <div class="index_yp_card"> <div onmouseover="changeMc(1,1)" onmouseout="hi()" class="yp_card_0">推荐</div> <div onmouseover="changeMc(1,2)" onmouseout="hi()" class="yp_card_3">生产</div> <div onmouseover="changeMc(1,3)" onmouseout="hi()" class="yp_card_3">贸易</div> <div onmouseover="changeMc(1,4)" onmouseout="hi()" class="yp_card_3">服务</div> <div onmouseover="changeMc(1,5)" onmouseout="hi()" class="yp_card_5">综合</div> </div> <div onmouseover="changeMc(1,1)" onmouseout="hi()" class="index_yp_main">推荐(循环周期(1秒))</div> </div> <!--end--> <!--yp2 start--> <div id="yp_card2" style="display:none"> <div class="index_yp_card"> <div onmouseover="changeMc(2,1)" onmouseout="hi()" class="yp_card_1">推荐</div> <div onmouseover="changeMc(2,2)" onmouseout="hi()" class="yp_card_2" >生产</div> <div onmouseover="changeMc(2,3)" onmouseout="hi()" class="yp_card_3">贸易</div> <div onmouseover="changeMc(2,4)" onmouseout="hi()" class="yp_card_3">服务</div> <div onmouseover="changeMc(2,5)" onmouseout="hi()" class="yp_card_5">综合</div> </div> <div onmouseover="changeMc(2,2)" onmouseout="hi()" class="index_yp_main">生产(循环周期(1秒))</div> </div> <!--end--> <!--yp3 start--> <div id="yp_card3" style="display:none"> <div class="index_yp_card"> <div onmouseover="changeMc(3,1)" onmouseout="hi()" class="yp_card_1">推荐</div> <div onmouseover="changeMc(3,2)" onmouseout="hi()"class="yp_card_6">生产</div> <div onmouseover="changeMc(3,3)" onmouseout="hi()" class="yp_card_2">贸易</div> <div onmouseover="changeMc(3,4)" onmouseout="hi()" class="yp_card_3">服务</div> <div onmouseover="changeMc(3,5)" onmouseout="hi()" class="yp_card_5">综合</div> </div> <div onmouseover="changeMc(3,3)" onmouseout="hi()" class="index_yp_main">贸易(循环周期(1秒))</div> </div> <!--end--> <!--yp4 start--> <div id="yp_card4" style="display:none"> <div class="index_yp_card"> <div onmouseover="changeMc(4,1)" onmouseout="hi()" class="yp_card_1">推荐</div> <div onmouseover="changeMc(4,2)" onmouseout="hi()" class="yp_card_6">生产</div> <div onmouseover="changeMc(4,3)" onmouseout="hi()" class="yp_card_6">贸易</div> <div onmouseover="changeMc(4,4)" onmouseout="hi()" class="yp_card_2">服务</div> <div onmouseover="changeMc(4,5)" onmouseout="hi()" class="yp_card_5">综合</div> </div> <div onmouseover="changeMc(4,4)" onmouseout="hi()" class="index_yp_main">服务(循环周期(1秒))</div> </div> <!--end--> <!--yp5 start--> <div id="yp_card5" style="display:none"> <div class="index_yp_card"> <div onmouseover="changeMc(5,1)" onmouseout="hi()" class="yp_card_1">推荐</div> <div onmouseover="changeMc(5,2)" onmouseout="hi()" class="yp_card_6">生产</div> <div onmouseover="changeMc(5,3)" onmouseout="hi()" class="yp_card_6">贸易</div> <div onmouseover="changeMc(5,4)" onmouseout="hi()" class="yp_card_6">服务</div> <div onmouseover="changeMc(5,5)" onmouseout="hi()" class="yp_card_4">综合</div> </div> <div onmouseover="changeMc(5,5)" onmouseout="hi()" class="index_yp_main">综合(循环周期(1秒))</div> </div> <!--end--> </div> <script language="javascript" type="text/javascript"> <!-- var s=5; var t=1000;//循环周期(1秒) var timer; function changeMc(x,y){ // x是当前显示的层 y是即将显示的层 clearTimeout(timer); if (x!=y){ document.getElementById('yp_card'+x).style.display = "none"; document.getElementById('yp_card'+y).style.display = "block"; s=y } } function hi(){ timer=setTimeout("sh()",t) } function sh(){ s=(s>=5)?1:s+1 for (var i=1;i<=5;i++){ document.getElementById("yp_card"+i).style.display = "none"; } document.getElementById("yp_card"+s).style.display = "block" timer=setTimeout("sh()",t) } sh() --> </script> </body> </html> |