我的相册有五个页面,为什么添加的数字链接在ff浏览器下市可以的,但是在IE浏览器下45可以,123不可以。
页面代码是:
<div class="part1cen">
<script type="text/javascript">
var MaxScreen = 5 ;
var CurScreen = 1 ;
</script> <div class="flashNews">
<div id="Switch_1"><a href="#" target="_blank" blockid="1121"><img src="../images/mainindex/pic1m08e6v6.jpg" alt="功夫世界" onmouseover="pauseSwitch();" onmouseout="goonSwitch();"/></a></div>
<div id="Switch_2" style="display:none;"><a href="#" target="_blank" blockid="1121"><img src="../images/mainindex/picjo2s0g38.jpg" alt="赎命24小时" onmouseover="pauseSwitch();" onmouseout="goonSwitch();"/></a></div>
<div id="Switch_3" style="display:none;"><a href="#" target="_blank" blockid="1121"><img src="../images/mainindex/picpd8fw1o6.jpg" alt="赎命24小时" onmouseover="pauseSwitch();" onmouseout="goonSwitch();"/></a></div>
<div id="Switch_4" style="display:none;"><a href="#" target="_blank" blockid="1121"><img src="../images/mainindex/picjo2s0g38.jpg" alt="赎命24小时" onmouseover="pauseSwitch();" onmouseout="goonSwitch();"/></a></div>
<div id="Switch_5" style="display:none;"><a href="#" target="_blank" blockid="1121"><img src="../images/mainindex/picpd8fw1o6.jpg" alt="赎命24小时" onmouseover="pauseSwitch();" onmouseout="goonSwitch();"/></a></div>
<div id="SwitchTitle" onmouseover="pauseSwitch();" onmouseout="goonSwitch();"></div>
<ul id="SwitchNav"></ul>
<div class="bg" onmouseover="pauseSwitch();" onmouseout="goonSwitch();"></div>
</div> <script type="text/javascript">
var Switcher = new Array();
Switcher[1] = Array() ;
Switcher[1]['title'] = "赎命24小时" ;
Switcher[1]['stitle'] = "电影版-步步涉险分分惊魂" ;
Switcher[1]['link'] = "#" ;
Switcher[2] = Array() ;
Switcher[2]['title'] = "赎命24小时" ;
Switcher[2]['stitle'] = "电影版-步步涉险分分惊魂" ;
Switcher[2]['link'] = "#" ;
Switcher[3] = Array() ;
Switcher[3]['title'] = "赎命24小时" ;
Switcher[3]['stitle'] = "电影版-步步涉险分分惊魂" ;
Switcher[3]['link'] = "#" ;
Switcher[4] = Array() ;
Switcher[4]['title'] = "赎命24小时" ;
Switcher[4]['stitle'] = "电影版-步步涉险分分惊魂" ;
Switcher[4]['link'] = "#" ;
Switcher[5] = Array() ;
Switcher[5]['title'] = "赎命24小时" ;
Switcher[5]['stitle'] = "电影版-步步涉险分分惊魂" ;
Switcher[5]['link'] = "#" ;
var refreshSwitchTimer = null;
switchPic(CurScreen);
refreshSwitchTimer = setTimeout('reSwitchPic();', 3000);
</script> </div>
页面代码是:
<div class="part1cen">
<script type="text/javascript">
var MaxScreen = 5 ;
var CurScreen = 1 ;
</script> <div class="flashNews">
<div id="Switch_1"><a href="#" target="_blank" blockid="1121"><img src="../images/mainindex/pic1m08e6v6.jpg" alt="功夫世界" onmouseover="pauseSwitch();" onmouseout="goonSwitch();"/></a></div>
<div id="Switch_2" style="display:none;"><a href="#" target="_blank" blockid="1121"><img src="../images/mainindex/picjo2s0g38.jpg" alt="赎命24小时" onmouseover="pauseSwitch();" onmouseout="goonSwitch();"/></a></div>
<div id="Switch_3" style="display:none;"><a href="#" target="_blank" blockid="1121"><img src="../images/mainindex/picpd8fw1o6.jpg" alt="赎命24小时" onmouseover="pauseSwitch();" onmouseout="goonSwitch();"/></a></div>
<div id="Switch_4" style="display:none;"><a href="#" target="_blank" blockid="1121"><img src="../images/mainindex/picjo2s0g38.jpg" alt="赎命24小时" onmouseover="pauseSwitch();" onmouseout="goonSwitch();"/></a></div>
<div id="Switch_5" style="display:none;"><a href="#" target="_blank" blockid="1121"><img src="../images/mainindex/picpd8fw1o6.jpg" alt="赎命24小时" onmouseover="pauseSwitch();" onmouseout="goonSwitch();"/></a></div>
<div id="SwitchTitle" onmouseover="pauseSwitch();" onmouseout="goonSwitch();"></div>
<ul id="SwitchNav"></ul>
<div class="bg" onmouseover="pauseSwitch();" onmouseout="goonSwitch();"></div>
</div> <script type="text/javascript">
var Switcher = new Array();
Switcher[1] = Array() ;
Switcher[1]['title'] = "赎命24小时" ;
Switcher[1]['stitle'] = "电影版-步步涉险分分惊魂" ;
Switcher[1]['link'] = "#" ;
Switcher[2] = Array() ;
Switcher[2]['title'] = "赎命24小时" ;
Switcher[2]['stitle'] = "电影版-步步涉险分分惊魂" ;
Switcher[2]['link'] = "#" ;
Switcher[3] = Array() ;
Switcher[3]['title'] = "赎命24小时" ;
Switcher[3]['stitle'] = "电影版-步步涉险分分惊魂" ;
Switcher[3]['link'] = "#" ;
Switcher[4] = Array() ;
Switcher[4]['title'] = "赎命24小时" ;
Switcher[4]['stitle'] = "电影版-步步涉险分分惊魂" ;
Switcher[4]['link'] = "#" ;
Switcher[5] = Array() ;
Switcher[5]['title'] = "赎命24小时" ;
Switcher[5]['stitle'] = "电影版-步步涉险分分惊魂" ;
Switcher[5]['link'] = "#" ;
var refreshSwitchTimer = null;
switchPic(CurScreen);
refreshSwitchTimer = setTimeout('reSwitchPic();', 3000);
</script> </div>
var random = parseInt(Math.random()*100);
var temp = 0;
for(var i = 0; i < productName.length && random > temp; i++) {
temp += parseInt(productName[i].percent);
}
i = (random == 0 ? 0 : i - 1); return "<a href=\"" + productName[i].url + "\">" + productName[i].name + "</a>";
}
function switchTab(identify,index,count) {
for(i=0;i<count;i++) {
var CurTabObj = document.getElementById("Tab_"+identify+"_"+i) ;
var CurListObj = document.getElementById("List_"+identify+"_"+i) ;
if (i != index) {
fRemoveClass(CurTabObj , "upH3") ;
fRemoveClass(CurListObj , "upBox") ;
}
}
fAddClass(document.getElementById("Tab_"+identify+"_"+index),"upH3") ;
fAddClass(document.getElementById("List_"+identify+"_"+index),"upBox") ;
}function switchSideTab(identify,index,count) {
for(i=0;i<count;i++) {
var CurTabObj = document.getElementById("Tab_"+identify+"_"+i) ;
var CurListObj = document.getElementById("List_"+identify+"_"+i) ;
if (i != index) {
fRemoveClass(CurTabObj , "upH3") ;
fRemoveClass(CurListObj , "upUL") ;
}
}
fAddClass(document.getElementById("Tab_"+identify+"_"+index),"upH3") ;
fAddClass(document.getElementById("List_"+identify+"_"+index),"upUL") ;
}function fAddClass(XEle, XClass)
{/* shawl.qiu code, void return */
if(!XClass) throw new Error("XClass 不能为空!");
if(XEle.className!="")
{
var Re = new RegExp("\\b"+XClass+"\\b\\s*", "");
XEle.className = XEle.className.replace(Re, "");
var OldClassName = XEle.className.replace(/^\s+|\s+$/g,"") ;
if (OldClassName == "" ) {
XEle.className = XClass;
}
else {
XEle.className = OldClassName + " " + XClass;
}
}
else XEle.className = XClass;
}/* end function fAddClass(XEle, XClass) */function fRemoveClass(XEle, XClass)
{/* shawl.qiu code, void return */
if(!XClass) throw new Error("XClass 不能为空!");
var OldClassName = XEle.className.replace(/^\s+|\s+$/g,"") ;
if(OldClassName!="")
{
var Re = new RegExp("\\b"+XClass+"\\b\\s*", "");
XEle.className = OldClassName.replace(Re, "");
}
}/* function fRemoveClass(XEle, XClass) */
function switchPic(screen) {
if (screen > MaxScreen) {
screen = 1 ;
}
for (i=1;i<=MaxScreen;i++) {
document.getElementById("Switch_"+i).style.display = "none" ;
}
document.getElementById("Switch_"+screen).style.display = "block" ;
showSwitchNav(screen);
showSwitchTitle(screen);
//Effect.Appear("Switch_"+screen);
//switchLittlePic(screen);
//showSwitchTitles(screen);
CurScreen = screen ;
}
function showSwitchNav(screen) {
var NavStr = "" ;
for (i=1;i<=MaxScreen;i++) {
if (i == screen) {
NavStr += '<li onmouseover="pauseSwitch();" onmouseout="goonSwitch();"><a href="javascript://" target="_self" class="sel">'+i+'</a></li>' ;
}
else {
NavStr += '<li onmouseover="pauseSwitch();" onmouseout="goonSwitch();" onclick="goManSwitch('+i+');"><a href="javascript://" target="_self">'+i+'</a></li>' ;
}
}
document.getElementById("SwitchNav").innerHTML = NavStr ;
}
function showSwitchTitle(screen) {
var titlestr = "" ;
titlestr = '<h3><a href="'+Switcher[screen]['link']+'" target="_blank">'+Switcher[screen]['title']+'</a></h3><p><a href="'+Switcher[screen]['link']+'" target="_blank">'+Switcher[screen]['stitle']+'</a></p>' ;
document.getElementById("SwitchTitle").innerHTML = titlestr ;
}
function reSwitchPic() {
refreshSwitchTimer = null;
switchPic(CurScreen+1);
refreshSwitchTimer = setTimeout('reSwitchPic();', 3000);
}
function pauseSwitch() {
clearTimeout(refreshSwitchTimer);
}
function goonSwitch() {
clearTimeout(refreshSwitchTimer);
refreshSwitchTimer = setTimeout('reSwitchPic();', 3000);
}
function goManSwitch(index) {
clearTimeout(refreshSwitchTimer);
CurScreen = index - 1 ;
reSwitchPic();
}
function floatAdMove() {
try{BigAd = document.getElementById("BigAd")}catch(e){}
if (BigAd.style.display != "none") {
if (document.ns) {
BigAd.style.top=bdy.scrollTop+bdy.clientHeight-imgheight_close -360;
BigAd.style.left=bdy.offsetWidth/2-bdy.scrollLeft-300;
}
else {
BigAd_style_left=bdy.offsetWidth/2-bdy.scrollLeft-300;
BigAd_style_top = 200 ;
BigAd.style.top=BigAd_style_top + "px";
BigAd.style.left=BigAd_style_left + "px";
}
}
setTimeout("floatAdMove();",50) ;
}function FloatCtrlMove() {
try{FloatCtrl = document.getElementById("FloatCtrl")}catch(e){}
if (FloatCtrl.style.display != "none") {
if (document.ns) {
FloatCtrl.style.top=bdy.scrollTop+bdy.clientHeight-imgheight_close;
FloatCtrl.style.left=bdy.scrollLeft+bdy.offsetWidth-150;
}
else {
FloatCtrl_style_left=bdy.scrollLeft+bdy.offsetWidth-150;
FloatCtrl_style_top = 500 ;
FloatCtrl.style.top=FloatCtrl_style_top + "px";
FloatCtrl.style.left=FloatCtrl_style_left + "px";
}
}
setTimeout("FloatCtrlMove();",50) ;
}function showFloatAd() {
cleanTimer();
try{floatbig = document.getElementById("floatbig")}catch(e){}
if (floatbig.innerHTML != "") {
BigAdStartTimer = setTimeout("Effect.Appear('BigAd');",500);
BigAdEndTimer = setTimeout("hiddenFloatAd();",6000);
hiddenFloatCtrl();
}
} function hiddenFloatAd() {
cleanTimer();
Effect.Fade('BigAd');
showFloatCtrl();
} function showFloatCtrl() {
try {FloatCtrl = getElementById("FloatCtrl")} catch(e){}
FloatCtrl.style.display = "block" ;
}
function hiddenFloatCtrl() {
try {FloatCtrl = getElementById("FloatCtrl")} catch(e){}
FloatCtrl.style.display = "none" ;
}
function cleanTimer() {
clearTimeout(BigAdStartTimer) ;
clearTimeout(BigAdEndTimer);
}css代码是:
.part1cen{ width:450px; height:305px; margin-left:10px; float:left; overflow:hidden;}
.flashNews {position:relative;width:450px;margin-bottom:12px;overflow:hidden;text-align:left; clear:both;}
.flashNews a{ color:White;}
.flashNews img{ width:450px; height:305px; border:0px;}
.firstNews {position:relative;float:right;width:448px;margin-bottom:12px;overflow:hidden;border:1px solid #B6CAE3;}
.flashNews, .firstNews {height:305px;}
.flashNews .bg {position:absolute;left:0;bottom:0;width:450px;height:73px;background:#000000;filter:alpha(opacity=39);-moz-opacity:0.39;opacity:0.39;}
.flashNews h3 {position:absolute;left:10px;top:200px;width:450px;height:35px;line-height:35px;z-index:2;}
.flashNews h3 a{font-size:20px;font-family:"黑体";font-weight:normal;color:White;}
.flashNews h3 a:hover{color:#F20000;}
.flashNews p {position:absolute;left:10px;top:270px;width:450px;height:20px;line-height:20px;;z-index:2;}
.flashNews p a{color:White; overflow:hidden;}
.flashNews p a:hover{color:#F20000;}
.flashNews ul {position:absolute;right:0;bottom:0; overflow:hidden; clear:both;background:url(../images/mainindex/flashPage_bg.png) 0 0 no-repeat;z-index:2;_background:none;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../images/mainindex/flashPage_bg.png',sizingMethod='crop')}
.flashNews ul li {float:left;width:15px;height:18px;line-height:18px;text-align:center;margin-left:1px;background:#000000;}
.flashNews ul li a {display:block;width:15px;height:18px;font-size:10px;font-family:Tahoma;font-weight:bold;color:#FFFFFF;}
.flashNews ul li a:hover, .flashNews ul li a.sel {color:#F20000;}
.firstNews h3 {width:448px;height:27px;line-height:27px;text-indent:14px;font-size:12px;border:1px solid #FFFFFF;background:#F2F6FB;}
.firstNews p {position:absolute;top:5px;right:5px;}
.firstNews p a{font-size:12px;}
.firstNews h4 {width:450px;height:25px;margin:0 auto;overflow:hidden;padding-top:12px;line-height:25px;font-weight:normal;font-size:18px;font-family:"黑体";}
.firstNews ul {width:438px;height:auto;overflow:hidden;_zoom:1;margin:0 0 0 12px;}
.firstNews ul li {position:relative;width:438px;height:22px;line-height:22px;overflow:hidden;text-indent:10px;font-size:14px;background:url(../img/pic.gif) -298px -141px no-repeat;}