Sie sind nicht angemeldet.

Tuur

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

1

Freitag, 14. Januar 2011, 12:57

text link a href

Hi,

i have my text as variables and that works fine but now i want the link to have a color and also an onhover color.

what i want is that the text CLICK HERE acts as an link a href style and that when clicked does an action.. and when hovered get another color..

How to do that in this special case??

some code:

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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<textstyle name="VERDANA"
	           origin="left" edge="top"   xoffset="0" yoffset="0" textalign="center"  background="true"  border="false" 
	           fontsize="12" textcolor="0x000000"  effect="" 
	         
	           />
			   
		   
			
<action name="style_var">
		set(taal_color,"#000000");
		set(taal_weight,"");
		set(taal_family,"Verdana,Arial,Helvetica");
		set(taal_size,"10");
		
		
		set(taal_color2,"#FFFFFF");
		set(taal_size2,"22");
		set(taal_family2,"Verdana,Arial,Helvetica");
		set(taal_weight2,"bold");


		set(taal_color3,"#FF0000");
		set(taal_size3,"12");
		set(taal_family3,"Myriad Pro,Arial,Helvetica");
		
		set(taal_size4,"24");

		



	</action>	
	
	
<action name="text_var">


		set(tf_taal_opties, I LOVE KRPANO <br />
		 
		<br /><br />
		<a href="hotspots();"> CLICK HERE</a> ) ; <!-- ?????????? -->
		

	</action>	




<action name="taal_opties">
	
		txtadd(data[css].content,"body { color:",get(taal_color),"; font-size:",get(taal_size3),"; link:",get(taal_a),";}");
		txtadd(data[html_opties].content,"<p>",get(tf_taal_opties),"</p>");
		set(plugin[text_opties].css,data:css);
		set(update,view);
	
	</action>	


<data name="html_opties"> 

	</data>
			


<plugin name="text_opties"
 	        url="textfieldVerdana.swf"
	        keep="true"
 	        visible="false" enabled="true" handcursor="true" capture="false" children="false"
 	        zorder="80"
 	        alpha="1" blendmode="normal"
 	        smoothing="true"
 	        origin="lefttop" edge="lefttop"
 	        x="50" y="80"
 	        width="400" height="400"
	        scale="1"
			onloaded="taal_opties();text_var();style_var();"
	        onclick=""
	        autosize="none"
	        blur="0"
	        bordercolor=""
	        borderwidth="0"
			background="false" 

	        css=""
	        glow="0"
	        glowcolor=""
	        html="data:html_opties"
	        roundedge="0"
	        selectable="false"
	        shadow=""
	        textblur=""
	        textglow=""
	        textglowcolor=""
	        textshadow="" 
			parent="STAGE"
	        />


I would be very pleased when i can solve this..

Cheers

Tuur *thumbsup*

2

Freitag, 14. Januar 2011, 14:53

<a href="event:playsound3dhs(auto,audio/bridge.mp3, bridge);"><b><i> Listen to the Bridge </i></b></a></font>
<a href="event:openurl(http://www.vistafleet.com);"><b><i> Website Link </i></b></a></font>

*g*

Tuur

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

3

Freitag, 14. Januar 2011, 16:36

stupid .. i forgot the event thing.. but found out myself..

thanx
VN

But how do i set in this place (line 50) that it is underlined en colors when hovering (link-ish)

??

Tuur *thumbsup*

Gerard

Anfänger

Beiträge: 13

Wohnort: Netherlands

Beruf: Professional Photographer

  • Nachricht senden

4

Freitag, 14. Januar 2011, 18:02

animated button in Textfield ???

Hi,
I'm trying to get an animated button (= image Scale and Alpha ) working in a Textfield. Is this possible ?
In the default.xml file it works perfectly.

Hope someone can help *question*

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
<plugin name="thumb-alfama-01"
			url="../../thumbs/thumb-Alfama.jpg"
			align="leftbottom"
			x="30"
			y="180"
			alpha="0.8"
			scale="0.8"
			zorder="2"
		onhover="showtext(Go to panorama Alfama,buttonstyle);"
			onover="tween(alpha,1.0); tween(scale,1.0));"
			onout="tween(alpha,0.8); tween(scale,0.8));"
			onclick="loadpano('../alfama/pano_01-USM.xml', null, MERGE, BLEND(2));"
			/>

Tuur

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

5

Samstag, 15. Januar 2011, 11:43

Hi,

try to put also keep="true"
you should do that for all plugins


Tuur *thumbsup*