|
|
Source code |
1 |
<include url="scroll.xml" /> |
|
|
Source code |
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 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 |
<krpano version="1.0.8"> <!-- forward button located on the bottom right scrolls images to the left --> <plugin name="button_forward" url="forward.png" keep="true" visible="true" enabled="true" handcursor="true" capture="true" children="true" zorder="51" alpha="1" blendmode="normal" smoothing="true" origin="rightbottom" edge="" x="0" y="0" width="100" height="100" scale="1" onloaded="" onhover="showtext(click me to move faster);" onover="action(start_move_forward,5);" onout="action(stop_move_forward);" ondown="action(start_move_forward,1);" onup="action(start_move_forward,5);" onclick="" /> <!-- backward button located on the bottom left scrolls images to the right --> <plugin name="button_backward" url="back.png" keep="true" visible="true" enabled="true" handcursor="true" capture="true" children="true" zorder="51" alpha="1" blendmode="normal" smoothing="true" origin="leftbottom" edge="" x="0" y="0" width="100" height="100" scale="1" onloaded="" onhover="showtext(click me to move faster);" onover="action(start_move_backward,5);" onout="action(stop_move_backward);" ondown="action(start_move_backward,1);" onup="action(start_move_backward,5);" onclick="" /> <!-- forward or scroll left moves all of the thumbs -- the passed variable controls the speed smaller is faster --> <action name="start_move_forward"> tween(plugin[thumb1].x,-420,distance(420,%1),linear); tween(plugin[thumb2].x,-420,distance(420,%1),linear); tween(plugin[thumb3].x,-420,distance(420,%1),linear); tween(plugin[thumb4].x,-420,distance(420,%1),linear); tween(plugin[thumb5].x,-420,distance(420,%1),linear); </action> <!-- the tweens here create a brief slowdown effect and could be removed --> <action name="stop_move_forward"> tween(plugin[thumb1].x,-420,distance(10,0.5),linear); tween(plugin[thumb2].x,-420,distance(10,0.5),linear); tween(plugin[thumb3].x,-420,distance(10,0.5),linear); tween(plugin[thumb4].x,-420,distance(10,0.5),linear); tween(plugin[thumb5].x,-420,distance(10,0.5),linear); wait(0.5); stoptween(plugin[thumb1].x,plugin[thumb2].x,plugin[thumb3].x,plugin[thumb4].x,plugin[thumb5].x); </action> <!-- same as the forward action just the other direction --> <action name="start_move_backward"> tween(plugin[thumb1].x,420,distance(420,%1),linear); tween(plugin[thumb2].x,420,distance(420,%1),linear); tween(plugin[thumb3].x,420,distance(420,%1),linear); tween(plugin[thumb4].x,420,distance(420,%1),linear); tween(plugin[thumb5].x,420,distance(420,%1),linear); </action> <!-- same as the forward action just another direction --> <action name="stop_move_backward"> tween(plugin[thumb1].x,420,distance(10,0.5),linear); tween(plugin[thumb2].x,420,distance(10,0.5),linear); tween(plugin[thumb3].x,420,distance(10,0.5),linear); tween(plugin[thumb4].x,420,distance(10,0.5),linear); tween(plugin[thumb5].x,420,distance(10,0.5),linear); wait(0.5); stoptween(plugin[thumb1].x,plugin[thumb2].x,plugin[thumb3].x,plugin[thumb4].x,plugin[thumb5].x); </action> <!-- this action controls what effects are applied to a thumb when the mouse moves over it -- this ensures they all do the same thing --> <action name="thumb_onover"> set(plugin[%1].oy,-5); </action> <!-- here you would reset anything you changed on the onover action above --> <action name="thumb_onout"> set(plugin[%1].oy,0); </action> <!-- the remainder is just the thumbs themselves -- note that all origins are bottom and x and y are 0 and that the ox attribute is used --> <plugin name="thumb1" url="thumb.jpg" keep="true" visible="true" enabled="true" handcursor="true" capture="true" children="true" zorder="50" alpha="1.00" blendmode="normal" smoothing="true" origin="bottom" edge="" x="0" y="0" ox="-420" oy="0" rotate="0" width="" height="" scale="1" onloaded="" onover="action(thumb_onover,thumb1);" onhover="" onout="action(thumb_onout,thumb1);" ondown="" onup="" onclick="" /> <plugin name="thumb2" url="thumb.jpg" keep="true" visible="true" enabled="true" handcursor="true" capture="true" children="true" zorder="50" alpha="1.00" blendmode="normal" smoothing="true" origin="bottom" edge="" x="0" y="0" ox="-210" oy="0" rotate="0" width="" height="" scale="1" onloaded="" onover="action(thumb_onover,thumb2);" onhover="" onout="action(thumb_onout,thumb2);" ondown="" onup="" onclick="" /> <plugin name="thumb3" url="thumb.jpg" keep="true" visible="true" enabled="true" handcursor="true" capture="true" children="true" zorder="50" alpha="1.00" blendmode="normal" smoothing="true" origin="bottom" edge="" x="0" y="0" ox="0" oy="0" rotate="0" width="" height="" scale="1" onloaded="" onover="action(thumb_onover,thumb3);" onhover="" onout="action(thumb_onout,thumb3);" ondown="" onup="" onclick="" /> <plugin name="thumb4" url="thumb.jpg" keep="true" visible="true" enabled="true" handcursor="true" capture="true" children="true" zorder="50" alpha="1.00" blendmode="normal" smoothing="true" origin="bottom" edge="" x="0" y="0" ox="210" oy="0" rotate="0" width="" height="" scale="1" onloaded="" onover="action(thumb_onover,thumb4);" onhover="" onout="action(thumb_onout,thumb4);" ondown="" onup="" onclick="" /> <plugin name="thumb5" url="thumb.jpg" keep="true" visible="true" enabled="true" handcursor="true" capture="true" children="true" zorder="50" alpha="1.00" blendmode="normal" smoothing="true" origin="bottom" edge="" x="0" y="0" ox="420" oy="0" rotate="0" width="" height="" scale="1" onloaded="" onover="action(thumb_onover,thumb5);" onhover="" onout="action(thumb_onout,thumb5);" ondown="" onup="" onclick="" /> </krpano> |

