stm31.js使用详解(网页魔法菜单)-阿里云开发者社区

开发者社区> 冰点沐雪> 正文

stm31.js使用详解(网页魔法菜单)

简介: 网页魔法菜单,其应与stm31.js文件相匹配,才能正确显示效果。 stm31.js是下拉菜单调用的函数处理文件。 以下对与stm31.js所对应的\js\classmenu中的js文件给予分析: 参数总说: 凡是函数名后无x的,参数为2个,即(a,[ ] )    ,[ ]为样式总表。
+关注继续查看

网页魔法菜单,其应与stm31.js文件相匹配,才能正确显示效果。

stm31.js是下拉菜单调用的函数处理文件。

以下对与stm31.js所对应的\js\classmenu中的js文件给予分析:

参数总说:

凡是函数名后无x的,参数为2个,即(a,[ ] )    ,[ ]为样式总表。a、[ ]为必须参数。

函数名后有x的,参数?个,即(a,b,[ ] )    ,[ ]为样式总表。a、b、[ ]为必须参数。

参数说明:a为函数在ai(或aix)的name,相当于一个对象的名字,如vb中的对象名name,目的是方便aix函数引用它的样式,

b为该函数引用样式的name,如该函数有独立样式,则覆盖b的样式。

stm_bm([''uueoehr'',400,'''',''/images/blank.gif'',0,'''','''',0,0,0,0,0,1,0,0]);''菜单效果总设置。


stm_ai,stm_aix,

[] 前的参数见参数总说。
''[]内的说明 文字样式
''显示的内容 0 文本 1 html 2 图片
''文字内容
''鼠标移出时的图片地址 显示内容为2时有效
''鼠标悬停时的图片地址 显示内容为2时有效
''图片的宽 显示内容为2时有效
''图片的高 显示内容为2时有效
''图片的边框 显示内容为2时有效
''连接地址
''连接方式 用html代码
''鼠标悬停时状态栏显示的内容 空值为显示连接地址
''鼠标悬停时探出的提示内容 ""
''鼠标悬停时前面图标的文件路径 ""
''鼠标移出时前面图标的文件路径 ""
''前面图标的宽
''前面图标的高
''前面图标的边框
''鼠标悬停时后面图标的文件路径 ""
''鼠标移出时后面图标的文件路径 ""
''后面图标的宽
''后面图标的高
''后面图标的边框
''边框的样式 1-6 实线 双线 点线 虚线 菱形凹槽 菱形凸起
''边框的厚度
''鼠标移出的背景色 颜色
''鼠标移出的文字颜色
''鼠标放置的背景色 颜色
''鼠标放置的文字颜色
''鼠标移出的背景文件路径
''鼠标悬停的背景文件路径
''鼠标移出的文字字体以及样式
''鼠标悬停的文字字体以及样式
''鼠标移出的文字修饰方式 下划线 加粗 上划线 等等
''鼠标悬停的文字修饰方式 同上

stm_bp,stm_bpx,

[] 前的参数见参数总说。
''方括号内的说明
''下级菜单的排列方式 1 竖排 0 横排

''其他与stm_ai的设置相同


stm_ep();闭合函数,与stm_bp,stm_bpx一一对应。

stm_em(); 相对应stm_bm的闭合函数,总闭合函数,应该在代码的最后

 

实例:

stm_bm(["menu4588",430,"","/newmenu/img/blank.gif",0,"","",0,0,250,0,1000,1,0,0,"","",0],this);
stm_bp("p0",[0,4,0,0,0,0,0,0,100,"",-2,"",-2,50,0,0,"#fffff7","transparent","",3,0,0,"#000000"]);
stm_ai("p0i0",[2,"","/newmenu/img/001.gif","/newmenu/img/001-.gif",97,36,0,"/","_self","","","","",0,0,0,"","",0,0,0,0,1,"#fffff7",1,"#b5bed6",1,"","",3,3,0,0,"#fffff7","#000000","#000000","#000000","9pt 宋体","9pt 宋体",0,0]);
stm_aix("p0i1","p0i0",[2,"","/newmenu/img/002.gif","/newmenu/img/002-.gif",97,36,0,"/News/","_self","","","","",0,0,0,"","/newmenu/img/arrow_r.gif"]);
stm_bpx("p1","p0",[0,4,0,0,0,0,0,0,100,"progid:DXImageTransform.Microsoft.Wipe(GradientSize=1.0,wipeStyle=1,motion=forward,enabled=0,Duration=0.40)",5,"progid:DXImageTransform.Microsoft.Wipe(GradientSize=1.0,wipeStyle=1,motion=reverse,enabled=0,Duration=0.40)",4,70,0,0,"#666666"]);
stm_aix("p1i0","p0i0",[2,"","/newmenu/img/2-1.gif","/newmenu/img/2-1-.gif",97,22,0,"/News/News.asp?ClassID=2"]);
stm_aix("p1i1","p0i0",[2,"","/newmenu/img/2-4.gif","/newmenu/img/2-4-.gif",97,22,0,"/News/News.asp?ClassID=mp3"]);
stm_aix("p1i2","p0i0",[2,"","/newmenu/img/2-5.gif","/newmenu/img/2-5-.gif",97,22,0,"/News/News.asp?ClassID=gps"]);
stm_aix("p1i3","p0i0",[2,"","/newmenu/img/2-3.gif","/newmenu/img/2-3-.gif",97,22,0,"/News/News.asp?ClassID=4"]);
stm_ep();
stm_aix("p0i2","p0i1",[2,"","/newmenu/img/003.gif","/newmenu/img/003-.gif",97,36,0,"/Product/"]);
stm_bpx("p2","p0",[0,4,0,0,0,0,0,0,100,"progid:DXImageTransform.Microsoft.Wipe(GradientSize=1.0,wipeStyle=1,motion=forward,enabled=0,Duration=0.40)",5,"progid:DXImageTransform.Microsoft.Wipe(GradientSize=1.0,wipeStyle=1,motion=reverse,enabled=0,Duration=0.40)",4,70]);
stm_aix("p2i0","p0i0",[2,"","/newmenu/img/3-1.gif","/newmenu/img/3-1-.gif",97,22,0,"/Product/MP3.asp"]);
stm_aix("p2i1","p0i0",[2,"","/newmenu/img/3-2.gif","/newmenu/img/3-2-.gif",97,22,0,"/Product/MP4.asp"]);
stm_aix("p2i2","p0i0",[2,"","/newmenu/img/3-6.gif","/newmenu/img/3-6-.gif",97,22,0,"/Product/GPS.asp"]);
stm_aix("p2i3","p0i0",[2,"","/newmenu/img/3-3.gif","/newmenu/img/3-3-.gif",97,22,0,"/Product/ProductDownload.asp"]);
stm_aix("p2i4","p0i0",[2,"","/newmenu/img/3-4.gif","/newmenu/img/3-4-.gif",97,22,0,"/bbs/index.asp?boardid=56"]);
stm_aix("p2i5","p0i0",[2,"","/newmenu/img/3-5.gif","/newmenu/img/3-5-.gif",97,22,0,"/Product/Service.asp"]);
stm_ep();
stm_aix("p0i3","p0i1",[2,"","/newmenu/img/004.gif","/newmenu/img/004-.gif",97,36,0,"/Down/"]);
stm_bpx("p3","p2",[]);
stm_aix("p3i0","p0i0",[2,"","/newmenu/img/4-1.gif","/newmenu/img/4-1-.gif",97,22,0,"/Down/"]);
stm_aix("p3i1","p0i0",[2,"","/newmenu/img/4-2.gif","/newmenu/img/4-2-.gif",97,22,0,"/Down/Movie.asp"]);
stm_aix("p3i2","p0i0",[2,"","/newmenu/img/4-3.gif","/newmenu/img/4-3-.gif",97,22,0,"/Down/music.asp"]);
stm_aix("p3i3","p0i0",[2,"","/newmenu/img/4-4.gif","/newmenu/img/4-4-.gif",97,22,0,"/Down/Screen.asp"]);
stm_aix("p3i4","p0i0",[2,"","/newmenu/img/4-5.gif","/newmenu/img/4-5-.gif",97,22,0,"/Down/magazine.asp"]);
stm_aix("p3i5","p0i0",[2,"","/newmenu/img/4-6.gif","/newmenu/img/4-6-.gif",97,22,0,"/Down/ad.asp"]);
stm_ep();
stm_aix("p0i4","p0i0",[2,"","/newmenu/img/005.gif","/newmenu/img/005-.gif",97,36,0,"/bbs/"]);
stm_aix("p0i5","p0i1",[2,"","/newmenu/img/006.gif","/newmenu/img/006-.gif",97,36,0,"/VIP/"]);
stm_bpx("p4","p2",[]);
stm_aix("p4i0","p0i0",[2,"","/newmenu/img/6-1.gif","/newmenu/img/6-1-.gif",97,22,0,"/Vip/Register.asp"]);
stm_aix("p4i1","p4i0",[2,"","/newmenu/img/6-2.gif","/newmenu/img/6-2-.gif",97,22,0,"/Vip/Product.asp"]);
stm_aix("p4i2","p0i0",[2,"","/newmenu/img/6-3.gif","/newmenu/img/6-3-.gif",97,22,0,"/Vip/jfGuiZe.asp"]);
stm_aix("p4i3","p0i0",[2,"","/newmenu/img/6-4.gif","/newmenu/img/6-4-.gif",97,22,0,"/Vip/jfshop.asp"]);
stm_aix("p4i4","p0i0",[2,"","/newmenu/img/6-5.gif","/newmenu/img/6-5-.gif",97,22,0,"/Activities/"]);
stm_ep();
stm_aix("p0i6","p4i4",[2,"","/newmenu/img/007.gif","/newmenu/img/007-.gif",97,36]);
stm_aix("p0i7","p0i0",[2,"","/newmenu/img/008.gif","/newmenu/img/008-.gif",97,36,0,"/Fans/"]);
stm_aix("p0i8","p0i0",[2,"","/newmenu/img/009.gif","/newmenu/img/009-.gif",97,36,0,"/draw/"]);
stm_ep();
stm_em();

文章出处:DIY部落(http://www.diybl.com/course/1_web/javascript/jsjs/2008324/106510_2.html)

版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。

相关文章
阿里云服务器ECS远程登录用户名密码查询方法
阿里云服务器ECS远程连接登录输入用户名和密码,阿里云没有默认密码,如果购买时没设置需要先重置实例密码,Windows用户名是administrator,Linux账号是root,阿小云来详细说下阿里云服务器远程登录连接用户名和密码查询方法
2903 0
阿里云服务器安全组设置内网互通的方法
虽然0.0.0.0/0使用非常方便,但是发现很多同学使用它来做内网互通,这是有安全风险的,实例有可能会在经典网络被内网IP访问到。下面介绍一下四种安全的内网互联设置方法。 购买前请先:领取阿里云幸运券,有很多优惠,可到下文中领取。
9438 0
阿里云服务器如何登录?阿里云服务器的三种登录方法
购买阿里云ECS云服务器后如何登录?场景不同,阿里云优惠总结大概有三种登录方式: 登录到ECS云服务器控制台 在ECS云服务器控制台用户可以更改密码、更换系.
5731 0
windows server 2008阿里云ECS服务器安全设置
最近我们Sinesafe安全公司在为客户使用阿里云ecs服务器做安全的过程中,发现服务器基础安全性都没有做。为了为站长们提供更加有效的安全基础解决方案,我们Sinesafe将对阿里云服务器win2008 系统进行基础安全部署实战过程! 比较重要的几部分 1.
5473 0
阿里云服务器远程登录用户名和密码的查询方法
阿里云服务器远程连接登录用户名和密码在哪查看?阿里云服务器默认密码是什么?云服务器系统不同默认用户名不同
476 0
阿里云ECS云服务器初始化设置教程方法
阿里云ECS云服务器初始化是指将云服务器系统恢复到最初状态的过程,阿里云的服务器初始化是通过更换系统盘来实现的,是免费的,阿里云百科网分享服务器初始化教程: 服务器初始化教程方法 本文的服务器初始化是指将ECS云服务器系统恢复到最初状态,服务器中的数据也会被清空,所以初始化之前一定要先备份好。
3265 0
+关注
冰点沐雪
专业从事软件开发(asp.net)近10年。
434
文章
0
问答
文章排行榜
最热
最新
相关电子书
更多
文娱运维技术
立即下载
《SaaS模式云原生数据仓库应用场景实践》
立即下载
《看见新力量:二》电子书
立即下载