style标签:与html的style样式类似,将标签内共性的属性提取出来复用。
领主提醒:style内定义的属性需要与调用标签对应包含的属性一致,否则不会生效,如果调用的标签内已存在和style内相同的属性,那么将只执行style内属性。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
<style name="..." ... any plugin or hotspot or self defined attributes ... 插入 plugin 或 hotspot 或 自定义属性 /> <style name="skin_glow" ondown="copy(skin_lockglow,name); skin_buttonglow(get(name)); if(ondown2, ondown2() );" onover="if(skin_lockglow === null, copy(skin_lockglow,name); skin_buttonglow(get(name),0.3) ); " onout="if(skin_lockglow === name, ifnot(pressed, skin_buttonglow(null);delete(skin_lockglow); ));" onup="if(hovering, skin_buttonglow(get(name),0.3), skin_buttonglow(null);delete(skin_lockglow); ); if(onup2, onup2() );" /> 调用: <hotspot name="xxx" style="skin_glow"/>... |