Could anyone convert the following VB codes to Javascript
Thanks
VB Code:
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode = vbKeySpace Then x = roket.UBound + 1 Load roket(x) roket(x).Visible = True End If End Sub Private Sub Form_Load() Timer1.Enabled = True End Sub Private Sub Timer1_Timer() Dim y As Integer For y = 1 To x roket(y).Left = roket(y).Left + 10 Next End Sub


Reply With Quote