home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 February / Chip_2003-02_cd1.bin / tema / mweil / start.js < prev    next >
Text File  |  2002-12-18  |  2KB  |  75 lines

  1. var wwidth=0;
  2. var wheight=0;
  3. var lhy=0;
  4. var lhx=0;
  5.  
  6. function startup()
  7. {
  8.  
  9. if(document.all){
  10.   wwidth =  document.body.offsetWidth; 
  11.   wheight=  document.body.offsetHeight;
  12. } else
  13. {
  14.   wwidth=window.innerWidth;
  15.   wheight=window.innerHeight;
  16. }
  17. if (wwidth==0) wwidth=640;
  18. if (wheight==0) wheight=480;
  19.  
  20.  
  21. if(wwidth>640) {lhx=Math.ceil((wwidth-705)/2);} else lhx=0;
  22. if(wheight>256) {lhy=Math.ceil((wheight-470)/2);} else lhy=0;
  23.  
  24. scrolltextInit()
  25.  
  26.     mTimerInit();
  27.     lpos("main", lhx, lhy);
  28.     lshow("main");
  29.     lpos("nadpis", lhx+143, lhy+88);
  30.     lshow("nadpis");
  31.     lpos("divScrollTextCont", lhx+143, lhy+121)
  32.     lpos("hodiny",lhx+522, lhy+64);
  33.     lshow("hodiny");
  34.     lpos("prima2", lhx+143, lhy+404);
  35.     //lshow("prima2");
  36.     
  37. /*    vv = new Image(44,64);
  38.     vv.src = "images/vlajkagb1.gif";
  39.     aa = new Image(144,62);
  40.     aa.src = "images/adresa1.gif";
  41.     dd = new Image(72,75);
  42.     dd.src="images/dn1.gif";
  43.     uu = new Image(72,75);
  44.     uu.src="images/up1.gif";
  45.     uu0 = new Image(72,75);
  46.     uu0.src="images/up0.gif";
  47.     m1 = new Image(54,24);
  48.     m1.src = "images/firma1.gif";
  49.     m2 = new Image(117,24);
  50.     m2.src = "images/prima1.gif";
  51.     m3 = new Image(70,24);
  52.     m3.src = "images/e1.gif";
  53.     m4 = new Image(77,24);
  54.     m4.src = "images/sortiment1.gif";
  55.     menupic1 = new Image(5,3);
  56.     menupic1.src = "images/poptr.gif";
  57.     menupic2 = new Image(5,8);
  58.     menupic2.src = "images/popbr.gif";
  59.     menupic3 = new Image(130,133);
  60.     menupic3.src = "images/popbg.gif";
  61.     menupic4 = new Image(400,8);
  62.     menupic4.src = "images/popb.gif";
  63.     menupic5 = new Image(5,133);
  64.     menupic5.src = "images/popr.gif";
  65.     menupic3 = new Image(135,3);
  66.     menupic3.src = "images/popt.gif";
  67. */    
  68.  
  69.     localstartup();
  70.         
  71.     bigbang();
  72.     biggerbang();
  73.     primaci();
  74. }
  75.