ggalan
01-05-2011, 08:50 PM
i seem to be having problems passing in dynamic variables into jquery like this
function scrnSlide(){
var screen_width = document.body.offsetWidth;
var screen_height = document.body.offsetHeight;
$("#swipeMask").css({width:screen_width, height:screen_height});
};
any ideas how to make this work?
thanks
function scrnSlide(){
var screen_width = document.body.offsetWidth;
var screen_height = document.body.offsetHeight;
$("#swipeMask").css({width:screen_width, height:screen_height});
};
any ideas how to make this work?
thanks