标题:[求助]为什么没实现图片动态切换的效果
只看楼主
sky_200828
Rank: 1
等 级:新手上路
帖 子:27
专家分:0
注 册:2005-7-5
 问题点数:0 回复次数:1 
[求助]为什么没实现图片动态切换的效果


<%@ Page language="c#" Codebehind="index.aspx.cs" AutoEventWireup="false" Inherits="thmy.index" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>aaa</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<!--body bgColor="snow" MS_POSITIONING="GridLayout" > -->
</HEAD>
<body bgColor="snow" MS_POSITIONING="GridLayout">
<script language="JavaScript">
<!--
var bannerAD=new Array();
var bannerADlink=new Array();
var adNum=0;
bannerAD[0]="images\ly3.gif";
bannerADlink[0]="index.aspx";
bannerAD[1]="images\ly4.gif";
bannerADlink[1]="index.aspx";
bannerAD[2]="images\ly6.gif";
bannerADlink[2]="index.aspx";
bannerAD[3]="images\ly7.gif";
bannerADlink[3]="index.aspx";
bannerAD[4]="images\ly8.gif";
bannerADlink[4]="index.aspx";
var preloadedimages=new Array();
for (i=1;i<5;i++){
preloadedimages[i]=new Image();
preloadedimages[i].src=bannerAD[i];
}

function setTransition(){
if (document.all){
bannerADrotator.filters.revealTrans.Transition=Math.floor(Math.random()*23);
bannerADrotator.filters.revealTrans.apply();
}
}

function playTransition(){
if (document.all)
bannerADrotator.filters.revealTrans.play()
}

function nextAd(){
if(adNum<bannerAD.length-1)adNum++ ;
else adNum=0;
setTransition();
document.images.bannerADrotator.src=bannerAD[adNum];
playTransition();
theTimer=setTimeout("nextAd()", 6000);
}

function jump2url(){
jumpUrl=bannerADlink[adNum];
jumpTarget='_blank';
if (jumpUrl != ''){
if (jumpTarget != '')window.open(jumpUrl,jumpTarget);
else location.href=jumpUrl;
}
}
function displayStatusMsg() {
status=bannerADlink[adNum];
document.returnValue = true;
}
//-->
</script>
<form id="Form1" method="post" runat="server">
<uc1:webtop id="WebTop" runat="server"></uc1:webtop>
<TABLE id="Table1" style="WIDTH: 988px; HEIGHT: 480px" cellSpacing="0" cellPadding="0"
width="988" align="center" bgColor="#fffafa" border="0">
<TR>
<TD style="WIDTH: 571px" vAlign="top"></tb>
<TABLE id="Table2" style="WIDTH: 392px; HEIGHT: 328px" cellSpacing="0" cellPadding="0"
width="392" align="center" bgColor="#ffffff" border="1">
<TR>
<TD><!--IMG style="WIDTH: 415px; HEIGHT: 326px" height="326" alt="" src="images\ly4.gif" width="415">--><IMG style="FILTER: revealTrans(duration=2,transition=20)" height="100" src="javascript:nextAd()"
width="100" border="0" name="bannerADrotator">
</TD>
</TR>
</TABLE>
</FONT>
</TD>
</TR>
</TABLE>
<FONT face="宋体" color="#ffcccc"></FONT>
<uc1:webfoot id="Webfoot" runat="server"></uc1:webfoot></form>
</body>
</HTML>

搜索更多相关主题的帖子: Microsoft meta 动态 效果 
2006-06-10 14:28
sky_200828
Rank: 1
等 级:新手上路
帖 子:27
专家分:0
注 册:2005-7-5
得分:0 

请大家帮我看看 万分感谢!!!!!!!!!!!!!!!!!!!!!

2006-06-10 14:29



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-71123-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.773463 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved