Instead of complicating it by adding the "px" (and inadvisably mixing datatypes), just leave it as a bare number. The JQuery docs state that
Quote:
Property values are treated as a number of pixels unless otherwise specified.
So just remove this line:
temp="'"+temp+"px'";