爱易网
IT新闻
IT新闻
爱易资讯
网站搭建
云虚拟主机教程
云服务器教程
Apache教程
IIS教程
Nginx教程
网站策划
站长文章
推广教程
淘宝客教程
网页设计
HTML教程
XHTML教程
CSS教程
HTML5教程
CSS3教程
JavaSript基础
JQuery教程
Node.js教程
前端技术
Ajax教程
Js特效
Xml教程
平面设计
页面UI设计
photoshop教程
程序开发
AI人工智能
Asp教程
Php教程
Asp.Net教程
Net Core教程
C#教程
Java教程
Jsp教程
开发技术
微信小程序教程
Uniapp开发教程
微信公众号开发
Andriod教程
IOS教程
DOS教程
Python教程
Docker教程
Windows Container教程
数据库
MSSQL教程
MySQL教程
Redis教程
Access教程
Oracle教程
数据库教程
操作系统
Linux教程
Windows教程
MAC教程
Cisco教程
交换机教程
防火墙教程
搜索
爱易网页
JS特效
QQ菜单生成器
QQ菜单生成器
日期:2014-05-18 浏览次数:20270 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
脚本说明: 把如下代码加入<body>区域中 <!--版权归flashsoft2000所有,但copy不究--> <html> <head> <title>CreateCode</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <script language="javascript"> //生成代码 function createCode() { totalheight = parseInt(fcreate.bodyheight.value) + fcreate.headheight.value * (fcreate.itemcount.value - 1); textCode.value = text1.value + "var headHeight = " + fcreate.headheight.value + ";" + "var bodyHeight = " + fcreate.bodyheight.value + ";" + "var objcount = " + fcreate.itemcount.value + ";" + "var step = " + fcreate.mspeed.value + ";" + text2.value + ".headtd1 { background: #" + fcreate.headcolorn.value + "; border: 2px outset; border-color: #" + fcreate.lbordern.value + " #" + fcreate.dbordern.value + " #" + fcreate.dbordern.value + " #" + fcreate.lbordern.value + "; cursor: hand; font-size: 9pt}" + ".headtd2 { background: #" + fcreate.headcolora.value + "; border: 2px outset; border-color: #" + fcreate.lbordera.value + " #" + fcreate.dbordera.value + " #" + fcreate.dbordera.value + " #" + fcreate.lbordera.value + "; cursor: hand; font-size: 9pt}" + ".bodytd { background: #" + fcreate.bodycolor.value + "; border: 2px outset; border-color: #" + fcreate.lborderb.value + " #" + fcreate.dborderb.value + " #" + fcreate.dborderb.value + " #" + fcreate.lborderb.value + "; font-size: 9pt}" + text3.value + "<div id='mainboard' style='position:absolute; left:2px; top:2px; width:120px; height:" + totalheight + "px; z-index:1; overflow: hidden; background: #" + fcreate.bodycolor.value + ";'> "; itemtop = 0; for (i = 1; i <= parseInt(fcreate.itemcount.value); i++) { textCode.value += "<div id='item" + i + "body' style='position:absolute; left:0; top:" + itemtop + "; width:120px; height:" + fcreate.bodyheight.value + "px; z-index:" + (i+1) +"; overflow: hidden'>" + "<table width='100%' border='0' height='100%' cellpadding='2' cellspacing='0'>" + "<tr>" + "<td id='item" + i + "head' height='" + (fcreate.headheight.value-2) + "' class="; if (i == 1) textCode.value += "'headtd2'"; else textCode.value += "'headtd1'"; textCode.value += " onclick='showme(item" + i + "body,this)' align='center'>"; //textCode.value += getValue("fcreate.item" + i); textCode.value +=document.all["item"+i].value+"</td>"+ "</tr>" + "<tr>" + "<td class='bodytd' align='center'>" + "test" + "</td>" + "</tr>" + "</table>" + "</div>"; if (i == 1) itemtop += parseInt(fcreate.bodyheight.value); else itemtop += parseInt(fcreate.headheight.value); } textCode.value += "</div></body></html>" } //获取对象的值 function getValue(obj) { //obj = Object(obj); return obj.value; } //清空代码 function clearCode() { textCode.value = ""; } //预览代码 function prevCode() { createCode(); open().document.write(textCode.value); } //选择代码 function selectCode() { textCode.select(); } //根据输入的数字,自动生成子菜单的填写项 function checkItems() { if ((fcreate.itemcount.value.length > 0 && isNaN(fcreate.itemcount.value)) || fcreate.itemcount.value.length == 0) { alert("请输入数字!"); fcreate.itemcount.focus(); } else { if (fcreate.itemcount.value > 50) { alert("太夸张了吧,小一点呀,不用这么玩命吧!(50以下,含50)") fcreate.itemcount.focus(); return; } if (fcreate.itemcount.value < 1) { alert("太夸张了吧,一个不要你要做什么!(1以上,含1)") fcreate.itemcount.focus(); return; } itemtext = "<table width='700' border='0' align='center' cellpadding='1' cellspacing='1'>"; for (i = 1; i <= fcreate.itemcount.value; i++) { itemtext += "<tr>"+ "<td class='td2' width='76'>菜单项目"+i+"</td>"
上一篇:狡猾的按钮特效
下一篇:多层下拉菜单
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
云智慧:用大数据实现企业应用性能管理
京东终于想明白,这些年错过的财运,都藏在女人的时装下
Docker Desktop 4.11 发布:支持虚拟桌面、Mac 权限更改和新扩展
总部大楼已换微软Logo:回忆诺基亚的兴衰史
苏宁双线同价遇难题:第一个吃螃蟹不轻松
微软史上最大规模裁员,一半诺基亚员工
迅雷欲3300万美元收购金山快盘 预计9月完成
虚拟运营商前路迷茫 业界建议发力车联网
PC迎9年来出货量新低 平板电脑渐成主流
推荐阅读
更多>
全球五大电信设备商业绩:华为净利居首
全球网络遭史上最大规模攻击:攻击数据每秒300G
苹果CEO抱歉解读:是战略而非“屈服”
同样的背景,罗永浩和雷军到底有什么不同?
微软为避免代理权争夺 与大股东达成和解协议
墨迹天气:产品创新以攻为守方能对抗巨头
靠价格战赚取资费套餐利润差,虚拟运营商必死无疑
曝阿里巴巴一怀孕员工过劳死 加班情况引争议
小米年度发布会遭围剿!多款新品难阻品牌危机
搜狐与奇虎360或结盟对抗BAT
人们为什么总愿尝试新社交网络?
OPPO创始人陈明永:我们是怎么做营销的
奇虎360证明了“惟平台化才能生存”是谬论,中国互联网不能少了周鸿祎
空气污染器市场乱象丛生 选购需慎重
2018年阿里云双11活动如何参加?1折优惠大攻略
用友软件股价逆势下跌 再融资方案现曙光
阿里入股虎嗅:媒体的脊梁弯了?未必!
IT时代周刊总编辑曹健:投资人刘志硕印象记
解析2014年阿里百度等五大互联网巨头深度布局
诺基亚因充电器问题暂停销售Lumia 2520平板电脑