爱易网
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 浏览次数:20255 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
脚本说明: 把如下代码加入<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>"
上一篇:狡猾的按钮特效
下一篇:多层下拉菜单
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
用户喊话当当网:我彻底把你们丢弃了
中电信率先推移动转售业务 中下旬批量上市
用友软件股价逆势下跌 再融资方案现曙光
新闻早8点》Facebook失手发布Snapchat类应用
创维冲击500亿梦想:转型硬件和内容供应商
揭秘:阿里巴巴“无人认领”的三成股权都归谁
公信力消失:马航事件社交媒体传播之痛
苹果App Store被大量刷榜:iTunes账号成帮凶
从WPS到office365,中国企业能否赶超美国?
推荐阅读
更多>
华为任正非:家族成员不会成为接班人
固话上网卡或将实名制 运营商泄露用户信息将被罚
京东确定IPO定价区间 最高募资16.9亿美元
代工厂生活危机:“富士康们”何去何从?
传陌陌或12月赴美IPO 估值约30亿美元
唯品会股价飙升 引天猫当当京东进军闪购
百度透露无人驾驶战略 研发三维交通地图
微软史上最大规模裁员,一半诺基亚员工
苏宁易购成世界最慢电商 专家称其涉嫌违约
阿里收购UC 五年姻缘换来移动新格局
魅族黄章惹怒芙蓉姐姐 将跨界推女神手机
史玉柱此刻离任:营销巨匠为新游戏炒作?
充斥着假消息负能量的“秘密”缺乏普适性
“论文查重”网店一月收入竟过百万
工商总局开查电商“七日退货”
P2P平台科迅网疑“跑路” 涉及金额超2700万
挂号网高管团体离任 或因投资人失掉决计
虚拟运营商温度有多高?降温OR升温内外有别
《中国三网融合业务运营管理》研讨报告征订函
纸媒深探版权蓝海抗衡互联网的时机到来了