手机版 | 登陆 | 注册 | 留言 | 设首页 | 加收藏
当前位置: 网站首页 > 网页制作 > 动画特效 > 文章 当前位置: 动画特效 > 文章

位置固定-不带关闭按扭-FLASH图片-自适应窗口的对联广告

时间:2006-01-06    点击: 次    来源:本站原创    作者:佚名 - 小 + 大

此对联广告效果是位置固定,自适应窗口,不带关闭按扭,可在FLASH图片中制作关闭按扭。把下面的内容存一个JS文件,然后在你要显示的页面中调用:<script language="javascript1.2" type="text/javscript" scr="JS文件路径及文件名"></script>

 

var rightbar;
var coupletcode;
rightbar = window.screen.width-150+24;

coupletcode = "<DIV id=leftbar style='LEFT: 5px; POSITION: absolute; TOP: 110px; VISIBILITY: hidden;' width=100>32</div><DIV id=rightbar style='LEFT: " + rightbar + "px; POSITION: absolute; TOP: 110px; VISIBILITY: hidden' width=100>32</div>";

if (window.screen.width>=1024)
{
document.write(coupletcode);
}

function InsertCouplet()
{
if (window.screen.width>=1024){
document.all.leftbar.style.visibility = "visible";
document.all.rightbar.style.visibility = "visible";
document.all.leftbar.innerHTML = "<OBJECT classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0 WIDTH=100 HEIGHT=250 id=leftB ALIGN=> <PARAM NAME=movie VALUE=http://www.jxjcc.com/images/foudong.swf> <PARAM NAME=quality VALUE=high><PARAM NAME=wmode> <EMBED id=leftBG src=images/foudong.swf quality=high  WIDTH=100 HEIGHT=250 NAME=left ALIGN= TYPE=application/x-shockwave-flash PLUGINSPAGE=http://www.macromedia.com/go/getflashplayer></EMBED></OBJECT>";
document.all.rightbar.innerHTML = "<OBJECT classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0 WIDTH=100 HEIGHT=250 id=rightB ALIGN=> <PARAM NAME=movie VALUE=http://www.jxjcc.com/images/foudong2.swf> <PARAM NAME=quality VALUE=high> <PARAM NAME=wmode><EMBED id=rightBG src=images/foudong2.swf quality=high WIDTH=100 HEIGHT=250 NAME=right ALIGN= TYPE=application/x-shockwave-flash PLUGINSPAGE=http://www.macromedia.com/go/getflashplayer></EMBED></OBJECT>";

}
}
InsertCouplet();
function leftBG_DoFSCommand(command,args){
  if ((command == "163")&&(args =="hidebar")){
   document.all.leftbar.style.visibility = "hidden";
   document.all.rightbar.style.visibility = "hidden";
  }
}
function rightBG_DoFSCommand(command,args){
  leftBG_DoFSCommand(command,args);
}
<!--
if (document.all){
  document.write("<Script language=\"javascript\" For=\"rightB\" Event=\"FSCommand(command,args)\">\n");
  document.write(" leftBG_DoFSCommand(command,args);\n");
  document.write("</Script>\n");
  document.write("<Script language=\"javascript\" For=\"leftB\" Event=\"FSCommand(command,args)\">\n");
  document.write(" rightBG_DoFSCommand(command,args);\n");
  document.write("</Script>\n");
}
//-->

上一篇:制作对联广告---之左侧[允许关闭-自适应页面]

下一篇:带关闭功能-可漂浮-以html形式添加广告内容的对联广告代码

推荐阅读
QQ:530051328  |  地址:广西玉林市博白县人民中路026号  |  电话:18177533568  |   桂ICP备07004785-8号  |  桂公网安备45092302000001号  |  
Copyright © 2018 天人文章管理系统 版权所有,授权www.537600.cn使用 Powered by 55TR.COM