Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

resolution


TOM63

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...