TOM63 Posted April 6, 2003 Share Posted April 6, 2003 is there a way to include a code in the programm which automatically detects monitor resolution and adjusts the shop page according to that resolution? thks tom Link to comment Share on other sites More sharing options...
Druide Posted April 6, 2003 Share Posted April 6, 2003 well there is always the good old javascripts who read that info, but i dont see the point of this, it does the job already with my osC (it is filling my browser window) this is the script for a popup window which you can adjust ofcourse just to give you a direction for settings from width & height <SCRIPT LANGUAGE='JAVASCRIPT' TYPE='TEXT/JAVASCRIPT'> var win=null; function NewWindow(mypage,myname,w,h,pos,infocus){ if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;} if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;} else if((pos!='center' && pos!="random") || pos==null){myleft=0;mytop=20} settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,r esizable=yes";win=window.open(mypage,myname,settings); win.focus();} </script> Robert We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.