复制代码 代码如下:
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 全部选择 提示:你可先修改部分代码,再按运行]
显示效果还没有
本文原创发布php中文网,转载请注明出处,感谢您的尊重!