Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


help me pleaaasseee.....

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,47614
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> help me pleaaasseee.....
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 help me pleaaasseee..... - 5/26/2007 2:55:54 PM   
  antobey

 

Posts: 3
Score: 0
Joined: 5/26/2007
Status: offline
hello all...please help me...i have a task form my lectire to create a game page, but i have stuck please help me my deadline in thursday please........this is the link of my task
http://www.geocities.com/antobey_mcguire/game.doc
thanks.....

_____________________________

regard -dwinanto-
 
 
Post #: 1
 
 RE: help me pleaaasseee..... - 5/26/2007 3:01:10 PM   
  dm_4ever


Posts: 2726
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
First, read this post: http://www.visualbasicscript.com/m_24727/tm.htm
Second, you might want to check out this link: http://www.microsoft.com/technet/scriptcenter/funzone/games/memory.mspx

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to antobey)
 
 
Post #: 2
 
 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-

(in reply to antobey)
 
 
Post #: 3
 
 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.

(in reply to antobey)
 
 
Post #: 4
 
 RE: help me pleaaasseee..... - 5/29/2007 12:23:50 AM   
  ginolard


Posts: 1082
Score: 21
Joined: 8/10/2005
Status: offline
You might also want to read the current topic about Select Case vs multiple If statements ;)

_____________________________

Author of ManagePC - http://managepc.net
AD Query Template - http://www.visualbasicscript.com/m_40609/tm.htm
Consolidated Scripting Framework - http://www.visualbasicscript.com/m_59109/tm.htm

(in reply to mbouchard)
 
 
Post #: 5
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> help me pleaaasseee..... Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts