Need a code for web page that changes the viewers...

Discussion in 'Software' started by DinoRoberts, Oct 24, 2003.

  1. DinoRoberts

    DinoRoberts Private E-2

    hello all,

    I'm in need of two things, kind of related.

    1st. - need a script of some type to change the screen resolution on the viewers monitor upon their wishes. for example - they come to my site and it says "Looks best at 1024 by 728" perhaps the viewers screen is 800 by 600 and they want to view at my reccomend resolution.

    SO I want a button that they can click that will change their resolution and then switch back (so they don't have to go to control panel.)

    2nd. - I have seen some sites that has the same website at several different resolutions by just clicking a button, - how do they do that ?

    I'm really more interested in the 1st problem rather than the second.

    Any help would really be greatly appreciated.

    --------------------------

    Dino
     
  2. howie

    howie Private E-2

    try using percentages instead of fixed pixels
    for example if you had a table or image that was 400 wide change it to 50% then it should look ok regardless of what screen res your visitor has
     
  3. DinoRoberts

    DinoRoberts Private E-2

    yea, thanks, I'm aware of that, but don't always use tables for whole site. Really, I'm truly looking for #1 or #2

    anyone else?
     
  4. Kodo

    Kodo SNATCHSQUATCH

    you should be using tables to structure your site. If you're not, then you're just free floating and that causes problems. I'd redesign to use tables.

    as for #2, they actually MAKE all new code and images for different resolutions.. that's why I either make my sites viewable in 800x600 or use 100% in my main table.
     
  5. goldfish

    goldfish Lt. Sushi.DC

    also the reason why i panic after designing a website in nice comfey 1024x768 and then going down to 800x600 and seeing scrollbars :eek:

    And tables might be a pain, but there aint no other way of keeping everything in the place you want it to be otherwise. Besides, it makes it look more orderly if you put everything in tables :)
     
  6. DinoRoberts

    DinoRoberts Private E-2

    tables- pain in the uh-huh. lol

    not afraid of table, just more work.



    So neither of you seen a site or know of any codethat had a button that changed the resolution to viewers monitor like in ??? #1.

    and I figured that for #2 they probably coded two separtate sites, was just hoping not. lol.

    I've seen it few times on only 2 sites and haven't seen it in quite a while.

    Thanks anyway. :) appreciate the input

    ---------------]

    Dino
     
  7. Kodo

    Kodo SNATCHSQUATCH

    remember..tables are your friend ;)
     
  8. DinoRoberts

    DinoRoberts Private E-2

    lol, Muwahahahahha

    to me they are merely an acquaintance:D
     
  9. brendandonhue

    brendandonhue Private E-2

    Call me a standards freak, but tables should not be used for layout.
    Web Content Accessibility Guidelines.
    They are for tabular data.

    Anyways, you need to design pages that work for your users resolution, its not their problem that your pages don't work for them. Either use percentages instead of pixels when you code, or make different versions of your site for each resolution.

    ActiveX might be able to change resolution for Windows users, but I would never visit your site again if it changed mine. I don't know about you but it would piss me off if any web page could modify MY monitor settings!
     
  10. Kodo

    Kodo SNATCHSQUATCH

    although the w3c guideline supports this, this is something that is almost completely ignored by the development community and for good reason.

    Example: avoid using images to represent text. This is completely useless. There are fonts that people like to use that are NOT standard and can only be viewed as an image.

    another reason is dev time. Using CSS positioning is rediculously time consuming if you're doing things by hand.

    I admit that somethings in there are good practice but if you take a look at 90% of the sites out there, they don't follow the guideline because it's not practical.

    do a view source on this site.. see what I mean.
    In the end tables are our friend and the w3c loses.
     
  11. lesrae

    lesrae Private E-2

    Could #1 be achieved with Active-X ?
     
  12. Kodo

    Kodo SNATCHSQUATCH

    yes, but as mentioned in brendan's post above mine.. good luck on getting anyone to comeback. RULE #1. NEVER screw with someone pc locally.
     
  13. Vlad902

    Vlad902 Guest

    RULE #2 Don't even turn ActiveX on (RULE #3 Don't even turn Internet Explorer on ;)), you can do alot of malicous things with it.
     
  14. Kodo

    Kodo SNATCHSQUATCH

    :rolleyes:

    activex is very handy
     
  15. brendandonhue

    brendandonhue Private E-2

    Fine, fine, I much prefer using DIVs and SPANs over tables for my pages but I guess most people don't.....

    Kodo-would you like it if ActiveX written by some stranger changed your screen resolution? What if they changed it to a resolution your video drivers don't support?
     
  16. Kodo

    Kodo SNATCHSQUATCH

    read my post again.. I agreed with you. Though activeX is much more versatile than just changing screen resolutions. I use it for other, more sophisticated procedures.
     
  17. brendandonhue

    brendandonhue Private E-2

  18. Kodo

    Kodo SNATCHSQUATCH

    And welcome to Major Geeks ;)
     
  19. lesrae

    lesrae Private E-2

    My bad - just skimmed the thread.
     
  20. DinoRoberts

    DinoRoberts Private E-2

    just so some of you understand me better ---

    brendandonhue said "but I would never visit your site again if it changed mine. I don't know about you but it would piss me off if any web page could modify MY monitor settings!"

    I'm NOT talking about comming to my site, and my site changeing your resolution without your knowledge.

    you would have to press a button that would do it for you if and ONLY IF, you wanted it to change for the site.

    Then you would press a button again to go back to your standard resolution as if you never pressed the button.

    Don't know why someone wouldn't visit a site like that again? I would understand if you went to a site and it changed all your shiz without your consent or knowledge., I wouldn't visit a site like that either.

    Hell if I could find the damn site that I saw this button I'd go back and check out his code. I loved it, did no damage to my system.


    I totally understand about making a site to look good in many resolutions and I do that, I'm was just trying to save some trouble of having to make two separate sites to assure they look exactly what I wanted without using tables to format the site.

    I just liked the button approach, and would not hold a visitor's resolution hostage, they don't have to press the button and the site will still look good, just perhaps different a bit from the original.


    Hope this is understood, so with this said, would you still not visit a site like I stated?

    ----
    Dino
     
  21. DinoRoberts

    DinoRoberts Private E-2

    another thing, since this is so frowned upon,

    how about a code that would change the pages resolution or setting or whatnot, from the servers point so that when they click a button it shows the change without changing the local pc's settings?

    also remember : I"m for peace and harmony.

    just asking questions here.
     
  22. Kodo

    Kodo SNATCHSQUATCH

    hate to break this to ya dino.. it's not gonna happen that easily :(
     
  23. da chicken

    da chicken MajorGeek

    ActiveX could to it, but you should be using ActiveX simply to realize site layout. ActiveX should be used for doing work. The ActiveX control should be the reason for being on the site, not some coincidendat element of it. Same reason you don't use Java applets for menus... you use Flash.

    As far as tables not for layout, I think thats the first time I've ever heard that. Goes to show how important accessibility is to the web development community as a whole. Most developers don't really care if blind people can't use their site.

    <div style="width:100%;"> might be fine for simple web sites, but if you want to do some kind of navigation pane on the left or right side, you're pretty much stuck with tables unless you and to mess with really annoying CSS position attributes or (even worse than tables) frames. Not to mention sites like this message board that need to use tables to organize database output in a logical manner. Accessibility guidelines are a wonderful idea, but in this instance they're far from practical.
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds