飘浮广告显示脚本类(VBS,JS双版)[2]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 applebbs 的 blog

 private sub printflashhtml(byval imgsrc,byval adhref,byval adtitle)
     if imagewidth=0 or not isnumeric(imagewidth) then
     imagewidth=80
  end if
  imagewidth=" width='"&imagewidth&"'"
     if imageheight=0 or not isnumeric(imageheight) then
     imageheight=80
  end if
  imageheight=" height='"&imageheight&"'"
  document.write "<div id=""img"&divid&""" style=""position:absolute;"">"
  document.write "<a href="""&adhref&""" target=""_blank"" title='"&adtitle&"'>"
  document.write "<object  codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0'"&imagewidth&imageheight&" align='middle'>"
  document.write "<param name='movie' value='"&imgsrc&"'>"
  document.write "<param name='quality' value='high'>"
  document.write "<embed src='"&imgsrc&"'"&imagewidth&imageheight&" quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer&#39; type='application/x-shockwave-flash'></embed></object>"
  document.write "</a></div>"
    end sub
end class

[js脚本]

以下是代码片段:
file://*****************漂浮广告显示类****************************************************
file://* 作者:死在水中的鱼
file://* 脚本语言:javascript
file://* 用法: 
file://* var adver=new adverclass
file://* adver.setobjname("adver"); file://这句不能settime所以没有用
file://* adver.setdivid(1);   file://这句可以不用
file://* adver.setimagetype(1);     file://设为0时或不写这句时则是普通图片,1则为flash动画文件
file://* adver.setimagepx(299,87);  file://设置图片的宽度与高度
file://* adver.showadver("http://edu.qq.com/flash/moto-button.swf","http://www.chinese.bj.cn/' target="_blank" >http://edu.qq.com/flash/moto-button.swf","http://www.chinese.bj.cn/","这是什么");
file://* var adver1=new adverclass();
file://* adver1.showadver("img.gif","http://www.chinese.bj.cn/","这是什么");
file://* settimer();
file://* file://因为类里不能写settime所以只好拿出来写-_-##(vbs脚本竟然可以。我倒)

本文关键:飘浮广告显示脚本类(VBS,JS双版)
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top