html滚动动广告代码生成器,用js实现的一个Flash滚动轮换显示图片代码生成器

writeTop('Flash滚动显示图片代码生成','2006-10-18');

//运行代码

function runEx(cod1)  {

cod=document.getElementById(cod1)

var code=cod.value;

if (code!=""){

var newwin=window.open('','','');

newwin.opener = null

newwin.document.write(code);

newwin.document.close();

}

}

//复制代码

function doCopy(ID) {

if (document.all){

textRange = document.getElementById(ID).createTextRange();

textRange.execCommand("Copy");

}

else{

alert("此功能只能在IE上有效")

}

}

//展开_收起段落

function close_open(theID){

if(document.getElementById(theID).style.display!='none') {

document.getElementById(theID).style.display='none';

}

else

document.getElementById(theID).style.display='block';

}

//生成代码

function genCode()

{

var html='';

var picUrl='';

var picLink='';

var picTitle='';

var picWidth=0;

var picHeight=0;

var titleHeight=0;

var backgroudn='';

{

var tempUrl='';

var tempLink='';

var tempTitle='';

for(i=0;i<9;++i){

tempUrl=document.getElementById('picUrl_'+(1+i)).value;

tempLink=document.getElementById('picLink_'+(1+i)).value;

tempTitle=document.getElementById('picTitle_'+(1+i)).value;

if(tempUrl == '')continue;

if(tempLink == '')tempLink=tempUrl;

if(tempTitle == '')tempTitle='无题';

picUrl   += tempUrl + '|';

picLink  += tempLink + '|';

picTitle += tempTitle + '|';

}

picUrl = picUrl.substring(0,picUrl.length-1);

picTitle = picTitle.substring(0,picTitle.length-1);

picLink = picLink.substring(0,picLink.length-1);

picWidth = parseInt(document.getElementById('picWidth').value);

picHeight=parseInt(document.getElementById('picHeight').value);

titleHeight = parseInt(document.getElementById('titleHeight').value);

backgroudn = document.getElementById('backgroudn').value;

}

html += '

html += ' width='  + picWidth;

html += ' height=' + (picHeight + titleHeight);

html += ' type=application/x-shockwave-flash WMODE="opaque" FLASHVARS="';

html += 'pics='+picUrl;

html += '&links='+picLink;

html += '&texts='+picTitle;

html += '&borderwidth=' + picWidth;

html += '&borderheight=' + picHeight;

html += '&textheight=' + titleHeight;

html += '" MENU="false"';

html += ' BGCOLOR="' + backgroudn;

html += '" QUALITY="high" ALLOWSCRIPTACCESS="sameDomain">

';

document.getElementById('ShowCode').value = html;

show.innerHTML = html;

}

设置

图片显示宽度:

图片显示高度:

文字区域高度:

背景色:

图片一:

链接地址:

说明:

图片二:

链接地址:

说明:

图片三:

链接地址:

说明:

图片四:

链接地址:

说明:

图片五:

链接地址:

说明:

图片六:

链接地址:

说明:

更多(推荐6张以下,否则说明将看不到)

图片七:

链接地址:

说明:

图片八:

链接地址:

说明:

图片九:

链接地址:

说明:

代码

[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]

显示效果

还没有

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值