Sie sind nicht angemeldet.

1

Sonntag, 30. Dezember 2012, 02:39

"Onclick" doesn't work [SOLVED]

I don't know why but "onclick" (line 9 of the code) doesn't work. Exactly, nothing happens.
Is there some limitation, bug...?

Any solution?

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
		<layer name="skin_btn_7181" visible="true" url="skin/zoominhotspot.png" keep="true" align="righttop" x="50" y="50" onclick="set(layer[img_bg].visible,true);" />
				
		
			<layer name="img_bg" url="plugins/textfield.swf" keep="true" type="container" background="true" backgroundcolor="0xFFFFFF" backgroundalpha="0.7" roundedge="20" align="center" width="525" height="800" x="0" y="0" zorder="10" visible="false">
				<layer name="title"	url="plugins/textfield.swf" align="top" edge="top" width="505" autoheight="true" x="0" y="10" zorder="11" enabled="false" background="false" border="false" roundedge="10" css="text-align:left; color:#444444; font-family:Arial; font-size:20px;" html="[b]TITOLO[/b]"/>
				<layer name="close_img_bg"	url="plugins/textfield.swf" align="topright" edge="topright" width="30" autoheight="true" x="10" y="10" zorder="12" enabled="true" background="true" backgroundcolor="0x000000" backgroundalpha="0.9" border="false" roundedge="10" css="text-align:center; color:#888888; font-family:Arial; font-size:20px;" html="[b]X[/b]" onclick="switch(layer[img_bg].visible); set(layer[info_data].visible,false);" />
				<layer name="image"	url="img/IMG0002.jpg" align="top" edge="top" type="container" x="0" y="50" zorder="11" enabled="false" background="false" border="false" onclick="set(layer[img_bg].visible,false);">
					<layer name="info_data"	url="plugins/textfield.swf" align="bottom" edge="bottom" type="container"  width="505" height="110" vcenter="true" x="0" y="0"  zorder="12" enabled="false" background="true" backgroundcolor="0xFFFFFF" backgroundalpha="0.7" border="true" bordercolor="0xffffff" borderalpha="1.0" css="text-align:left; color:#444444; font-family:Arial; font-size:16px;" html="data:text" visible="false">
						<layer name="close_info" url="plugins/textfield.swf" align="bottomright" edge="bottomright" width="20" autoheight="true" x="10" y="90" zorder="13" enabled="true" background="true" backgroundcolor="0x000000" backgroundalpha="0.9" border="true" roundedge="10" css="text-align:center; color:#888888; font-family:Arial; font-size:10px;" html="[b]X[/b]" onclick="set(layer[info_data].visible,false);" />
					</layer>
				</layer>	
				<layer name="info_btn" url="plugins/textfield.swf" align="bottomleft" edge="bottomleft" width="60" autoheight="true" x="10" y="10" zorder="11" enabled="true" background="true" backgroundcolor="0x000000" backgroundalpha="0.9" border="false" roundedge="10" css="text-align:left; color:#888888; font-family:Arial; font-size:20px;" html="[b]Info...[/b]" onclick="switch(layer[info_data].visible);" />
			</layer>

			
			<data name="text">
			<b>DIMENSIONI: </b><i>20x30cm</i>
			<br/>
			<br/>
			<b>ANNO:       </b><i>2010</i>
			<br/>
			<br/>
			<b>TIPO:       </b><i>Pittura</i>
			</data>
Marco

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »marco.lanciani« (30. Dezember 2012, 17:40)