概述
实现代码:
<!-- 区位优势子菜单 -->
<layer
name="quWeiYouShiChild"
type="container"
x="26.5%"
y="11%"
width="20%"
height="0%"
y.mobile="12%"
x.mobile="12%"
width.mobile="46%"
visible="true"
bgalpha="1"
align="leftbottom"
bgroundedge="8"
scalechildren="true"
scale="0.9"
scale.mobile="1.2"
bgcolor="0xFFFFFF">
<!-- 路网 -->
<layer name="luwang"
zorder="99"
enabled="true"
url="%SWFPATH%/plugins/textfield.swf"
html="[font]路网[/font]" css="color:#cccccc; font-weight:bold; font-family:微软雅黑; font-size:18px; text-align:center; height:18px; padding-top:17%; line-height:18px; "
css.mobile="color:#cccccc; font-weight:bold; font-family:微软雅黑; font-size:13px; text-align:center; height:18px; padding-top:16%;
line-height:18px; "
scale="0.4" width="64%" width.mobile="64%" height="200%" alpha="1"
distorted="true"
align="left"
x="0%"
x.mobile="0%"
loader_alternative=""
scaleflying="true"
tx="0"
ty="0"
tz="0"
bgroundedge="8"
/>
<!-- 教育 -->
<layer name="jiaoyu"
zorder="99"
enabled="true"
url="%SWFPATH%/plugins/textfield.swf"
html="[font]教育[/font]" css="color:#cccccc; font-weight:bold; font-family:微软雅黑; font-size:18px; text-align:center; height:18px; padding-top:17%; line-height:18px; "
css.mobile="color:#cccccc; font-weight:bold; font-family:微软雅黑; font-size:13px; text-align:center; height:18px;
padding-top:16%;
line-height:18px; "
scale="0.4" width="64%" width.mobile="64%"
height="200%" alpha="1"
distorted="true"
align="left"
x="25%"
x.mobile="25%"
loader_alternative=""
scaleflying="true"
tx="0"
ty="0"
tz="0"
bgroundedge="8"
/>
<!-- 商业 -->
<layer name="shangye"
zorder="99"
enabled="true"
url="%SWFPATH%/plugins/textfield.swf"
html="[font]商业[/font]" css="color:#cccccc; font-weight:bold; font-family:微软雅黑; font-size:18px; text-align:center; height:18px;padding-top:17%; line-height:18px; "
css.mobile="color:#cccccc; font-weight:bold; font-family:微软雅黑; font-size:13px; text-align:center; height:18px;
padding-top:16%;
line-height:18px; "
scale="0.4" width="64%" width.mobile="64%"
height="200%" alpha="1"
distorted="true"
align="left"
x="50%"
x.mobile="50%"
loader_alternative=""
scaleflying="true"
tx="0"
ty="0"
tz="0"
bgroundedge="8"
/>
"休闲"
<layer name="xiuxian"
zorder="99"
enabled="true"
url="%SWFPATH%/plugins/textfield.swf"
html="[font]休闲[/font]" css="color:#cccccc; font-weight:bold; font-family:微软雅黑; font-size:18px; text-align:center; height:18px; padding-top:16%;line-height:18px; "
css.mobile="color:#cccccc; font-weight:bold; font-family:微软雅黑; font-size:13px; text-align:center; height:18px;
padding-top:16%;
line-height:18px; "
scale="0.4" width="62%" width.mobile="64%"
height="200%" alpha="1"
distorted="true"
align="left"
x="75%"
x.mobile="75%"
loader_alternative=""
scaleflying="true"
tx="0"
ty="0"
tz="0"
bgroundedge="8"
/>
</layer>
<!-- 区位优势 -->
<!-- 打开导航子菜单 -->
<action name="quweiyoushiOpen">
tween(layer[quWeiYouShiChild].height,7%);
set(layer[skin_btn_funtion2].onclick,quweiyoushiClose());
</action>
<!-- 关闭导航子菜单 -->
<action name="quweiyoushiClose">
tween(layer[quWeiYouShiChild].height,0);
set(layer[skin_btn_funtion2].onclick,quweiyoushiOpen());
</action>
在某个layer上 加上 οnclick="quweiyoushiOpen()"
最后
以上就是眼睛大冥王星为你收集整理的Krpano_实现收缩导航子菜单的全部内容,希望文章能够帮你解决Krpano_实现收缩导航子菜单所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复