<html><head><title></title></head><body>
<script language="javascript" type="text/javascript">
// JScript 鏂囦欢
var elady_step=3; //1:small, 3:middle, 5:big
var elady_speed=50; //20:fast, 50:middle, 80:slow
var e_tp=new Array();
var e_tplink=new Array();
var adNum_elady1=0;
var elady_stop_sh=0;
var elady_star_sh=1;
function elady1_moveImg(){
if ((!document.all&&!document.getElementById)||(elady_stop_sh==0)) return;
if (elady_star_sh==1){
document.all.elady1_divimg.style.pixelTop=parseInt(document.all.elady1_divimg.style.pixelTop)+elady_step;}
else if (elady_star_sh==2){
document.all.elady1_divimg.style.pixelLeft=parseInt(document.all.elady1_divimg.style.pixelLeft)+elady_step;}
else if (elady_star_sh==3){
document.all.elady1_divimg.style.pixelTop=parseInt(document.all.elady1_divimg.style.pixelTop)-elady_step;}
else{
document.all.elady1_divimg.style.pixelLeft=parseInt(document.all.elady1_divimg.style.pixelLeft)-elady_step;}
if (elady_star_sh<4) elady_star_sh++;
else elady_star_sh=1;
setTimeout("elady1_moveImg()",elady_speed);} //e_tplink[0]="http://www.webkkk.com/sygj/ggdm.htm";
e_tp[0]="images/01.jpg"; //e_tplink[1]="http://www.webkkk.com/sygj/ggdm.htm";
e_tp[1]="images/02.jpg"; //e_tplink[2]="http://www.webkkk.com/sygj/ggdm.htm";
e_tp[2]="images/03.jpg"; //e_tplink[3]="http://www.webkkk.com/sygj/ggdm.htm";
e_tp[3]="images/04.jpg";
var currentimage=new Array();
for (i=0;i<=3;i++){currentimage[i]=new Image();
currentimage[i].src=e_tp[i];
}
function elady1_set(){
if (document.all)
{
e_tprotator.filters.revealTrans.Transition=Math.floor(Math.random()*23);
e_tprotator.filters.revealTrans.apply();
}
}
function elady1_playCo()
{
if (document.all)
e_tprotator.filters.revealTrans.play()
}
function elady1_nextAd(){
if(adNum_elady1<e_tp.length-1)adNum_elady1++ ;
else adNum_elady1=0;
elady1_set();
document.images.e_tprotator.src=e_tp[adNum_elady1];
elady1_playCo();
theTimer=setTimeout("elady1_nextAd()", 4000);}
function elady1_linkurl(){
jumpUrl=e_tplink[adNum_elady1];
jumpTarget='_blank';
if (jumpUrl != '')
{
if (jumpTarget != '')
window.open(jumpUrl,jumpTarget);
else location.href=jumpUrl;
}
}
function elady1_listMsg()
{ status=e_tplink[adNum_elady1];
document.returnValue = true;}
document.write("<div id='elady1_divimg' style='position:relative'>");
document.write('<a onMouseOver="elady1_listMsg();return document.returnValue" target="_self">');
document.write('<img style="FILTER: revealTrans(duration=2,transition=20)" height=414 src="javascript:elady1_nextAd()" width=768 border=0 name=e_tprotator ></a>');
document.write("</div>");
</script>
</body></html>
<script language="javascript" type="text/javascript">
// JScript 鏂囦欢
var elady_step=3; //1:small, 3:middle, 5:big
var elady_speed=50; //20:fast, 50:middle, 80:slow
var e_tp=new Array();
var e_tplink=new Array();
var adNum_elady1=0;
var elady_stop_sh=0;
var elady_star_sh=1;
function elady1_moveImg(){
if ((!document.all&&!document.getElementById)||(elady_stop_sh==0)) return;
if (elady_star_sh==1){
document.all.elady1_divimg.style.pixelTop=parseInt(document.all.elady1_divimg.style.pixelTop)+elady_step;}
else if (elady_star_sh==2){
document.all.elady1_divimg.style.pixelLeft=parseInt(document.all.elady1_divimg.style.pixelLeft)+elady_step;}
else if (elady_star_sh==3){
document.all.elady1_divimg.style.pixelTop=parseInt(document.all.elady1_divimg.style.pixelTop)-elady_step;}
else{
document.all.elady1_divimg.style.pixelLeft=parseInt(document.all.elady1_divimg.style.pixelLeft)-elady_step;}
if (elady_star_sh<4) elady_star_sh++;
else elady_star_sh=1;
setTimeout("elady1_moveImg()",elady_speed);} //e_tplink[0]="http://www.webkkk.com/sygj/ggdm.htm";
e_tp[0]="images/01.jpg"; //e_tplink[1]="http://www.webkkk.com/sygj/ggdm.htm";
e_tp[1]="images/02.jpg"; //e_tplink[2]="http://www.webkkk.com/sygj/ggdm.htm";
e_tp[2]="images/03.jpg"; //e_tplink[3]="http://www.webkkk.com/sygj/ggdm.htm";
e_tp[3]="images/04.jpg";
var currentimage=new Array();
for (i=0;i<=3;i++){currentimage[i]=new Image();
currentimage[i].src=e_tp[i];
}
function elady1_set(){
if (document.all)
{
e_tprotator.filters.revealTrans.Transition=Math.floor(Math.random()*23);
e_tprotator.filters.revealTrans.apply();
}
}
function elady1_playCo()
{
if (document.all)
e_tprotator.filters.revealTrans.play()
}
function elady1_nextAd(){
if(adNum_elady1<e_tp.length-1)adNum_elady1++ ;
else adNum_elady1=0;
elady1_set();
document.images.e_tprotator.src=e_tp[adNum_elady1];
elady1_playCo();
theTimer=setTimeout("elady1_nextAd()", 4000);}
function elady1_linkurl(){
jumpUrl=e_tplink[adNum_elady1];
jumpTarget='_blank';
if (jumpUrl != '')
{
if (jumpTarget != '')
window.open(jumpUrl,jumpTarget);
else location.href=jumpUrl;
}
}
function elady1_listMsg()
{ status=e_tplink[adNum_elady1];
document.returnValue = true;}
document.write("<div id='elady1_divimg' style='position:relative'>");
document.write('<a onMouseOver="elady1_listMsg();return document.returnValue" target="_self">');
document.write('<img style="FILTER: revealTrans(duration=2,transition=20)" height=414 src="javascript:elady1_nextAd()" width=768 border=0 name=e_tprotator ></a>');
document.write("</div>");
</script>
</body></html>
解决方案 »
- 求助:(provider: SQL 网络接口, error: 26 - 定位指定的服务器/实例时出错)
- 奇怪,这个gridview点击编辑为什么没反应?
- Fckeditor做新闻发布问题
- 请问怎样在.net下生成动态树形菜单?
- 眼看邻居好朋友就要被北大青鸟骗了,我该怎么劝他才好?
- 问一个关于Repeater按钮互斥的问题
- 求助!怎样才能使TextBox中只能输入4-10位中文或英文字母或数字(asp.net(C#))
- [共享4]ASP.NET中的无刷新数据显示:xmlhttp
- datagrid的新增问题
- DataGrid的小问题
- 为什么加载桌面图片失败,但其它图片都正常
- 注册email确认如何实现
jumpUrl=e_tplink[adNum_elady1];
jumpTarget='_blank'; alert("1");
if (jumpUrl != '')
{
alert("2");
if (jumpTarget != '')
window.open(jumpUrl,jumpTarget);
else location.href=jumpUrl; } 看执行到哪一步就执行不出来了,再做调整
你这个效果不可能在火狐上运行的,整个效果都是用滤镜做的,火狐不支持
<html> <head> <title> </title> </head> <body>
<script language="javascript" type="text/javascript">
// JScript 文件
var elady_step=3; //1:small, 3:middle, 5:big
var elady_speed=50; //20:fast, 50:middle, 80:slow
var e_tp=new Array();
var e_tplink=new Array();
var adNum_elady1=0;
var elady_stop_sh=0;
var elady_star_sh=1;
function elady1_moveImg(){
if (elady_star_sh==1){
$('elady1_divimg').style.pixelTop=parseInt($('elady1_divimg').style.pixelTop)+elady_step;}
else if (elady_star_sh==2){
$('elady1_divimg').style.pixelLeft=parseInt($('elady1_divimg').style.pixelLeft)+elady_step;}
else if (elady_star_sh==3){
$('elady1_divimg').style.pixelTop=parseInt($('elady1_divimg').style.pixelTop)-elady_step;}
else{
$('elady1_divimg').style.pixelLeft=parseInt($('elady1_divimg').style.pixelLeft)-elady_step;}
if (elady_star_sh <4) elady_star_sh++;
else elady_star_sh=1;
setTimeout("elady1_moveImg()",elady_speed);} //e_tplink[0]="http://www.webkkk.com/sygj/ggdm.htm";
e_tp[0]="images/01.jpg"; //e_tplink[1]="http://www.webkkk.com/sygj/ggdm.htm";
e_tp[1]="images/02.jpg"; //e_tplink[2]="http://www.webkkk.com/sygj/ggdm.htm";
e_tp[2]="images/03.jpg"; //e_tplink[3]="http://www.webkkk.com/sygj/ggdm.htm";
e_tp[3]="images/04.jpg";
var currentimage=new Array();
for (i=0;i <=3;i++){currentimage[i]=new Image();
currentimage[i].src=e_tp[i];
}
function elady1_set(){
if (document.all)
{
e_tprotator.filters.revealTrans.Transition=Math.floor(Math.random()*23);
e_tprotator.filters.revealTrans.apply();
}
}
function elady1_playCo()
{
if (document.all)
e_tprotator.filters.revealTrans.play()
}
function elady1_nextAd(){
if(adNum_elady1 <e_tp.length-1)adNum_elady1++ ;
else adNum_elady1=0;
elady1_set();
$('e_tprotator').src=e_tp[adNum_elady1];
elady1_playCo();
theTimer=setTimeout("elady1_nextAd()", 4000);}
function elady1_linkurl(){
jumpUrl=e_tplink[adNum_elady1];
jumpTarget='_blank';
if (jumpUrl != '')
{
if (jumpTarget != '')
window.open(jumpUrl,jumpTarget);
else location.href=jumpUrl;
}
}
function elady1_listMsg()
{ status=e_tplink[adNum_elady1];
document.returnValue = true;}
document.write(" <div id='elady1_divimg' style='position:relative'>");
document.write(' <a onMouseOver="elady1_listMsg();return document.returnValue" target="_self">');
document.write(' <img style="FILTER: revealTrans(duration=2,transition=20)" height=414 src="javascript:elady1_nextAd()" width=768 border=0 id=e_tprotator > </a>');
document.write(" </div>");
function $(id) {
return document.getElementById(id);
}
</script>
</body> </html>