Login | |
|
 |
RE: help me pleaaasseee..... - 5/26/2007 3:56:37 PM
|
|
 |
|
| |
antobey
Posts: 3
Score: 0
Joined: 5/26/2007
Status: offline
|
<html> <head> <title>Game</title> <script language="vbscript"> dim pic(16) dim y dim x dim z sub gender() if form1.sex(0).checked= false AND form1.sex(1).checked= false then msgbox"gender harus di pilih" else mulai() end if end sub sub mulai() msgbox "mulai" pic(0)="1.jpg" pic(1)="2.jpg" pic(2)="3.jpg" pic(3)="4.jpg" pic(4)="5.jpg" pic(5)="6.jpg" pic(6)="7.jpg" pic(7)="8.jpg" pic(8)="9.jpg" pic(9)="10.jpg" pic(10)="11.jpg" pic(11)="12.jpg" pic(12)="13.jpg" pic(13)="14.jpg" pic(14)="15.jpg" pic(15)="16.jpg" gmbrtable.innerHTML="<table border='2'><tr> <td><div id='gambar1'> <img src=none.jpg></td> </div> <td><div id='gambar2'> <img src=none.jpg></td> </div> <td><div id='gambar3'> <img src=none.jpg></td> </div> <td><div id='gambar4'> <img src=none.jpg></td> </div> </tr> <tr> <td><div id='gambar5'> <img src=none.jpg></td> </div> <td><div id='gambar6'> <img src=none.jpg></td> </div> <td><div id='gambar7'> <img src=none.jpg></td> </div> <td><div id='gambar8'> <img src=none.jpg></td> </div> </tr> <tr><td><div id='gambar9'> <img src=none.jpg></td> </div> <td><div id='gambar10'> <img src=none.jpg></td> </div> <td><div id='gambar11'> <img src=none.jpg></td> </div> <td><div id='gambar12'> <img src=none.jpg></td> </div> </tr> <tr> <td><div id='gambar13'> <img src=none.jpg></td> </div> <td><div id='gambar14'> <img src=none.jpg></td> </div> <td><div id='gambar15'> <img src=none.jpg></td> </div> <td><div id='gambar16'> <img src=none.jpg></td> </div></tr></table>" ubah() end sub sub ubah() x = round(rnd()*15,0) y = round(rnd()*15,0) if x=0 then gambar1.innerHTML ="<img src="&pic(y)&" width=70 height=70>" window.setTimeout "tutup(0)", 900 elseif x=1 then gambar2.innerHTML ="<img src="&pic(y)&" width=70 height=70>" window.setTimeout "tutup(1)", 900 elseif x=2 then gambar3.innerHTML ="<img src="&pic(y)&" width=70 height=70>" window.setTimeout "tutup(2)", 900 elseif x=3 then gambar4.innerHTML ="<img src="&pic(y)&" width=70 height=70>" window.setTimeout "tutup(3)", 900 elseif x=4 then gambar5.innerHTML ="<img src="&pic(y)&" width=70 height=70>" window.setTimeout "tutup(4)", 900 elseif x=5 then gambar6.innerHTML ="<img src="&pic(y)&" width=70 height=70>" window.setTimeout "tutup(5)", 900 elseif x=6 then gambar7.innerHTML ="<img src="&pic(y)&" width=70 height=70>" window.setTimeout "tutup(6)", 900 elseif x=7 then gambar8.innerHTML ="<img src="&pic(y)&" width=70 height=70>" window.setTimeout "tutup(7)", 900 elseif x=8 then gambar9.innerHTML ="<img src="&pic(y)&" width=70 height=70>" window.setTimeout "tutup(8)", 900 elseif x=9 then gambar10.innerHTML ="<img src="&pic(y)&" width=70 height=70>" window.setTimeout "tutup(9)", 900 elseif x=10 then gambar11.innerHTML ="<img src="&pic(y)&" width=70 height=70>" window.setTimeout "tutup(10)", 900 elseif x=11 then gambar12.innerHTML ="<img src="&pic(y)&" width=70 height=70>" window.setTimeout "tutup(11)", 900 elseif x=12 then gambar13.innerHTML ="<img src="&pic(y)&" width=70 height=70>" window.setTimeout "tutup(12)", 900 elseif x=13 then gambar14.innerHTML ="<img src="&pic(y)&" width=70 height=70>" window.setTimeout "tutup(13)", 900 elseif x=14 then gambar15.innerHTML ="<img src="&pic(y)&" width=70 height=70>" window.setTimeout "tutup(14)", 900 elseif x=15 then gambar16.innerHTML ="<img src="&pic(y)&" width=70 height=70>" window.setTimeout "tutup(15)", 900 end if end sub sub tutup(z) if z=0 then gambar1.innerHTML ="<img src=none.jpg>" elseif z=1 then gambar2.innerHTML ="<img src=none.jpg>" elseif z=2 then gambar3.innerHTML ="<img src=none.jpg>" elseif z=3 then gambar4.innerHTML ="<img src=none.jpg>" elseif z=4 then gambar5.innerHTML ="<img src=none.jpg>" elseif z=5 then gambar6.innerHTML ="<img src=none.jpg>" elseif z=6 then gambar7.innerHTML ="<img src=none.jpg>" elseif z=7 then gambar8.innerHTML ="<img src=none.jpg>" elseif z=8 then gambar9.innerHTML ="<img src=none.jpg>" elseif z=9 then gambar10.innerHTML ="<img src=none.jpg>" elseif z=10 then gambar11.innerHTML ="<img src=none.jpg>" elseif z=11 then gambar12.innerHTML ="<img src=none.jpg>" elseif z=12 then gambar13.innerHTML ="<img src=none.jpg>" elseif z=13 then gambar14.innerHTML ="<img src=none.jpg>" elseif z=14 then gambar15.innerHTML ="<img src=none.jpg>" elseif z=15 then gambar16.innerHTML ="<img src=none.jpg>" end if ubah() end sub </script> </head> <body><div id="gmbrtable"> <table width="43%" border="0" align="center"> <tr> <td width="51%" scope="col"><div align="center"><img src="cwo.gif" width="140" height="236"></div></td> <td width="49%" scope="col"><div align="center"><img src="cwe.gif" width="134" height="263"></div></td> </tr> <form name="form1"> <tr> <td height="57" width="51%"><div align="center"><strong> <input name="sex" type="radio" value="radiobutton"> <strong>Male</strong></strong></div></td> <td height="57" width="49%"><div align="center"><strong> <input name="sex" type="radio" value="radiobutton"> Female</strong></div></td> </tr> </form> <tr> <td colspan="2"> <h2 align="center"> <input type="button" name="Submit2" value="Ready ^ ^" onClick="gender()"> </h2> </td> </tr> </table> <div align="center"></div> <div align="center"></div> <div align="center"></div> </div> </body> </html> actualy i have create but not finish yet please help continue this task
_____________________________
regard -dwinanto-
|
|
| |
|
|
|
 |
RE: help me pleaaasseee..... - 5/29/2007 12:14:31 AM
|
|
 |
|
| |
mbouchard
Posts: 1924
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
|
antobey, Not many people here will do your work for you, especially if it is for a class. but we are more than willing to assist if you have a problem. Are you having an issue with your page? If so, what?
_____________________________
Mike For useful Scripting links see the Read Me First stickey! Always remember Search is your friend.
|
|
| |
|
|
|
|
|