I'm trying to modify a javascript template to display pictures in a rolling display. However, the template sets all the variables in pixels which means when changing resolutions, the object changes position. I'm no pro, so try and explain things clearly if that is okay :)

The actual position is set with "pagePositionLEFT" and "PagePositionTOP". How do I set these values to percentages?

This is the code that the javascript currently refers to:

// Image Viewer Dimensions settings (pixels):
var PagePositionLEFT = 830; // Set position of Image viewer from LEFT of page
var PagePositionTOP = 220; // Set position of Image viewer from TOP of page