473,406 Members | 2,377 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

How to change a picture with a button

I jave this code but only works when clicking on the image itself, I want to click on a separate button to cahnge the pic:

Expand|Select|Wrap|Line Numbers
  1. <img src="stations/Control Images/westerncape_region_purple.png" alt="Western Cape" name="TEST" width="145" height="156" border="0" usemap="#TESTMap" id="TEST" />
  2.  
  3.  
  4. <map name="TESTMap" id="TESTMap">
  5. <area shape="rect" coords="7,4,219,230" onclick="MM_swapImage('TEST','','stations/Control Images/westerncape_region_blue.png',1)" />
  6. </map>
Mar 25 '13 #1
1 2292
r035198x
13,262 8TB
Your map has an onclick defined as

Expand|Select|Wrap|Line Numbers
  1. onclick="MM_swapImage('TEST','','stations/Control Images/westerncape_region_blue.png',1)"
so did you try adding that onclick to the button?
Mar 25 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: RickDee | last post by:
Pls help. What I am trying to do is to change the text of the MessageBox. For example, when we use : MessageBox.Show("Pass or Fail ?", "Dialog Title", MessageBoxButtons.YesNo); Then we will...
0
by: PawelR | last post by:
Hello Group, In my application I use CrystalReport. In report template I have Picture1 type of ICRPleObject. How dynamicaly - in source code change this picture on user picture. Thx Pawel R
1
by: Jordi Gou | last post by:
Hi, I have a dialog, which have a picture box with an icon file inside, in my program. I want to change this icon dynamically with code. Does anyone knows how I can do it? Thanks Jordi
3
by: Mel | last post by:
Hi, Is there any way I can force to change button background colour when toggle button is checked? Just like button change its background colour when mouseover in MS Visual Studio.NET. I hope I...
4
by: Elton | last post by:
Dear All, I am new to vb , please help. I have a picture , and a picture_click( ) function. What I want to do is to have a simulate a click event onto the picture in a loop. However, when I...
10
by: IchBin | last post by:
I am trying to set the state of a radio button. I do not see what I am doing wrong. Sorry, I am new at this.. I need another set of eyes to look at this snip of code. I am trying to set the radio...
3
by: atlkhan | last post by:
Hi How can I change the picture in this example http://www.flashvalley.com/fv_tutorials/BitmapData_class_and_getPixel/ I want to test this with my own images
2
by: Rinaldo | last post by:
How to change the button text of a openfiledialog in to my own custum test?
3
by: kekela | last post by:
Hi! Tried searching the forums but I came up short, sorry if I'm asking the same stupid question over and over. I got a code snippet that looks like this: private void...
7
Fary4u
by: Fary4u | last post by:
how can i change radio button into image but functionality should be like radio button ? .pic { background:url(pic.jpg) no-repeat; } <input type=radio src=pic.jpg value=1 name=1> or <input...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.