Sie sind nicht angemeldet.

1

Sonntag, 25. April 2010, 04:05

Parent="plugin[*]"; and textfield

Hi !
I'll try to explain clearly my problem...

I'm using :
A main plugin/picture; located with width, x and y in percents.
A second plugin/picture is linked with a "parent" command for a "continuous" page setting (even if the window size changes)
A plugin/textfield I'll hope to link, but it seems not to be possible... The "parent command" doesn't seems to work... The x and y still are related to my window, but not to my parent plugin...

Any explanation and/or solution ?

Regards,

David

PS : it looks like the difference between plugin and hotspots in KRP previous versions...

Graydon

Profi

Beiträge: 614

Wohnort: Texas

Beruf: Industrial gas turbine services.

  • Nachricht senden

2

Sonntag, 25. April 2010, 05:57

Can you provide a snippet of the code you are using? The "parent" plugin portion and the "child" textfield plugin would be good to see.

3

Sonntag, 25. April 2010, 09:19

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
<plugin name="bande_fond" url="paris_index_vignettes/bande_fond.png" 
    		visible="true" zorder="3" handcursor="false" 
			alpha="1" blendmode="normal" smoothing="true"
			origin="center" edge="center" 
			x="14%" y="0"
			width="40%" height="prop"
			/>

<style name="bandestyle"
	 		zorder="5" parent="plugin[bande_fond]" origin="center" edge="center" width="100%" height="prop" x="0" y="0" maxpixelzoom="1.0" 
			scale="1" zoom="true" visible="false" capture="false"
    		alpha="1" blendmode="normal" keep="true" handcursor="true"
			/>

<plugin name="bande_eiffel_EU" url="paris_index_vignettes/bande_eiffel_EU.jpg" 
    		style="bandestyle" 
			/>
	
<plugin name="bande_pont_double" url="paris_index_vignettes/bande_pont_double.jpg" 
    		style="bandestyle" 
			/>
	
<plugin name="bande_BNF" url="paris_index_vignettes/bande_BNF.jpg" 
    		style="bandestyle" 
			/>


<plugin name="info_bande" url="%SWFPATH%/plugins/textfield.swf" parent="plugin[bande_fond]" zorder="6" visible="true" alpha="1"  origin="bottom" edge="top" x="0" y="-5" html="" css="p1{color:#ffffff; font-family:Time; font-size:20; margin:0; text-align:center; font-weight:bold }" enabled="false" width="" height="" background="false" textblur="1" textglow="1" textglowcolor="0x555555"/>

			<data name="info_eiffel_EU"> <p1>Tour Eiffel aux Couleurs de l'EU</p1></data>
			<data name="info_pont_double"> <p1>Pont au Double, Notre-Dame de Paris</p1></data>
			<data name="info_BNF"> <p1>BnF F.Mitterrand, passerelle S.de Beauvoir</p1></data>
			/>


For this page : http://www.parispherique.com/index_paris.html
My problem : having my photo title's under my photo, at the same distance, whatever the window size (for every screen resolution)

... it works, at last !

My error : textfiel was with edge=center, and my text was far awy from my picture... With edge=top, it's ok... Maybe is there a margin problem... ?

Thanks

Dieser Beitrag wurde bereits 3 mal editiert, zuletzt von »sagedavid« (25. April 2010, 09:42)


Graydon

Profi

Beiträge: 614

Wohnort: Texas

Beruf: Industrial gas turbine services.

  • Nachricht senden

4

Dienstag, 27. April 2010, 08:49

Glad it is working.

I'm guessing that the problem might have been that a size wasn't defined for the textfield plugin and it was making a textfield box larger than you thought. You could try turning on the textfield background in order to debug and see how much space it is trying to take up. The switch to edge=top forces it to a hard location.

Ähnliche Themen