Sie sind nicht angemeldet.

1

Dienstag, 14. Juni 2011, 20:40

Found problem with New js

Hi Klaus,

I have found a problem with the new js. I've included two images. The one with the white lines outlining on the left side of the box of the box is using the most recent js dated 05/20/2011. The image with the box and no white line is dated 02/23/2011. Is this easily fixed?

Thanks Robert.
»rbudnikas« hat folgende Bilder angehängt:
  • photo_withwhiteline.jpg
  • photo_nowhiteline.jpg

2

Dienstag, 14. Juni 2011, 22:43

Hi,

does this happen in a textfield?
if yes - what settings have you used there?

best regards,
Klaus

3

Mittwoch, 15. Juni 2011, 00:53

Sorry Klaus,

Should have included that info. Yes in the textfield. Here is the code I used to create the box.

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
<plugin name="tp_bg_01" devices="tablet" enabled="true" zorder="10000" url="%SWFPATH%plugins/textfield.swf" keep="false"
		html="[div style='width:100%;height:100%;
            	background-color: #000000;
            	border: 1px solid #000000; 
            	-moz-border-radius: 5px;
            	-webkit-border-radius: 5px;
            	border-radius: 5px;
            	padding: 7px 3px 2px 7px;
            	font:bold 14px sans-serif;']
            	[/div]"

    	align="center" alpha=".5" roundedge="5" shadow="2" width="425" height="310" x="0" y="0" visible="true"
		ondown=""
 	/>
 	
 	<plugin name="close_button"
	    	url="images/close.png"
	    	devices="tablet"
	    	visible="true"
	    	zorder="10001"
	    	align="center" x="226" y="-153"
	    	keep="false"
	    	onloaded=""
	    	onclick="action(close,tp_bg_01);action(close,intro_image);tween(plugin[close_button].alpha,0,.3,default);set(plugin[close_button].visible,false);"
		/>
		
	<plugin name="intro_image"
	    	url="images/nj_intro_image.png"
	    	devices="tablet"
	    	visible="true"
	    	zorder="10001"
	    	align="center" x="5" y="5"
	    	keep="false"
	    	onloaded=""
	    	onclick=""
		/>

4

Freitag, 17. Juni 2011, 04:47

Any ideas on this Klaus?

Thanks

Robert

5

Donnerstag, 23. Juni 2011, 19:04

Anyone else have any ideas on this. It's very difficult to decipher code when you don't know where to put what to make it work. Kind of defeats the purpose of introducing newer code if it breaks something else.

I would really like to finish this project.

Thanks,

Robert

Zephyr

Profi

Beiträge: 1 003

Wohnort: Netherlands

Beruf: Web developer

  • Nachricht senden

6

Donnerstag, 23. Juni 2011, 19:23

try removing attributes. like the shadow and border-radius and roundedge. I think the error is somewhere in there. Or perhaps its the 100% width/height.

Its a bit weird, your css defines style where the textfield does too. Alsoo you have webkit en moz, while mozilla doesnt even run the JS version. I think you can remove the border-radius, the width/height, the background and the border from the css, and just put it as attributes in textfield (backgroundcolor, background, border, etc)

7

Donnerstag, 23. Juni 2011, 22:25

Thanks for the ideas. I removed all the border references but it turns out the padding was the issue. Even though I removed the border references now the border goes completely around and is white. Strange but I can live with it for now. If there are any other ideas would like to hear them.

Thanks,

Robert

Zephyr

Profi

Beiträge: 1 003

Wohnort: Netherlands

Beruf: Web developer

  • Nachricht senden

8

Donnerstag, 23. Juni 2011, 23:09

the textfield has default borderwidth of 1. set it to 0.

bordercolor
color of the border, default="0x000000"
borderwidth
linewidth of the border, default="1"

9

Freitag, 24. Juni 2011, 16:29

Great, I'll fix it. Thanks again.

Ähnliche Themen