<head>
<title>搜弧IT頻道的幻燈片切換的特效源代碼</title>
<body>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD>
<DIV align=center>
<SCRIPT type=text/javascript>
<!--
t=3; //secs per slide
// promos + links
prmo = new Array();
link = new Array();
prmo[1]="/js";
prmo[2]="/js";
//prmo[2]="/js";
prmo[4]="/js";
prmo[0]="/js";
prmo[3]="/js";
//init
promos = "";
links = "";
// build flashvars
for (x=0;x<prmo.length;x++) {
promos += (x+1<prmo.length) ? prmo[x]+"|" : prmo[x];
links += (x+1<prmo.length) ? link[x]+"|" : link[x];
}
var MM_contentVersion = 6;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
var words = navigator.plugins["Shockwave Flash"].description.split(" ");
for (var i = 0; i < words.length; ++i)
{
if (isNaN(parseInt(words[i])))
continue;
var MM_PluginVersion = words[i];
}
var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
&& (navigator.appVersion.indexOf("Win") != -1)) {
document.write('<SCR' + 'IPT LANGUAGE=VBScript> \n'); //FS hide this from IE4.5 Mac by splitting the tag
document.write('on error resume next \n');
document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
document.write('</SCR' + 'IPT> \n');
}
if ( MM_FlashCanPlay ) {
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="410" height="200" align="middle">');
document.write('<param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="/js/img.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><param name="wmode" value="transparent" />');
document.write('<param name="FlashVars" value="p=' + promos + '&l=' + links + '&t=' + t + '">');
document.write('<embed src="/js/img.swf" FlashVars="p=' + promos + '&l=' + links + '&t=' + t + '" quality="high" bgcolor="#ffffff" width="410" height="200" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="/go/getflashplayer" wmode="transparent" />');
document.write('</object>');
}
//-->
</SCRIPT>
</DIV></TD></TR></TBODY></TABLE>
<body>
</html>
或者
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "/newimg/adpic.gif);}
.focusPic .adPic .text{float:right; padding:9px 4px 0 0; width:140px;}
.focusPic .adPic .text a{color:#1f3a87;}
.focusPic .adPic .text a:hover{color:#bc2931;}
.focusPic h2{ float:left; width:232px;padding:4px 0 3px 12px; font-size:14px; text-align:left;}
.focusPic p{float:left; width:226px;line-height:160%; margin:0; text-align:left;padding:0 0 10px 12px;}
.focusPic p img {margin:0px 0 2px;}
.focusPic .more{ margin:0 auto; width:240px; }
.focusPic .more .textNum{float:right; margin:0 8px 0 0;padding:0 0 4px;}
.focusPic .more .textNum .text{float:left; font-weight:bold; padding:7px 6px 0 0; color:#666;}
.focusPic .more .textNum .num{float:left; width:113px; height:19px;}
.focusPic .more .textNum .bg1{ background:url(/newimg/num1.gif);}
.focusPic .more .textNum .bg2{ background:url(/newimg/num2.gif);}
.focusPic .more .textNum .bg3{ background:url(/newimg/num3.gif);}
.focusPic .more .textNum .bg4{ background:url(/newimg/num4.gif);}
.focusPic .more .textNum .num ul{ float:left; width:113px;}
.focusPic .more .textNum .num li{float:left; width:28px; font-weight:bold;display:block; color:#fff; list-style-type:none; padding:6px 0 0;}
.focusPic .more .textNum .num li a{color:#fff; padding:0 5px; }
.focusPic .more .textNum .num li a:visited{color:#fff;}
.focusPic .more .textNum .num li a:hover{color:#ff0;}
-->
</style>
</head>
<body>
<script language="JavaScript" type="text/javascript">
var nn;
nn=1;
setTimeout('change_img()',6000);
function change_img()
{
if(nn>4) nn=1
setTimeout('setFocus1('+nn+')',6000);
nn++;
tt=setTimeout('change_img()',6000);
}
function setFocus1(i)
{
selectLayer1(i);
}
function selectLayer1(i)
{
switch(i)
{
case 1:
document.getElementById("focusPic1").style.display="block";
document.getElementById("focusPic2").style.display="none";
document.getElementById("focusPic3").style.display="none";
document.getElementById("focusPic4").style.display="none";
document.getElementById("focusPic1nav").style.display="block";
document.getElementById("focusPic2nav").style.display="none";
document.getElementById("focusPic3nav").style.display="none";
document.getElementById("focusPic4nav").style.display="none";
break;
case 2:
document.getElementById("focusPic1").style.display="none";
document.getElementById("focusPic2").style.display="block";
document.getElementById("focusPic3").style.display="none";
document.getElementById("focusPic4").style.display="none";
document.getElementById("focusPic1nav").style.display="none";
document.getElementById("focusPic2nav").style.display="block";
document.getElementById("focusPic3nav").style.display="none";
document.getElementById("focusPic4nav").style.display="none";
break;
case 3:
document.getElementById("focusPic1").style.display="none";
document.getElementById("focusPic2").style.display="none";
document.getElementById("focusPic3").style.display="block";
document.getElementById("focusPic4").style.display="none";
document.getElementById("focusPic1nav").style.display="none";
document.getElementById("focusPic2nav").style.display="none";
document.getElementById("focusPic3nav").style.display="block";
document.getElementById("focusPic4nav").style.display="none";
break;
case 4:
document.getElementById("focusPic1").style.display="none";
document.getElementById("focusPic2").style.display="none";
document.getElementById("focusPic3").style.display="none";
document.getElementById("focusPic4").style.display="block";
document.getElementById("focusPic1nav").style.display="none";
document.getElementById("focusPic2nav").style.display="none";
document.getElementById("focusPic3nav").style.display="none";
document.getElementById("focusPic4nav").style.display="block";
break;
}
}
</script>
<div class="focusPic">
<div id="focusPic1" style="display:block ;">
<div class="pic"> <a href="/special/000915SN/soft2005.html"><img src="/tech/2006/1/18/2006011810122068706.jpg" alt="網易學院05年軟件評選結果" width="240" height="180" border="0" /></a> </div>
<h2><a href="/special/000915SN/soft2005.html">網易學院05年軟件評選結果</a></h2>
<p>經過大家的熱情投票和我們的辛勞整理,網易學院2005年年度軟件評選結果終於出爐啦。點擊進入查看……<img src="/newimg/i2.gif" alt="詳細" width="3" height="5" /> <a href="/special/000915SN/soft2005.html" class="cDRed">詳細</a></p>
</div>
<div id="focusPic2" style="display: none ;">
<div class="pic"> <a href="/discover/"><img src="/tech/2006/1/17/200601171557008cee7.jpg" alt="顛覆叢林動物生存法則" width="240" height="180" border="0" /></a> </div>
<h2><a href="/discover/">顛覆叢林動物生存法則</a></h2>
<p>群居動物的這種行為顛覆了我們通常認為的,在動物世界通行的 “叢林法則”,動物不都自私,不都是弱肉強食的。<img src="/newimg/i2.gif" alt="詳細" width="3" height="5" /> <a href="/discover/" class="cDRed">詳細</a></p>
</div>
<div id="focusPic3" style="display: none ;">
<div class="pic"> <a href="/special/00091MNJ/itobserve015.html"><img src="/tech/2006/1/17/2006011711483290a60.jpg" alt="WAPI並非貿易陰謀" width="240" height="180" border="0" /></a> </div>
<h2><a href="/special/00091MNJ/itobserve015.html">WAPI並非貿易陰謀</a></h2>
<p>近日國家做出決定:“將向其他的國內及國外企業公布該算法”。事實證明中國WAPI標準並非是貿易陰謀。<img src="/newimg/i2.gif" alt="詳細" width="3" height="5" /> <a href="/special/00091MNJ/itobserve015.html" class="cDRed">詳細</a></p>
</div>
<div id="focusPic4" style="display: none ;">
<div class="pic"> <a href="/special/00091OSI/horizons.html"><img src="/tech/2006/1/17/200601171002503f251.jpg" alt="新視野號探測冥王星特別專題" width="240" height="180" border="0" /></a> </div>
<h2><a href="/special/00091OSI/horizons.html">新視野號探測冥王星特別專題</a></h2>
<p>美國宇航局將於北京時間18日淩晨2時24分發射新視野號探測器,造訪這顆人類唯壹尚未探測過的行星-冥王星。<img src="/newimg/i2.gif" alt="詳細" width="3" height="5" /> <a href="/special/00091OSI/horizons.html" class="cDRed">詳細</a></p>
</div>
<div class="more">
<div class="textNum">
<div class="text">> 更多頭圖新聞</div>
<div class="num bg1" id="focusPic1nav" style="display: block;">
<ul>
<li>1</li>
<li><a href="javascript:setFocus1(2);" target="_self">2</a></li>
<li><a href="javascript:setFocus1(3);" target="_self">3</a></li>
<li><a href="javascript:setFocus1(4);" target="_self">4</a></li>
</ul>
</div>
<div class="num bg2" id="focusPic2nav" style="display: none;">
<ul>
<li><a href="javascript:setFocus1(1);" target="_self">1</a></li>
<li>2</li>
<li><a href="javascript:setFocus1(3);" target="_self">3</a></li>
<li><a href="javascript:setFocus1(4);" target="_self">4</a></li>
</ul>
</div>
<div class="num bg3" id="focusPic3nav" style="display: none;">
<ul>
<li><a href="javascript:setFocus1(1);" target="_self">1</a></li>
<li><a href="javascript:setFocus1(2);" target="_self">2</a></li>
<li>3</li>
<li><a href="javascript:setFocus1(4);" target="_self">4</a></li>
</ul>
</div>
<div class="num bg4" id="focusPic4nav" style="display: none;">
<ul>
<li><a href="javascript:setFocus1(1);" target="_self">1</a></li>
<li><a href="javascript:setFocus1(2);" target="_self">2</a></li>
<li><a href="javascript:setFocus1(3);" target="_self">3</a></li>
<li>4</li>
</ul>
</div>
</div>
</div>
</div>
</body>
</html>