![]() |
High Res / Style Optmizer
This was written as a custom mod for Artorg.co.uk. It is meant to be used
in cases where a style may be rendering in-correctly at a certain resolution. With this code the option of a new highres style defined by you. For example you may have an expanding version of the style (liquuid) aswell as a style thats fixed width. Maybe you feel the fixed width style looks to small on large resolutions and want your users to be able to quickly set there style to the expanding version (liquid). Well this code does just that by checking the users resolution, if its greater than 1024x768 then the high res style is set else its the low res one. Users to your site can quickly click the link and the style will change, this works for guests, logged in users, admins , anyone. Demo : www.artorg.co.uk |
Colicab-d, cool idea. :cool:
Any thoughts on modifying it so that it'll recognize what the current style is and then setting the new style based upon it? To clarify, if I have two completly different skins installed and each of them have a fixed & liquid option then there'd be four skins all together (eq: 1, 2, 3, 4). If the current style is "1" and if the resolution is X then use style "2" else if the current style is "3" and resolution is X then use style "4". For boards that only use one style this script will be pretty nice as is. I'm one of those geeks, though, that have several different ones. :o |
I,ll see what i can do, still learning Js but if I could maybe get it to integrate with variables from mysql / php then yeah i may be bale to :) that or get readin up on arrays lol
|
All times are GMT. The time now is 11:09 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|