|
|
Source code |
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 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 |
<krpano version="1.0.8"> <!-- forward button located on the bottom right scrolls images to the left --> <plugin name="button_forward" url="forward.png" keep="true" visible="true" enabled="true" handcursor="true" capture="true" children="true" zorder="51" alpha="1" blendmode="normal" smoothing="true" origin="leftbottom" edge="center" x="300" y="50" rotate="45" width="100" height="100" scale="1" onloaded="" onhover="showtext(click me to move faster);" onover="action(start_move_forward,5);" onout="action(stop_move_forward);" ondown="action(start_move_forward,1);" onup="action(start_move_forward,5);" onclick="" /> <!-- backward button located on the top left scrolls images to the right --> <plugin name="button_backward" url="back.png" keep="true" visible="true" enabled="true" handcursor="true" capture="true" children="true" zorder="51" alpha="1" blendmode="normal" smoothing="true" origin="leftbottom" edge="center" x="50" y="300" rotate="45" width="100" height="100" scale="1" onloaded="" onhover="showtext(click me to move faster);" onover="action(start_move_backward,5);" onout="action(stop_move_backward);" ondown="action(start_move_backward,1);" onup="action(start_move_backward,5);" onclick="" /> <!-- forward or scroll left moves all of the thumbs -- the passed variable controls the speed smaller is faster --> <action name="start_move_forward"> tween(plugin[thumb1].x,-420,distance(420,%1),linear); tween(plugin[thumb2].x,-420,distance(420,%1),linear); tween(plugin[thumb3].x,-420,distance(420,%1),linear); tween(plugin[thumb4].x,-420,distance(420,%1),linear); tween(plugin[thumb5].x,-420,distance(420,%1),linear); tween(plugin[thumb1].y,420,distance(420,%1),linear); tween(plugin[thumb2].y,420,distance(420,%1),linear); tween(plugin[thumb3].y,420,distance(420,%1),linear); tween(plugin[thumb4].y,420,distance(420,%1),linear); tween(plugin[thumb5].y,420,distance(420,%1),linear); </action> <!-- this stops the movement - no fancy slowdown effects this time --> <action name="stop_move_forward"> stoptween(plugin[thumb1].x,plugin[thumb2].x,plugin[thumb3].x,plugin[thumb4].x,plugin[thumb5].x,plugin[thumb1].y,plugin[thumb2].y,plugin[thumb3].y,plugin[thumb4].y,plugin[thumb5].y); </action> <!-- same as the forward action just the other direction --> <action name="start_move_backward"> tween(plugin[thumb1].x,420,distance(420,%1),linear); tween(plugin[thumb2].x,420,distance(420,%1),linear); tween(plugin[thumb3].x,420,distance(420,%1),linear); tween(plugin[thumb4].x,420,distance(420,%1),linear); tween(plugin[thumb5].x,420,distance(420,%1),linear); tween(plugin[thumb1].y,-420,distance(420,%1),linear); tween(plugin[thumb2].y,-420,distance(420,%1),linear); tween(plugin[thumb3].y,-420,distance(420,%1),linear); tween(plugin[thumb4].y,-420,distance(420,%1),linear); tween(plugin[thumb5].y,-420,distance(420,%1),linear); </action> <!-- same as the forward action just another direction --> <action name="stop_move_backward"> stoptween(plugin[thumb1].x,plugin[thumb2].x,plugin[thumb3].x,plugin[thumb4].x,plugin[thumb5].x,plugin[thumb1].y,plugin[thumb2].y,plugin[thumb3].y,plugin[thumb4].y,plugin[thumb5].y); </action> <!-- this action controls what effects are applied to a thumb when the mouse moves over it -- this ensures they all do the same thing --> <action name="thumb_onover"> set(plugin[%1].oy,-205); </action> <!-- here you would reset anything you changed on the onover action above --> <action name="thumb_onout"> set(plugin[%1].oy,-200); </action> <!-- the remainder is just the thumbs themselves -- note that all origins are now leftbottom but edge is bottom -- oy is to line them up from the corner and ox is used to put them in the row --> <plugin name="thumb1" url="thumb.jpg" keep="true" visible="true" enabled="true" handcursor="true" capture="true" children="true" zorder="50" alpha="1.00" blendmode="normal" smoothing="true" origin="leftbottom" edge="bottom" x="0" y="0" ox="-420" oy="-200" rotate="45" width="" height="" scale="1" onloaded="" onover="action(thumb_onover,thumb1);" onhover="" onout="action(thumb_onout,thumb1);" ondown="" onup="" onclick="" /> <plugin name="thumb2" url="thumb.jpg" keep="true" visible="true" enabled="true" handcursor="true" capture="true" children="true" zorder="50" alpha="1.00" blendmode="normal" smoothing="true" origin="leftbottom" edge="bottom" x="0" y="0" ox="-210" oy="-200" rotate="45" width="" height="" scale="1" onloaded="" onover="action(thumb_onover,thumb2);" onhover="" onout="action(thumb_onout,thumb2);" ondown="" onup="" onclick="" /> <plugin name="thumb3" url="thumb.jpg" keep="true" visible="true" enabled="true" handcursor="true" capture="true" children="true" zorder="50" alpha="1.00" blendmode="normal" smoothing="true" origin="leftbottom" edge="bottom" x="0" y="0" ox="0" oy="-200" rotate="45" width="" height="" scale="1" onloaded="" onover="action(thumb_onover,thumb3);" onhover="" onout="action(thumb_onout,thumb3);" ondown="" onup="" onclick="" /> <plugin name="thumb4" url="thumb.jpg" keep="true" visible="true" enabled="true" handcursor="true" capture="true" children="true" zorder="50" alpha="1.00" blendmode="normal" smoothing="true" origin="leftbottom" edge="bottom" x="0" y="0" ox="210" oy="-200" rotate="45" width="" height="" scale="1" onloaded="" onover="action(thumb_onover,thumb4);" onhover="" onout="action(thumb_onout,thumb4);" ondown="" onup="" onclick="" /> <plugin name="thumb5" url="thumb.jpg" keep="true" visible="true" enabled="true" handcursor="true" capture="true" children="true" zorder="50" alpha="1.00" blendmode="normal" smoothing="true" origin="leftbottom" edge="bottom" x="0" y="0" ox="420" oy="-200" rotate="45" width="" height="" scale="1" onloaded="" onover="action(thumb_onover,thumb5);" onhover="" onout="action(thumb_onout,thumb5);" ondown="" onup="" onclick="" /> </krpano> |
That would be a practical app... just set an onclick to show a larger image...
Quoted
still Photos Gallery with Carousel
I thought about this... one one option was to overlay two+ transparent png plugins... but any clicks only get passed through to the pano and not to other plugins that are under via z-order.
Quoted
auto-scroll the thumbnails
haven't thought about this one... but maybe there's some way
Quoted
continuous / never ending

