ASP study notes

xiaoxiao2021-03-18  187

ADROTATOR controls can quickly implement advertising publishing

Change the code in the code about ADROTATOR

Among them, Ads.xml is a picture attribute file, the content is as follows

~ / iMageURL> http://www.sohu.com sohu computers 80

~ / imageURL> http://www.sina.com sina computers 80

~ / nteaselogo.gif http://www.163.com 163 Computers 80

Implement image on panel Click to have imagemap and imagebutton controls

ImageButton controls can get the mouse coordinate on the image, which is obtained on a particular area, as shown below

Protected Sub ImageButton1_Click (ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageButton1.Click Dim x As Integer = eX Dim y As Integer = eY Label2.Text = "X:" & x.ToString () & "Y:" & y.toString () IF Y> = 120 Then Label3.text = "You click on Springs!" Else: label3.text = "You click Sohu" end if End Sub

ImageButton controls can define a hot zone, and the hot zone can be rectangular, circular, or polygonal.

转载请注明原文地址:https://www.9cbs.com/read-129742.html

New Post(0)