Author Topic: .NET ImageMaps  (Read 1071 times)

.NET ImageMaps
on: October 14, 2008, 17:44:21 PM
Has anyone used the .NEt V2 Image Map class before?

Supposedly, its somehow possible to set a "z-index" for overlapping HotSpots( ) yet I cant seem to find out how as no one in the world appears to have done it before.

Ive tried overriding the Render method in ImageMap to intercept the output and then inserting style=z-index:*A NUMBER*; but this has does not actually work.  The style writes out ok, but it makes no difference to which is on top.

Anyone?

I guess if someone knows how to do this in standard HTML thatll do nicely as well as Ill just butcher MS code.

  • Offline Pete

  • Posts: 5,155
  • Hero Member
Re:.NET ImageMaps
Reply #1 on: October 14, 2008, 20:42:10 PM
I just had a play in vwd2008 and it doesnt like having a Z= value set.

CSS any good to ya? http://www.webreference.com/programming/image_map/2.html
I know sh*ts bad right now with all that starving bullsh*t and the dust storms and we are running out of french fries and burrito coverings.

Re:.NET ImageMaps
Reply #2 on: October 14, 2008, 21:59:20 PM
Thats not looking like a dynamic solution to me.  Im creating all my images and image maps dynamically.  There can potentially be hundreds on the screen.

So far Ive established that the first created HotSpot/ is the one that is the "highest" on the webpage.  I might just need to reverse the order in which Im creating them or create them another way.

Re:.NET ImageMaps
Reply #3 on: October 15, 2008, 19:17:10 PM
Woohoo Problem solved.

Found out that I was getting my top and bottom coordinates the wrong way around.

Image Maps work across and down as opposed to across and up.  So my top coordinate would be 0 instead of the height of my image.

0 Members and 1 Guest are viewing this topic.