注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

清风的博客

我为人人,人人为我。

 
 
 

日志

 
 

网页幻灯显示图片  

2013-05-28 10:39:34|  分类: 【HTML语言】 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

 <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>FLASH幻灯显示图片导航的广告代码</title>
</head>
<body>
<script language=JavaScript>
<!-- // BannerAD
var bannerAD=new Array();
var bannerADlink=new Array();
var adNum=0;
//修改下面的图片地址和相应的链接地址
bannerAD[0]="http://img2.ph.126.net/aSf1rYX47l1KFgIDZNeNuA==/1318147315953010852.jpg";
bannerADlink[0]="#";
bannerAD[1]="http://img5.ph.126.net/S3WVvozG_Aw-9oEPEAulvg==/2744943972899324285.jpg";
bannerADlink[1]="#";
bannerAD[2]="http://img6.ph.126.net/BobmWnclh_W9KLQjeLTegA==/2494712718603550636.jpg";
bannerADlink[2]="#";
bannerAD[3]="http://img8.ph.126.net/-67N_kLQg_Leplj4T7A_1Q==/1089026684910657598.jpg";
bannerADlink[3]="#";
bannerAD[4]="http://img6.ph.126.net/Kw3JN6nVG_r1WiFrbUj3Hg==/2708070750950351936.jpg";
bannerADlink[4]="#";
bannerAD[5]="http://img0.ph.126.net/XJpKqEGAFX9Fq22pnilA4w==/2864570838001475070.jpg";
bannerADlink[5]="#";
var preloadedimages=new Array();
for (i=1;i<bannerAD.length;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()", 5000);
}
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>
<A onmouseover="displayStatusMsg();return document.returnValue"
href="http://shop60246878.taobao.com/" ><IMG
style="FILTER: revealTrans(duration=2,transition=20)" height=150
src="http://www.mjbox.com/r/u8/u8b/taobao/images/album10.jpg" width=150 border=1
name=bannerADrotator>
</A>
<SCRIPT language=JavaScript>nextAd()</SCRIPT>
</body>
</html>

 图片轮换渐变有链接的广告代码  


 <html xmlns="http://www.w3.org/1999/xhtml">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="Copyright" content="凯诗-非凡主角靓域名 http://illl.taobao.com/" />
<meta content="图片轮换渐变有链接的广告代码" name="凯诗-非凡主角靓域名" />
<title>图片轮换渐变有链接的广告代码</title>
<style type="text/css">
body{text-align:center;}
</style>
</head>
<body>
<SCRIPT>
 var NowFrame = 1;
 var MaxFrame = 4;
 var bStart = 0;
 function fnToggle() {
 var next = NowFrame + 1;
 if(next == MaxFrame+1)
 {
 NowFrame = MaxFrame;
 next = 1;
 }
 if(bStart == 0)
 {
 bStart = 1;
    
 setTimeout('fnToggle()', 1000);
 return;
 }
 else
 {
 oTransContainer.filters[0].Apply();
 document.images['oDIV'+next].style.display = "";
 document.images['oDIV'+NowFrame].style.display = "none";
 oTransContainer.filters[0].Play(duration=4);
 if(NowFrame == MaxFrame)
 NowFrame = 1;
 else
 NowFrame++;
 } setTimeout('fnToggle()', 6000);
 }
 fnToggle();
