I have the following code
function bgchange(edit)
{
var bgurl;
switch(edit)
{
case edit="categories":
bgurl = 'url(img/categories_bg.jpg)';
break;
case edit="ishot":
bgurl = 'url(img/appslist_bg.jpg)';
break;
default:
bgurl ='';
}
return bgurl;
};
bg = bgchange(edit, id);
$('#wrapper').css("background", "black "+ bg + "no-repeat right");
Now, whenever you click a page, a bg should change, that works when I run it from the desktop, however when I run it from my iPhone, it's not working, is it because iPhone has a problem doing so, and if so - can I use a different command to change the bg?
Help is appreciated, Thanks