摘要:本文主要向大家介绍了PHP语言之下拉透明菜单一部分,通过具体的内容向大家展示,希望对大家学习php语言有所帮助。
本文主要向大家介绍了,通过具体的内容向大家展示,希望对大家学习php语言有所帮助。
<br />
var mmenus = new Array();<br />
var misShow = new Boolean(); <br />
misShow=false;<br />
var misdown = new Boolean();<br />
misdown=false;<br />
var mnumberofsub=0;<br />
var musestatus=false;<br />
var mpopTimer = 0;<br />
mmenucolor='#89CB10';mfontcolor='MenuText';mmenuoutcolor='#ADEF34';mmenuincolor='#B5E74E';mmenuoutbordercolor='#ECFA3A';mmenuinbordercolor='#5A2614';mmidoutcolor='#A9DA1D';mmidincolor='#799310';mmenuovercolor='#004080';mitemedge='0';msubedge='1';mmenuunitwidth=66;mmenuitemwidth=140;mmenuheight=25;mmenuwidth='100%';mmenuadjust=0;mmenuadjustV=0;mfonts='font-family: 宋体; font-size: 9pt; color: MenuText; ';mcursor='hand';<br />
var swipeSteps = 4;<br />
var swipemsec = 25;<br />
var swipeArray = new Array();<br />
function swipe(el, dir, steps, msec) {<br />
if (steps == null) steps = swipeSteps;<br />
if (msec == null) msec = swipemsec;<br />
if (el.swipeIndex == null)<br />
el.swipeIndex = swipeArray.length;<br />
if (el.swipeTimer != null)<br />
window.clearTimeout(el.swipeTimer);<br />
swipeArray[el.swipeIndex] = el;<br />
el.style.clip = "rect(-99999, 99999, 99999, -99999)";<br />
if (el.swipeCounter == null || el.swipeCounter == 0) {<br />
el.orgLeft = el.offsetLeft;<br />
el.orgTop = el.offsetTop;<br />
el.orgWidth = el.offsetWidth;<br />
el.orgHeight = el.offsetHeight;<br />
}<br />
el.swipeCounter = steps;<br />
el.style.clip = "rect(0,0,0,0)";<br />
window.setTimeout("repeat(" + dir + "," + el.swipeIndex + "," + steps + "," + msec + ")", msec);<br />
}<br />
function repeat(dir, index, steps, msec) {<br />
el = swipeArray[index];<br />
var left = el.orgLeft;<br />
var top = el.orgTop;<br />
var width = el.orgWidth;<br />
var height = el.orgHeight;<br />
if (el.swipeCounter == 0) {<br />
el.style.clip = "rect(-99999, 99999, 99999, -99999)";<br />
return;<br />
}<br />
else {<br />
el.swipeCounter--;<br />
el.style.visibility = "visible";<br />
switch (dir) {<br />
case 2:<br />
el.style.clip = "rect(" + height*el.swipeCounter/steps + "," + width + "," + height + "," + 0 + ")";<br />
el.style.top = top - height*el.swipeCounter/steps;<br />
break;<br />
case 8:<br />
el.style.clip = "rect(" + 0 + "," + width + "," + height*(steps-el.swipeCounter)/steps + "," + 0 + ")";<br />
el.style.top = top + height*el.swipeCounter/steps;<br />
break;<br />
case 6:<br />
el.style.clip = "rect(" + 0 + "," + width + "," + height + "," + width*(el.swipeCounter)/steps + ")";<br />
el.style.left = left - width*el.swipeCounter/steps;<br />
break;<br />
case 4:<br />
el.style.clip = "rect(" + 0 + "," + width*(swipeSteps - el.swipeCounter)/steps + "," + height + "," + 0 + ")";<br />
el.style.left = left + width*el.swipeCounter/steps;<br />
break;<br />
}<br />
<br />
el.swipeTimer = window.setTimeout("repeat(" + dir + "," + index + "," + steps + "," + msec + ")", msec);<br />
}<br />
}<br />
var mtmpleft="";<br />
var mtmptop="";<br />
function hideSwipe(el) {<br />
window.clearTimeout(el.swipeTimer);<br />
el.style.visibility = "hidden";<br />
el.style.clip = "rect(-99999, 99999, 99999, -99999)";<br />
el.swipeCounter = 0;<br />
if(mtmpleft!="")el.style.left = mtmpleft;<br />
if(mtmptop!="")el.style.top = mtmptop;<br />
}</p>
<p>function stoperror(){<br />
return true;<br />
}<br />
window.onerror=stoperror;<br />
function mpopOut() {<br />
mpopTimer = setTimeout('mallhide()', 500);<br />
}<br />
function getReal(el, type, value) {<br />
temp = el;<br />
while ((temp != null) && (temp.tagName != "BODY")) {<br />
if (eval("temp." + type) == value) {<br />
el = temp;<br />
return el;<br />
}<br />
temp = temp.parentElement;<br />
}<br />
return el;<br />
}</p>
<p><br />
function mMenuRegister(menu) <br />
{<br />
mmenus[mmenus.length] = menu<br />
return (mmenus.length - 1)<br />
}</p>
<p>function mMenuItem(caption,command,target,isline,statustxt,level,img,sizex,sizey,pos){<br />
this.items = new Array();<br />
this.caption=caption;<br />
this.command=command;<br />
this.target=target;<br />
this.isline=isline;<br />
this.statustxt=statustxt;<br />
if(level!=null){mnumberofsub++;<br />
this.hasc=mnumberofsub;}<br />
this.level=level;<br />
this.img=img;<br />
this.sizex=sizex;<br />
this.sizey=sizey;<br />
this.pos=pos;<br />
} </div>
<div class="article_ab" style="width: 720px;height: 100px;margin: 0 auto;margin-top: 15px;">
</div>
<div class="article_cmnt">
<div class="cmnt_title">吐了个 "CAO" !</div>
<form action="" method="post">
<div class="cmnt_text">
<textarea class="ping-txt" onfocus="ck_txt(this);" onblur="ck_txt2(this);" id="ping-txt" name="ping-txt" >吐个槽吧,看都看了</textarea>
</div>
<div class="cmnt_cmt">
<div class="cmnt_login_box">
<a href="https://www.php1.cn/?s=user/login/index&from=https%3A%2F%2Fwww.php1.cn%2Fdetail%2Fphp-d529bdb749.html">会员登录</a> | <a href="//www.php1.cn/?s=user/reg/index">用户注册</a>
</div>
<div class="post_cmnt"><input type="button" value="吐 槽" onclick="post_ping();" /></div>
</div>
</form>
</div>
</div>
<script type="text/javascript" src="https://www.php1.cn/SyntaxHighlighter/scripts/shCore.js">
本文由职坐标整理并发布,希望对同学们有所帮助。了解更多详情请关注职坐标编程语言PHP频道!
您输入的评论内容中包含违禁敏感词
我知道了
请输入正确的手机号码
请输入正确的验证码
您今天的短信下发次数太多了,明天再试试吧!
我们会在第一时间安排职业规划师联系您!
您也可以联系我们的职业规划师咨询:
版权所有 职坐标-一站式IT培训就业服务领导者 沪ICP备13042190号-4
上海海同信息科技有限公司 Copyright ©2015 www.zhizuobiao.com,All Rights Reserved.
沪公网安备 31011502005948号