利用UpdatePanel+Timer做出圖片輪動效果
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
If Not IsPostBack Then
Session("num") = 1
Image1.ImageUrl = "0" & Session("num") & ".jpg"
Else
Session("num") = Session("num") + 1
If Session("num") > 4 Then
Session("num") = 1
End If
Image1.ImageUrl = "0" & Session("num") & ".jpg"
End If
End Sub
End Class
訂閱:
張貼留言 (Atom)
0 意見:
張貼留言