2011-04-27, 11:06 PM
Basically I want to add this block of code my friend wrote (or a slight variation of it):
to get my forum to change the background depending on a user's res (I find CSS scaling of the background results in slow performance).
Erm.. where should I add this code?
Thank you very much cool MyBB dudes and dudettes! ^_^
Mike!
switch(screen.availWidth) {
case 800:
css="/css/body_800.css";
break;
case 1024:
css="/css/body_1024.css";
break;
default:
css="/css/other.css";
break;
}
document.write("<link rel='stylesheet' type='text/css' href='" + css + "' />");
to get my forum to change the background depending on a user's res (I find CSS scaling of the background results in slow performance).
Erm.. where should I add this code?
Thank you very much cool MyBB dudes and dudettes! ^_^
Mike!