Guest Posted December 17, 2005 Share Posted December 17, 2005 Is there a way that when a person browses to my site i can detect what view settings he has. Then adjust mysite according to there view setup. Link to comment Share on other sites More sharing options...
tina_boots Posted December 17, 2005 Share Posted December 17, 2005 Is there a way that when a person browses to my site i can detect what view settings he has. Then adjust mysite according to there view setup. A year or two ago I was working on a project, completely unrelated to osC, where it would have been very nice to be able to harvest that information. However we were not able to find a solution. You have access to the type of browser and os, but as far as I know you don't have access to a visitors screen resolution. If there is a way to accomplish this, it would be wonderful and I would love to hear it. Be well, Tina If you're not having fun you're not doing it right Teach a person to fish rather than give them a loaf of bread or however that saying goes. Link to comment Share on other sites More sharing options...
Guest Posted December 17, 2005 Share Posted December 17, 2005 A year or two ago I was working on a project, completely unrelated to osC, where it would have been very nice to be able to harvest that information. However we were not able to find a solution. You have access to the type of browser and os, but as far as I know you don't have access to a visitors screen resolution. If there is a way to accomplish this, it would be wonderful and I would love to hear it. Be well, Tina I think i am going to investigate this a bit further Tina. Thanks for the info Donny I will keep you posted Link to comment Share on other sites More sharing options...
♥Vger Posted December 17, 2005 Share Posted December 17, 2005 You would be making life very difficult for yourself. Your site would have to be written with variable fonts and variable (percentage) widths for everything, and even then (if you can detect their screen resolution) you are left with the problem that even with variable fonts the user can still override that with their font settings in their browser. The solution that people go for is to base your site on a width which is fixed to display the site full size in a browser using 800x600 screen resolution (still the most popular resolution in use), with the site also centred so that on browsers with larger screen resolutions the site size remains the same and is centred but has space around it to the left and right - which can then be set with a border and contrasting background colour. If you decide to go this way then look for the "Fixed Width Site With CSS" link below my signature. Vger Link to comment Share on other sites More sharing options...
TENCENTS Posted December 20, 2005 Share Posted December 20, 2005 You would be making life very difficult for yourself. Your site would have to be written with variable fonts and variable (percentage) widths for everything, and even then (if you can detect their screen resolution) you are left with the problem that even with variable fonts the user can still override that with their font settings in their browser. The solution that people go for is to base your site on a width which is fixed to display the site full size in a browser using 800x600 screen resolution (still the most popular resolution in use), with the site also centred so that on browsers with larger screen resolutions the site size remains the same and is centred but has space around it to the left and right - which can then be set with a border and contrasting background colour. If you decide to go this way then look for the "Fixed Width Site With CSS" link below my signature. Vger Thanks !!! - this worked perfectly :D Never underestimate the power of stupid people, especially in groups. Link to comment Share on other sites More sharing options...
dzettl Posted September 3, 2006 Share Posted September 3, 2006 Big Thanks to you! :thumbsup: You saved my day and night with this feature. In my opinion this is one of the most valuable addings. Think about integrating it in the whole oscommerce system. Greetings! Link to comment Share on other sites More sharing options...
jasonabc Posted September 3, 2006 Share Posted September 3, 2006 You have access to the type of browser and os, but as far as I know you don't have access to a visitors screen resolution. Not true - you can get the user's screen resolution with some simple java script: <script language="JavaScript"> if ((screen.width>=1024) && (screen.height>=768)) { window.location="highres.html"; } else { window.location="lowres.html"; } //--> </script> Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.