imagemap

Creating clickable C# image map in winforms

余生颓废 提交于 2020-02-02 12:31:17
问题 I'm trying to develop a basic C# winforms app with a clickable image map as its focus. That is, an image where a certain section is clickable and will open a new form. For example the image could be a chessboard, and clicking on a certain square will perform the action of opening a new form. I hope this concept is clear. I've looked at similar questions on S.O. and could not find a workable solution. Cheers 回答1: My solution would be to leverage the MouseUp event on whatever control holds the

Javascript and an image map? How this works?

会有一股神秘感。 提交于 2020-01-28 12:33:25
问题 I have make a image map and have a form. In the form i have three text fields. When i click on the image map. I click on the number 4. The number 4 must come in the text field "regio". A other example. When i click in the image map on the number 9. The number 9 must come in the textfield "regio". Here is my code: http://www.testdomeinnaam.nl/mike/ But how can i make this???? Thank you !!! 回答1: Three things: 1 - for every area you need to attach a firing event. Way one: <area ... href=

Javascript and an image map? How this works?

喜夏-厌秋 提交于 2020-01-28 12:31:04
问题 I have make a image map and have a form. In the form i have three text fields. When i click on the image map. I click on the number 4. The number 4 must come in the text field "regio". A other example. When i click in the image map on the number 9. The number 9 must come in the textfield "regio". Here is my code: http://www.testdomeinnaam.nl/mike/ But how can i make this???? Thank you !!! 回答1: Three things: 1 - for every area you need to attach a firing event. Way one: <area ... href=

Highlighting an area of an image map based on search text

北城以北 提交于 2020-01-25 10:33:21
问题 This is a new question feeding from another question that was just answered here. I am working to highlight a <div> based on search text. We've accomplished that, thanks to Alex. Now, I'm trying to apply the same concept to mapped coordinates on an image map. There's a jsfiddle here. Here's the JS(jQuery 1.10.2)... function doSearch(text) { $('#content div').removeClass('highlight'); $('#content div:contains(' + text + ')').addClass('highlight'); } 回答1: If you want a method without SVG, you

Clickable areas of image - even when screen changes sizes html

北战南征 提交于 2020-01-14 05:43:08
问题 I am trying to learn how to make a simple website in HTML. Currently I have created a background image that image has multiple shapes on it. I want different parts of the image to be clickable links. I understand how to find the coordinates and use an image map however the clickable links are not working when I change the screen size. How can I make the clickable areas work for different screen sizes? body, html { height: 100%; margin: 0; } .bg { background-position: left; background-repeat:

Resize image map on window resize

China☆狼群 提交于 2020-01-10 05:00:07
问题 I'm trying to resize an image map on window resize event. The closest I've gotten is to use a mouseclick event, but it needs to be window resize for what I'm doing. I'm using Firefox 3.5.5 I'm using jquery somewhat. Here's my example - the area button I want to resize on window resize is in the top left (click on it to resize map and area button): http://www.whitebrickstudios.com/foghornstour/imagemap3.html Any help would be appreciated! Thank you, Rich 回答1: I wrote some simple function to

Android: How to display an image file (building's floor map) and update the file?

為{幸葍}努か 提交于 2020-01-06 08:45:09
问题 I have read ImageView. I want to use it to display the image file. Also, I have plan to provide functionality to update the file. Would you teach me on how to display the image file. Then add group of radio buttons on the top to represent the floors. When I click 1st Floor, the imageview source change to image1.png, then click 2nd floor radio button, change to image2.png and so on.. I am using Android Platform 2.1-update1 and eclipse ADT for this thesis. Here's my current code: (although

How can I overlay multiple PNGs and have each of them clickable in their visible area?

烈酒焚心 提交于 2020-01-05 04:37:08
问题 I need to set up a clickable image system for dynamically created content. The image consists of a background image, and several grey-scale mask images. Background Image: Masks: , , , , Each area, defined by a mask, should be highlighted on mouse over, clickable on the image, and open a certain link. How do I do this the smartest way? I need this to be responsive, and work with a couple of hundred masks. I haven't tried anything yet, but I've done some research, which have resulted in two

Changing the colour/transparency of a div on rollover or using an imagemap

点点圈 提交于 2020-01-05 04:25:07
问题 I have a map which is one image. I need to have five hit areas on that image and when you rollover one of those areas, that div / part of the image / imagemap needs to go grey. I don't want to use multiple images - I want to keep the map as one image. Can anybody please help me - I've been searching most of the day for a solution and can't find one. Thanks in advance. 回答1: The most straight forward solution is probably an image map using maphilight. You can find an example there with the code

1 image 2 links

不羁岁月 提交于 2020-01-03 13:33:05
问题 how do you make an image be clickable in in HTML in different areas of the image and lead to different URL's... for instance I have an image or "button" if you will that is 1 image but I want it to actually be 2 links... one side of the button is "sign up" while the other side is "try out" 回答1: Use CSS-sprites I think that the best way is to use CSS sprite: http://www.jsfiddle.net/pereskokov/vVhde/1/. Main benefit of using it — your image will not be a part of content, it's just decor. So