Forum Moderators: coopster
I appreciate that the detection with have to be done with JavaScript (with which I have very little experience), but I'm trying to figure the best way for the JavaScript to pass the information to a PHP which will obviously write the <link href... CSS line.
Can anyone help please.
Also, at the same time, I would ideally like to do a cookie test and establish whether cookies are disabled on the user's machine. Again, my question is how to pass that information to PHP scripts?
Thanks in anticipation.
Thanks - I've found JavaScript that writes the link, so that side is fine, thanks.
I now have another 'problem'.
Our default layout (including JavaScript disabled) assumes that the user has a screen resolution greater than 800x600.
Within the page, a PHP script is called to populate the promotional sidebars (include ("...../sidebars.php").
If the user's screen width is determined to be 800 or less (screen.width <= 800) I want to set a variable allowing me to initiate a different version of sidbars.php (e.g. sidebar.php?LR=X ) that would populate the sidebars in a different (less dense) way.
Any thoughts anybody? Also, how do I force the page refresh that will obviously be necessary if we find that the screen is low resolution?