View Full Version : adobes navigation effect....
blah-de-blah
April 9th, 2003, 06:23 AM
hello,
i'm trying to recreate the navigation thing in adobe photoshop. If you dont' know what i'm talking about, its at the top right corner under a tab called navigation, and if there is a larger image then the page can display, theres a red box in the navigation thing. When you drag this to the bottom corner, the real big image goes the the bottom corner.
i hope you understand what i mean.
My idea to do this is to make a box which can be dragged over the small image. And whatever is displayed in this box, is duplicated. But i dont' know how you can duplicate the image displayed in the box.
you get what i mean!? I'm not really askng for a whole code, because i want to figure it out myself, but this is probably the hardest part of the thing which i can't figure out :-/ thx :)
pom
April 9th, 2003, 07:55 AM
The content of the smll box is not really duplicated. In fact, you have one small picture and one big picture that is masked. And then you get the offset of your box on the small picture and move the big picture accordingly.
pom :rd:
Iammontoya
April 9th, 2003, 07:56 AM
where is this navigation you're referring to? (include a link, please)
pom
April 9th, 2003, 07:57 AM
It's in Adobe Photoshop :P
blah-de-blah
April 9th, 2003, 08:32 AM
yea i thoguth of that but i wasn't sure how you would do it, because if the small box moved down, the big picture would need to move up and stuff and it'd be confusin....what do you mean by offset though?
mlk
April 9th, 2003, 03:41 PM
Here's a little something i fixed up, ill try to explain the code if needs be and if i have time
bside it still needs revision
it's all a story of proportions and position anyway
<embed src=http://mlkdesign.free.fr/misc/kirupa/zoombox.swf height=300 width=400 type=application/x-shockwave-flash>
heres the fla (soorry for the size, it the bmp image thats in it)
http://mlkdesign.online.fr/misc/kirupa/zoombox.fla
blah-de-blah
April 9th, 2003, 10:29 PM
wow this is good, but from what i can see, is it only 3 lines which make this work?! i'm not too sure about
_root.image._x = -draghandle._x*10+9
why multiply 10 then add 9? and does it mean 'minus' the drag handle? oh yea and last part, why draghandle? i thought the instance of this box was called 'drag'? thhhx a lot :)
blah-de-blah
April 9th, 2003, 10:30 PM
oh no nvm i just checked bout the draghandle thing. my mistake :) but i'm still not sure about the otehr stuff :/
mlk
April 10th, 2003, 01:24 PM
sorry i'll post some explanation later on...
basically when you move the drag-handle (red) right, it drags the big picture left, thats why there's a minus.... I multiplied by 10 because the large image is ten times bigger then the thumb, and added 9 because the viewing windows position is x=9 and y=9 so if my drag-handle is on the top lefthand corner (ie in its relative coordinates it is x=0 and y=0), the the image will be at
x = 9 + 0*10 = 9
y = 9 + 0*10 = 9
That means you'll be able to see the top lefthand corner of the large image
Be sure to check the registration points too...
I now ill post some more help....
blah-de-blah
April 10th, 2003, 11:05 PM
ah i perfectly get it now, thx. I'll havta try it out though on my own and i'll be back if i got anymore questions :)
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.