File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 14
14
variable ImageCount
15
15
variable N
16
16
variable M
17
+ variable Width
17
18
variable ECPayload
18
19
variable Payload
19
20
callback DecoratorCallback
27
28
Start:
28
29
clear Container
29
30
31
+ put `50px` into Width
30
32
put 9 into ImageCount
31
33
set the elements of Thumb to ImageCount
32
34
set the elements of Image to ImageCount
33
35
create Buttons in Container
34
36
set the style of Buttons to `text-align:center; padding:10px;border:1px solid lightgray`
35
37
create Link in Buttons
36
38
create Left in Link
37
- set style `width` of Left to `60px`
39
+ set style `width` of Left to Width
38
40
set attribute `src` of Left to `resources/icon/left.png`
39
41
on click Left go to DoLeft
40
42
put 0 into N
43
45
index Thumb to N
44
46
create Link in Buttons
45
47
create Thumb in Link
46
- set style `width` of Thumb to `60px`
48
+ set style `width` of Thumb to Width
47
49
set style `border` of Thumb to `1px solid white`
48
50
if N is not 0 set style `margin-left` of Thumb to `10px`
49
51
set attribute `src` of Thumb to `resources/img/imageswitcher/thumbs/img` cat N cat `.jpg`
52
54
on click Thumb go to DoThumb
53
55
create Link in Buttons
54
56
create Right in Link
55
- set style `width` of Right to `60px`
57
+ set style `width` of Right to Width
56
58
set attribute `src` of Right to `resources/icon/right.png`
57
59
on click Right go to DoRight
58
60
put 0 into N
You can’t perform that action at this time.
0 commit comments