Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

make hotspot image popup a page.

Status
Not open for further replies.

DougP

MIS
Joined
Dec 13, 1999
Messages
5,985
Location
US
I have this code to navigate to another url which works great. But I want the page to just pop up and go away when the mouse is not on the hotspot and popup again on another hotspot. I also need to show data for that hotspot in the popup page. So I need to pass parameters to it somehow.
Code:
        Dim Shop As New ImageMap
        Shop.ImageUrl = "Grdwatermntrwell.jpg"
        Shop.AlternateText = "Well Points"

        ' Add the ImageMap control to the 
        ' Controls collection of the page.
        Page.Controls.Add(Shop)

        ' Programmatically create a CircleHotSpot object.
        Dim Circle1 As New CircleHotSpot
        Circle1.HotSpotMode = HotSpotMode.Navigate
        Circle1.NavigateUrl = "data.aspx"
        Circle1.X = 210
        Circle1.Y = 97
        Circle1.Radius = 17
        Circle1.AlternateText = "Well Points"

        ' Add Circle1 to the ImageMap's HotSpotCollection.    
        Shop.HotSpots.Add(Circle1)

DougP, MCP, A+
 
To pass the parameters to the other page, simply pass them through as a querystring. As for showing/hiding pages, the only methods that would work are by using javascript or CSS methods on the mouseover or hover events.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top