home *** CD-ROM | disk | FTP | other *** search
- var HMI=4; //╤ΩεδⁿΩε Φτεß≡αµσφΦΘ ± Γα≡Φαφ≥α∞Φ Ωφε∩εΩ Γ±σπε
- var imgArray=new Array(HMI);
- function loadAllImages(HMI){ //╟απ≡≤τΩα Γ±σ⌡ Φτεß≡αµσφΦΘ Ωφε∩εΩ Σδ ≤±Ωε≡σφΦ
- var i;
- for (i=0; i<HMI; i++){
- imgArray[i]=new Image();}
- imgArray[0].src="pbuttons.jpg";
- imgArray[1].src="pbuttons1.jpg";
- imgArray[2].src="pbuttons2.jpg";
- imgArray[3].src="pbuttons3.jpg";
- }
- function OpenWindow(){
- parent.window.location.replace("../files/index.htm");
- //newWnd=window.open("../files/index.htm", "GameWindow", "width=800, height=500, toolbar=no, menubar=no, scrollbars=no, resizable=no, status=yes");
- }
- function CloseWindow(){
- parent.parent.window.close()
- }
- function BegNewGame(){
- window.status="";
- pimg.src=imgArray[1].src;
- OpenWindow();
- //CloseWindow()
- }
- function LoadGame(){
- pimg.src=imgArray[2].src
- parent.parent.loadframe.location.replace("../files/load.htm");
- }
- function backimg(){ //╧≡ε±≥ε φσφαµα≥α Ωφε∩Ωα
- window.setTimeout("pimg.src=imgArray[0].src",100,"JavaScript");
- }
- function loadbut(szName){ //╟απ≡≤τΩα - Ωφε∩Ωα
- pimg.src=imgArray[2].src;
- backimg();
- }
- function ExBut(){
- pimg.src=imgArray[3].src
- CloseWindow()
- }
- function backimg(){ //╧≡ε±≥ε φσφαµα≥α Ωφε∩Ωα
- pimg.src=imgArray[0].src;
- }