游客:
注册
|
登录
|
会员
|
搜索
|
统计
|
帮助
无忧脚本
»
JavaScript & VBScript & DHTML 脚本技术讨论版
» Flash滚动轮换显示图片代码生成器
‹‹ 上一主题
|
下一主题 ››
投票
交易
悬赏
活动
打印
|
推荐
|
订阅
|
收藏
标题:
[推荐]
Flash滚动轮换显示图片代码生成器
一叶飘红
小恐龙
UID 16844
精华 0
积分 478
帖子 275
威望 274
阅读权限 30
注册 2004-9-10
来自 Xi'an,Shaanxi,China
状态 离线
#1
大
中
小
使用道具
发表于 2007-2-8 14:17
资料
个人空间
主页
短消息
加为好友
Flash滚动轮换显示图片代码生成器
<!--文件头模板--> <SCRIPT src=top.js></SCRIPT> <SCRIPT language=javascript> writeTop('Flash滚动显示图片代码生成','2006-10-18'); </SCRIPT> <!--以下为内容--> <SCRIPT> //运行代码 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'; } </SCRIPT> <SCRIPT language=javascript> //生成代码 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 += '<EMBED pluginspage=http://www.macromedia.com/go/getflashplayer src=http://staryxy.googlepages.com/PicPlay.swf'; 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"></EMBED>'; document.getElementById('ShowCode').value = html; show.innerHTML = html; } </SCRIPT> <div style="margin-top:5px;background:#9abcde"> <div style='cursor:hand' onclick=close_open('edit')><li>设置</li></div> <div id='edit' style="margin-left:15px; display:block;"> <div style="background:#cdcdcd"> 图片显示宽度:<input size=10 id=picWidth title="图片显示宽度" value="300"></input> 图片显示高度:<input size=10 id=picHeight title="图片显示高度" value="200"></input> 文字区域高度:<input size=10 id=titleheight title="文字区域高度" value="20"></input> 背景色:<input size=10 id=backgroudn title="背景色" value='#cdcdcd'></input> </div> <div style="background:#eeeeee"> 图片一: <input maxlength=2048 size=25 id=picUrl_1 value="http://staryxy.googlepages.com/diner1.jpg" title="图片URL地址"></input> 链接地址:<input maxlength=2048 size=25 id=picLink_1 value="" title="链接地址"></input> 说明:<input maxlength=2048 size=20 id=picTitle_1 value="「夜宴」搞恶图片1" title="说明"></input> </div> <div style="background:#cdcdcd"> 图片二: <input maxlength=2048 size=25 id=picUrl_2 value="http://staryxy.googlepages.com/diner2.jpg" title="图片URL地址"></input> 链接地址:<input maxlength=2048 size=25 id=picLink_2 value="" title="链接地址"></input> 说明:<input maxlength=2048 size=20 id=picTitle_2 value="「夜宴」搞恶图片2" title="说明"></input> </div> <div style="background:#eeeeee"> 图片三: <input maxlength=2048 size=25 id=picUrl_3 value="http://staryxy.googlepages.com/diner4.jpg" title="图片URL地址"></input> 链接地址:<input maxlength=2048 size=25 id=picLink_3 value="" title="链接地址"></input> 说明:<input maxlength=2048 size=20 id=picTitle_3 value="「夜宴」搞恶图片3" title="说明"></input> </div> <div style="background:#cdcdcd"> 图片四: <input maxlength=2048 size=25 id=picUrl_4 value="http://staryxy.googlepages.com/diner7.jpg" title="图片URL地址"></input> 链接地址:<input maxlength=2048 size=25 id=picLink_4 value="" title="链接地址"></input> 说明:<input maxlength=2048 size=20 id=picTitle_4 value="「夜宴」搞恶图片4" title="说明"></input> </div> <div style="background:#eeeeee"> 图片五: <input maxlength=2048 size=25 id=picUrl_5 value="http://staryxy.googlepages.com/diner8.jpg" title="图片URL地址"></input> 链接地址:<input maxlength=2048 size=25 id=picLink_5 value="" title="链接地址"></input> 说明:<input maxlength=2048 size=20 id=picTitle_5 value="「夜宴」搞恶图片5" title="说明"></input> </div> <div style="background:#cdcdcd"> 图片六: <input maxlength=2048 size=25 id=picUrl_6 value="http://staryxy.googlepages.com/diner12.jpg" title="图片URL地址"></input> 链接地址:<input maxlength=2048 size=25 id=picLink_6 value="" title="链接地址"></input> 说明:<input maxlength=2048 size=20 id=picTitle_6 value="「夜宴」搞恶图片6" title="说明"></input> </div> <div style='cursor:hand' onclick=close_open('editmore')><li>更多(推荐6张以下,否则说明将看不到)</li></div> <div id='editmore' style='display:none;'> <div style="background:#eeeeee"> 图片七: <input maxlength=2048 size=25 id=picUrl_7 value="" title="图片URL地址"></input> 链接地址:<input maxlength=2048 size=25 id=picLink_7 value="" title="链接地址"></input> 说明:<input maxlength=2048 size=20 id=picTitle_7 value="" title="说明"></input> </div> <div style="background:#cdcdcd"> 图片八: <input maxlength=2048 size=25 id=picUrl_8 value="" title="图片URL地址"></input> 链接地址:<input maxlength=2048 size=25 id=picLink_8 value="" title="链接地址"></input> 说明:<input maxlength=2048 size=20 id=picTitle_8 value="" title="说明"></input> </div> <div style="background:#eeeeee"> 图片九: <input maxlength=2048 size=25 id=picUrl_9 value="" title="图片URL地址"></input> 链接地址:<input maxlength=2048 size=25 id=picLink_9 value="" title="链接地址"></input> 说明:<input maxlength=2048 size=20 id=picTitle_9 value="" title="说明"></input> </div> </div> </div> <div> <input type=button onclick='javascript:genCode();' value=生成代码> </input> </div> </div> <div style="margin-top:5px;background:#9abcde"> <div onclick=close_open('code') style='cursor:hand'><li>代码</li></div> <div id='code' style='margin-left:15px;display:none;'> <TEXTAREA rows="15" id="ShowCode" style="width:100%"> <!--此处显示结果代码--> </TEXTAREA> </div> <div> <INPUT onclick="runEx('ShowCode')" type="button" value="运行此代码"/> <INPUT onclick="doCopy('ShowCode')" type="button" value="复制此代码"/> [Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行] </div> </div> <div style="margin-top:5px;background:#9abcde;"> <div onclick=close_open('show') style='cursor:hand'><li>显示效果</li></div> <div id='show' title="显示效果" align=center style="margin-left:15px;display:none;background:#abcdef"> 还没有 </div> </div> </div>
提示:您可以先修改部分代码再运行
同样是人,有善有恶;同样说爱,有真有假……
angorarabbit
小恐龙
UID 64564
精华 0
积分 360
帖子 181
威望 182
阅读权限 30
注册 2007-1-22
状态 离线
#2
大
中
小
使用道具
发表于 2007-2-9 10:16
资料
个人空间
短消息
加为好友
妈 的 , Script Error! 害我浏览器死掉了。。。
This guy is lazy, nothing left......
txxb
爬虫
UID 11430
精华 0
积分 127
帖子 38
威望 59
阅读权限 20
注册 2004-5-13
状态 离线
#3
大
中
小
使用道具
发表于 2007-3-14 01:04
资料
个人空间
短消息
加为好友
QUOTE:
原帖由 [i]angorarabbit[/i] 于 2007-2-9 10:16 发表
妈 的 , Script Error! 害我浏览器死掉了。。。
咖啡刀
(飞翔的番茄)
霸王龙
UID 63180
精华 0
积分 1045
帖子 360
威望 330
阅读权限 70
注册 2006-12-27
状态 离线
#4
大
中
小
使用道具
发表于 2007-3-14 08:31
资料
个人空间
短消息
加为好友
不错!!!
这个错误让我的机器也死了一会!!
不过呢???可能是由于这此死的缘故,从而让我的机器有了心理准备啦!!!
效果不错!!
收下啦
***********^v^*************
!人懒啥也没留下!
***********^v^*************
ayin
大恐龙
UID 6175
精华 0
积分 799
帖子 435
威望 417
阅读权限 50
注册 2003-10-22
来自 湖南衡阳
状态 离线
#5
大
中
小
使用道具
发表于 2007-3-14 09:03
资料
个人空间
主页
短消息
加为好友
很棒,收下了。(刚刚俺的浏览器又死了)
网色V1.5发布了,欢迎下载使用!
http://www.ayinsky.com
投票
交易
悬赏
活动
最近访问的论坛 ...
Flex & Flash 技术讨论版
Html & XHtml & CSS 网页制作讨论版
ASP & Access & SQL Server 后台编程讨论版
无忧脚本
无忧脚本技术讨论区
> 原创文章 & 讨论汇总版
> Html & XHtml & CSS 网页制作讨论版
> JavaScript & VBScript & DHTML 脚本技术讨论版
> XML & XSL & XPath & VML 网页技术讨论版
> ASP & Access & SQL Server 后台编程讨论版
> PHP & MySQL 后台编程讨论版
> JSP & Java & J2SE 后台编程讨论版
> .Net 相关技术讨论版
> Web 服务器技术
> Flex & Flash 技术讨论版
> Web UI & 图形技术讨论版
无忧脚本资源服务区
> 经典代码、教程资源库
> 参考手册、常用软件资源库
> 无忧合租服务器讨论版
无忧脚本休闲区
> 休闲留言板
> 招聘求职、网站推荐、广告信息版
> 无忧站务管理版
> 垃圾帖回收站
控制面板首页
编辑个人资料
积分交易
公众用户组
好友列表
升级个人空间
基本概况
流量统计
客户软件
发帖量记录
论坛排行
主题排行
发帖排行
积分排行
在线时间
管理团队
当前时区 GMT+8, 现在时间是 2010-7-31 04:39
苏ICP备05080427号
Powered by
Discuz!
5.5.0
© 2001-2007
51JS.COM
Processed in 0.371266 second(s), 8 queries , Gzip enabled
TOP
清除 Cookies
-
联系我们
-
无忧脚本
-
Archiver