resolution...

  • dreamer7
  • Student
  • Student
  • No Avatar
  • Joined: Jan 20, 2003
  • Posts: 96
  • Loc: UK
  • Status: Offline

Post February 17th, 2003, 10:05 pm

Out of interest is there any way without makin 2 separate pages with 2 different links is there way that u can automatically detect the viewers screen resolution so that the page is viewed in that resolution because not everyone uses 800x600 and some sites are made for 1024x768 so it look kinda compressed with unnecessary scrollbars and so on is there any way?
D7
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post February 17th, 2003, 10:05 pm

  • morph
  • Novice
  • Novice
  • No Avatar
  • Joined: Feb 17, 2003
  • Posts: 31
  • Loc: Kidderminster, England UK
  • Status: Offline

Post February 18th, 2003, 2:37 am

I havent actually seen this done before but all would be alot easier if it could be done. I dont think its possible for someone to view a page and it automatically fits to their resolution but you may be able to add two buttons which both edit the settings screensize in propeties automatically (so that you dont have to redo every page in the next resolution) but yet again the desgn really would have to fit to both resolutions for the best layout.

Sorry...I guess this was no help at all really :cry: I will see what I can find out.
  • dreamer7
  • Student
  • Student
  • No Avatar
  • Joined: Jan 20, 2003
  • Posts: 96
  • Loc: UK
  • Status: Offline

Post February 18th, 2003, 2:57 am

well i was wondering cos on yahoo hosted sites they give stats out like how many visitors to each page but also what is the screen resolution of the viewer of the page so i take it something on the page can tell what screen resolution u have so surely make code out of it and lol its ok anything helps me with stuff like this lol
D7
  • morph
  • Novice
  • Novice
  • No Avatar
  • Joined: Feb 17, 2003
  • Posts: 31
  • Loc: Kidderminster, England UK
  • Status: Offline

Post February 18th, 2003, 3:14 am

lol. Yeah....erm Im not sure what the code would be though because Ive never tried making a script like that. Im sure others on this forum will know. Check back soon! :D
  • ED
  • Student
  • Student
  • No Avatar
  • Joined: Jan 02, 2003
  • Posts: 66
  • Loc: Halifax
  • Status: Offline

Post February 18th, 2003, 9:18 am

i actually design a site a long time ago that changed depending on the resolution of the viewer... of course there is more then 1 way to do it, but if you only want to use one page. use javascript ( screen.width & screen.height ) to detect the resolution. and you can use script (document.write) to insert table sizes, image sizes, whatever...
  • morph
  • Novice
  • Novice
  • No Avatar
  • Joined: Feb 17, 2003
  • Posts: 31
  • Loc: Kidderminster, England UK
  • Status: Offline

Post February 18th, 2003, 9:51 am

That sounds really good. I must try that sometime.
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 8922
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Online

Post February 18th, 2003, 1:46 pm

This forum actually does it haha. Change you resolution and then refresh the page you will see the title at the top get smaller. I had to that that to prevent the annoying scroll bar at the bottom. The only thing is that it requires javascript to do it. So what I did is if javascript is not enabled by the user the title just displays the smallest one by default. Anyway I will post how I did it shortly, or you can just view the source code on any of the forum pages to see how its done
Ozzu Hosting - Want your website on a fast server like Ozzu?
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 8922
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Online

Post February 18th, 2003, 1:47 pm

Here is the code I use to determine what title images is used

Code: [ Select ]
<script language-"JavaScript">
<!--
if(screen.width >= 1024)
  document.write('<img src="templates/VereorSpiderMan/images/_logo.gif" width="690" height="78" border="0" alt="Ozzu Webmaster Forum">');
else
  document.write('<img src="templates/VereorSpiderMan/images/_logo2.gif" width="392" height="78" border="0" alt="Ozzu Webmaster Forum">');

//-->
</script>

<noscript>
<img src="templates/VereorSpiderMan/images/_logo2.gif" width="392" height="78" border="0" alt="Ozzu Webmaster Forum">
</noscript>
  1. <script language-"JavaScript">
  2. <!--
  3. if(screen.width >= 1024)
  4.   document.write('<img src="templates/VereorSpiderMan/images/_logo.gif" width="690" height="78" border="0" alt="Ozzu Webmaster Forum">');
  5. else
  6.   document.write('<img src="templates/VereorSpiderMan/images/_logo2.gif" width="392" height="78" border="0" alt="Ozzu Webmaster Forum">');
  7. //-->
  8. </script>
  9. <noscript>
  10. <img src="templates/VereorSpiderMan/images/_logo2.gif" width="392" height="78" border="0" alt="Ozzu Webmaster Forum">
  11. </noscript>
Ozzu Hosting - Want your website on a fast server like Ozzu?
  • dreamer7
  • Student
  • Student
  • No Avatar
  • Joined: Jan 20, 2003
  • Posts: 96
  • Loc: UK
  • Status: Offline

Post February 18th, 2003, 4:40 pm

thanx all i think it will come in handy :)
D7

Post Information

  • Total Posts in this topic: 9 posts
  • Users browsing this forum: No registered users and 108 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.