|
|
Source code |
1 2 3 |
origin="rightbottom" edge="" x="0" y="0" width="100" height="100" |
Great job Graydon, how you made thumbnails 100% visible? I can find only initialalpha but making it 1 i just got visible thumbnails on the first load. When I onhover they become transparent barely visible.I know Shanti put together a plugin that does a great job for scrolling thumbs (http://www.krpano.com/forum/wbb/index.ph…ad&threadID=232)... but I wanted to see if you could do something with xml.
With the 1.0.8b6 release and the stoptween() then it becomes easier.
I wouldn't want to do this for a large number of thumbs / panos... but it could be feasible for a smaller number. Also, when someone smarter than me comes along and creates a nice script that can auto generate the code based upon your existing files... then it might not be too bad considering the ease of customization that the xml offers... at least for people like me (i.e. non-flash programmers).
So, anyways, enough rambling...
Here's a link to a quick online sample where I pretty much just placed the scrolling thumbs over existing template...
http://testsite.marlincreek.com/demo/xmlscroll/
Below is the full xml code for JUST the scrolling thumbs portion. What you could do to test this out is to copy and paste into an xml file "scroll.xml" and then in your main xml file put
![]()
Source code
1 <include url="scroll.xml" />
Here's the code...
![]()
Source code
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 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 <krpano version="1.0.8"> <!-- forward button located on the bottom right scrolls images to the left --> <plugin name="button_forward" url="forward.png" keep="true" visible="true" enabled="true" handcursor="true" capture="true" children="true" zorder="51" alpha="1" blendmode="normal" smoothing="true" origin="rightbottom" edge="" x="0" y="0" width="100" height="100" scale="1" onloaded="" onhover="showtext(click me to move faster);" onover="action(start_move_forward,5);" onout="action(stop_move_forward);" ondown="action(start_move_forward,1);" onup="action(start_move_forward,5);" onclick="" /> <!-- backward button located on the bottom left scrolls images to the right --> <plugin name="button_backward" url="back.png" keep="true" visible="true" enabled="true" handcursor="true" capture="true" children="true" zorder="51" alpha="1" blendmode="normal" smoothing="true" origin="leftbottom" edge="" x="0" y="0" width="100" height="100" scale="1" onloaded="" onhover="showtext(click me to move faster);" onover="action(start_move_backward,5);" onout="action(stop_move_backward);" ondown="action(start_move_backward,1);" onup="action(start_move_backward,5);" onclick="" /> <!-- forward or scroll left moves all of the thumbs -- the passed variable controls the speed smaller is faster --> <action name="start_move_forward"> tween(plugin[thumb1].x,-420,distance(420,%1),linear); tween(plugin[thumb2].x,-420,distance(420,%1),linear); tween(plugin[thumb3].x,-420,distance(420,%1),linear); tween(plugin[thumb4].x,-420,distance(420,%1),linear); tween(plugin[thumb5].x,-420,distance(420,%1),linear); </action> <!-- the tweens here create a brief slowdown effect and could be removed --> <action name="stop_move_forward"> tween(plugin[thumb1].x,-420,distance(10,0.5),linear); tween(plugin[thumb2].x,-420,distance(10,0.5),linear); tween(plugin[thumb3].x,-420,distance(10,0.5),linear); tween(plugin[thumb4].x,-420,distance(10,0.5),linear); tween(plugin[thumb5].x,-420,distance(10,0.5),linear); wait(0.5); stoptween(plugin[thumb1].x,plugin[thumb2].x,plugin[thumb3].x,plugin[thumb4].x,plugin[thumb5].x); </action> <!-- same as the forward action just the other direction --> <action name="start_move_backward"> tween(plugin[thumb1].x,420,distance(420,%1),linear); tween(plugin[thumb2].x,420,distance(420,%1),linear); tween(plugin[thumb3].x,420,distance(420,%1),linear); tween(plugin[thumb4].x,420,distance(420,%1),linear); tween(plugin[thumb5].x,420,distance(420,%1),linear); </action> <!-- same as the forward action just another direction --> <action name="stop_move_backward"> tween(plugin[thumb1].x,420,distance(10,0.5),linear); tween(plugin[thumb2].x,420,distance(10,0.5),linear); tween(plugin[thumb3].x,420,distance(10,0.5),linear); tween(plugin[thumb4].x,420,distance(10,0.5),linear); tween(plugin[thumb5].x,420,distance(10,0.5),linear); wait(0.5); stoptween(plugin[thumb1].x,plugin[thumb2].x,plugin[thumb3].x,plugin[thumb4].x,plugin[thumb5].x); </action> <!-- this action controls what effects are applied to a thumb when the mouse moves over it -- this ensures they all do the same thing --> <action name="thumb_onover"> set(plugin[%1].oy,-5); </action> <!-- here you would reset anything you changed on the onover action above --> <action name="thumb_onout"> set(plugin[%1].oy,0); </action> <!-- the remainder is just the thumbs themselves -- note that all origins are bottom and x and y are 0 and that the ox attribute is used --> <plugin name="thumb1" url="thumb.jpg" keep="true" visible="true" enabled="true" handcursor="true" capture="true" children="true" zorder="50" alpha="1.00" blendmode="normal" smoothing="true" origin="bottom" edge="" x="0" y="0" ox="-420" oy="0" rotate="0" width="" height="" scale="1" onloaded="" onover="action(thumb_onover,thumb1);" onhover="" onout="action(thumb_onout,thumb1);" ondown="" onup="" onclick="" /> <plugin name="thumb2" url="thumb.jpg" keep="true" visible="true" enabled="true" handcursor="true" capture="true" children="true" zorder="50" alpha="1.00" blendmode="normal" smoothing="true" origin="bottom" edge="" x="0" y="0" ox="-210" oy="0" rotate="0" width="" height="" scale="1" onloaded="" onover="action(thumb_onover,thumb2);" onhover="" onout="action(thumb_onout,thumb2);" ondown="" onup="" onclick="" /> <plugin name="thumb3" url="thumb.jpg" keep="true" visible="true" enabled="true" handcursor="true" capture="true" children="true" zorder="50" alpha="1.00" blendmode="normal" smoothing="true" origin="bottom" edge="" x="0" y="0" ox="0" oy="0" rotate="0" width="" height="" scale="1" onloaded="" onover="action(thumb_onover,thumb3);" onhover="" onout="action(thumb_onout,thumb3);" ondown="" onup="" onclick="" /> <plugin name="thumb4" url="thumb.jpg" keep="true" visible="true" enabled="true" handcursor="true" capture="true" children="true" zorder="50" alpha="1.00" blendmode="normal" smoothing="true" origin="bottom" edge="" x="0" y="0" ox="210" oy="0" rotate="0" width="" height="" scale="1" onloaded="" onover="action(thumb_onover,thumb4);" onhover="" onout="action(thumb_onout,thumb4);" ondown="" onup="" onclick="" /> <plugin name="thumb5" url="thumb.jpg" keep="true" visible="true" enabled="true" handcursor="true" capture="true" children="true" zorder="50" alpha="1.00" blendmode="normal" smoothing="true" origin="bottom" edge="" x="0" y="0" ox="420" oy="0" rotate="0" width="" height="" scale="1" onloaded="" onover="action(thumb_onover,thumb5);" onhover="" onout="action(thumb_onout,thumb5);" ondown="" onup="" onclick="" /> </krpano>
and if you need some quick images to use... here's the three that are referenced in above.
![]()
![]()
There's some interesting possibilities opened up with the latest beta...
|
|
Source code |
1 |
alpha="0.50" blendmode="normal" |
|
|
Source code |
1 |
set(plugin[%1].alpha,1); |
|
|
Source code |
1 |
set(plugin[%1].alpha,0.5); |
Thanks for your advice Michel, I appreciate that but probably I was wrong addressing my question here. I'm using scrolling thumbnails plugin by Shanti. What I want is that my thumbnails become zero transparent - 100% visible. Can you help please? Here are my codes:Hi rzayevt,
I am not sure to understand about what you are looking for...![]()
It seems to be something around changing the alpha value for the thumbnails...
If so, let say you want the thumbnails with an alpha to 0.5 as default value and alpha to 1 when action onover thumbnails...
Change the alpha value from 1 to 0.5 for each thumbnails plugins ( code line 102, 124, 146, 168 and 190 )
![]()
Source code
1 alpha="0.50" blendmode="normal"
Add the following code after line 87:
![]()
Source code
1 set(plugin[%1].alpha,1);
Add the following code after line 92:
![]()
Source code
1 set(plugin[%1].alpha,0.5);
I hope this is what you are looking for...![]()
![]()
Salut.