VERSION 5.00
Begin VB.Form Frmyidp 
   BackColor       =   &H00000000&
   Caption         =   "奔向奥运"
   ClientHeight    =   2025
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   5130
   LinkTopic       =   "Form1"
   ScaleHeight     =   2025
   ScaleWidth      =   5130
   StartUpPosition =   3  '窗口缺省
   Begin VB.Timer Tmrclock 
      Interval        =   50
      Left            =   240
      Top             =   240
   End
   Begin VB.Image Imgrun 
      Height          =   1380
      Left            =   1920
      Picture         =   "移动跑.frx":0000
      Top             =   600
      Width           =   1200
   End
End
Attribute VB_Name = "Frmyidp"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Tmrclock_Timer()
    Rem 图片的交替
    Dim a As String                  '定义字符型变量
    Static i As Integer              '定义静态整型变量
    i = i + 1                        '图片序号记数
    a = "../跑步图片/" + CStr(i) + ".bmp"           '存储图片路径字符串
    Imgrun.Picture = LoadPicture(a)  '为图像框装载图片
    If i = 15 Then
      i = 0                          '图片序号归0
    End If
    Rem 图片框的移动
    If Imgrun.Left < Frmyidp.Width Then
       Imgrun.Move Imgrun.Left + 200 '图像框移动
    Else
       Imgrun.Left = 0               '图像框到窗体左边框的距离归0
    End If
End Sub