</SCRIPT>
<!--图片轮换渐变开始-->
<DIV id=oTransContainer style="FILTER: progid:DXImageTransform.Microsoft.Wipe(GradientSize=1.0, wipeStyle=0, motion='forward'); WIDTH: 243px; HEIGHT: 235px">
<A href="http://item.taobao.com/auction/item_detail-0db2-88e8bebb6710f7d7488e07fa5c17af7b.htm" target=_blank><IMG id=oDIV1 style="BORDER-RIGHT: black 0px solid; BORDER-TOP: black 0px solid; DISPLAY: yes;  BORDER-LEFT: black 0px solid; BORDER-BOTTOM: black 0px solid" height=300 src="http://img01.taobaocdn.com/imgextra/i1/354656697/T2q1daXdBdXXXXXXXX_!!354656697.png" width=300 border=0></A>
<A href="http://item.taobao.com/auction/item_detail-0db2-e1058a57418e97ddca6a84c76aae187f.htm" target=_blank><IMG id=oDIV2 style="BORDER-RIGHT: black 0px solid; BORDER-TOP: black 0px solid; DISPLAY: none; BORDER-LEFT: black 0px solid; BORDER-BOTTOM: black 0px solid" height=300 src="http://img03.taobaocdn.com/imgextra/i3/354656697/T2detaXoNaXXXXXXXX_!!354656697.png" width=300 border=0></A>
<A href="http://item.taobao.com/auction/item_detail-0db2-8fe7f05ae23f32ca75e553d67f9970a9.htm" target=_blank><IMG id=oDIV3 style="BORDER-RIGHT: black 0px solid; BORDER-TOP: black 0px solid; DISPLAY: none; BORDER-LEFT: black 0px solid; BORDER-BOTTOM: black 0px solid" height=300 src="http://img02.taobaocdn.com/imgextra/i2/354656697/T21upaXcRbXXXXXXXX_!!354656697.png" width=300 border=0></A>
<A href="http://item.taobao.com/auction/item_detail-0db2-7a968d5214709704618ef0890b666df4.htm" target=_blank><IMG id=oDIV4 style="BORDER-RIGHT: black 0px solid; BORDER-TOP: black 0px solid; DISPLAY: none; BORDER-LEFT: black 0px solid; BORDER-BOTTOM: black 0px solid" height=300 src="http://img02.taobaocdn.com/imgextra/i2/354656697/T2OKdaXahdXXXXXXXX_!!354656697.png" width=300 border=0></A>
</DIV>
<div style="display:none"> <script  language='JavaScript' charset='gb2312'></script></div>
</body>
</html>
 页面图片随意漂浮的代码  

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>页面图片随意漂浮代码</title>
</head>
<body>
<DIV id=img1 style="Z-INDEX: 100; LEFT: 2px; WIDTH: 59px; POSITION: absolute; TOP: 43px; HEIGHT: 61px;
 visibility: visible;"><a href="http://shop60246878.taobao.com/" target="_blank"><img src="http://img01.taobaocdn.com/imgextra/i1/354656697/T2GelaXbhcXXXXXXXX_!!354656697.png" width="120" height="120" border="0"></a></DIV>
<SCRIPT>var xPos = 300;
var yPos = 200;
var step = 1;
var delay = 30;
var height = 0;
var Hoffset = 0;
var Woffset = 0;
var yon = 0;
var xon = 0;
var pause = true;
var interval;
img1.style.top = yPos;
function changePos()
{
 width = document.body.clientWidth;
 height = document.body.clientHeight;
 Hoffset = img1.offsetHeight;
 Woffset = img1.offsetWidth;
 img1.style.left = xPos + document.body.scrollLeft;
 img1.style.top = yPos + document.body.scrollTop;
 if (yon)
  {yPos = yPos + step;}
 else
  {yPos = yPos - step;}
 if (yPos < 0)
  {yon = 1;yPos = 0;}
 if (yPos >= (height - Hoffset))
  {yon = 0;yPos = (height - Hoffset);}
 if (xon)
  {xPos = xPos + step;}
 else
  {xPos = xPos - step;}
 if (xPos < 0)
  {xon = 1;xPos = 0;}
 if (xPos >= (width - Woffset))
  {xon = 0;xPos = (width - Woffset);   }
 }
 
 function start()
  {
   img1.visibility = "visible";
  interval = setInterval('changePos()', delay);
 }
 function pause_resume()
 {
  if(pause)
  {
   clearInterval(interval);
   pause = false;}
  else
  {
   interval = setInterval('changePos()',delay);
   pause = true;
   }
  }
 start();</SCRIPT>
</body>
</html>

  评论这张
 
阅读(37)| 评论(1)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017