The $x1, $y1, etc. variables also comes from the JS page.. Where the user can move and re-size a div, proportionally to (900, 250) etc. And that's where the pictures left and top should start out from.. and that works.. kinda..
The $i variable is just some stupid variable I made for the JS page... it tells how big the picture's width is towards 900px, in percent.. ($i = 900 / picWidth)
I would really appreciate any help I could get on this! :)
10-16-2008, 03:08 AM
hey again.. I hope I will get an answer very soon.. because I'm in a bit of a hurry with this project.. dead-line tomorrow.. and I can't really continue before I've solved this problem..
Would be forever thankful to an answer!
10-17-2008, 10:15 AM
What EXACTLY do you need to know? How to calculate proportions (like height gets adjusted proportional to width)? Or is it a question on how to calculate percentages?