 |
|
|
10-24-2009, 10:40 PM
|
|
#1
|
 |
|
Aspirant (Level 2)
Join Date: Oct 2009
Posts: 16
|
How to make an image change onmouseover?
Right now i'm trying to make it so that an image is on my webpage, and when someone rolls their mouse over it, it changes to another image. It's a simple image conversion, all I changed is the arrow's depth.
Thanks!
Help-my-HTML
|
|
Add to del.icio.us
Can you digg it?
|
|
|
10-27-2009, 06:06 AM
|
|
#2
|
 |
|
Aspirant (Level 2)
Join Date: Jul 2009
Posts: 16
|
Sample Code
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Image Change on MouseOver</title>
<meta name="" content="">
<script type="text/javascript">
function mouseover()
{
document.getElementById("id1").src ="image2.jpg";
}
function mouseout()
{
document.getElementById("id1").src ="image1.jpg";
}
</script>
</head>
<body>
<img border="0" src="image1.jpg" id="id1" onmouseover="mouseover()" onmouseout="mouseout()" />
</body>
</html>
|
|
Add to del.icio.us
Can you digg it?
|
|
|
11-09-2009, 11:02 PM
|
|
#3
|
 |
|
Novice (Level 1)
Join Date: Nov 2009
Posts: 7
|
How Do YOu Create Multiple?
How would you create multiple image's changing cause i am trying to create a navigation bar and i want it to change when my mouse goes over it. 
|
|
Add to del.icio.us
Can you digg it?
|
|
|
11-10-2009, 09:21 AM
|
|
#4
|
 |
|
~ bald headed old fart ~
Join Date: Aug 2003
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 7,922
|
Hi there hypertml,
and a warm welcome to these forums.
Please show us the code for you navigation and the images that are to be used for it. 
__________________
|
|
Add to del.icio.us
Can you digg it?
|
|
|
11-11-2009, 11:40 AM
|
|
#5
|
 |
|
Novice (Level 1)
Join Date: Nov 2009
Posts: 7
|
This is the code I used
How to you create multiple onmouseover images not just one
here is the code
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Image Change on MouseOver</title>
<meta name="" content="">
<script type="text/javascript">
function mouseover()
{
document.getElementById("id1").src ="image2.jpg";
}
function mouseout()
{
document.getElementById("id1").src ="image1.jpg";
}
</script>
</head>
<body>
<img border="0" src="image1.jpg" id="id1" onmouseover="mouseover()" onmouseout="mouseout()" />
</body>
</html>
|
|
Add to del.icio.us
Can you digg it?
|
|
|
11-11-2009, 11:50 AM
|
|
#6
|
 |
|
~ bald headed old fart ~
Join Date: Aug 2003
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 7,922
|
Hi there hypertml,
please show us the images that you want to change on mouseover.
We can then supply you with the necessary code.
__________________
|
|
Add to del.icio.us
Can you digg it?
|
|
|
11-15-2009, 10:45 AM
|
|
#7
|
 |
|
Novice (Level 1)
Join Date: Nov 2009
Posts: 7
|
Here are the images.
I want them to change to the one that looks like it is pushed onmouseover.(the last one)
|
|
Add to del.icio.us
Can you digg it?
|
|
|
11-15-2009, 01:59 PM
|
|
#8
|
 |
|
~ bald headed old fart ~
Join Date: Aug 2003
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 7,922
|
Hi there hypertml,
check out the attachment for the solution to your problem. 
__________________
|
|
Add to del.icio.us
Can you digg it?
|
|
|
11-17-2009, 06:36 PM
|
|
#9
|
 |
|
Novice (Level 1)
Join Date: Nov 2009
Posts: 7
|
How?
How the heck did you do that?
Thats what i have been trying to do!  
|
|
Add to del.icio.us
Can you digg it?
|
|
|
11-17-2009, 06:52 PM
|
|
#10
|
 |
|
~ bald headed old fart ~
Join Date: Aug 2003
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 7,922
|
Hi there hypertml,
Quote:
|
How the heck did you do that?
|
You may well find an answer here...
__________________
|
|
Add to del.icio.us
Can you digg it?
|
|
|
11-17-2009, 07:37 PM
|
|
#11
|
 |
|
Novice (Level 1)
Join Date: Nov 2009
Posts: 7
|
I tried everything.
I Have tried everything to get it to work and it just goes to the list in my browser.
What am i doing wrong?
|
|
Add to del.icio.us
Can you digg it?
|
|
|
11-17-2009, 07:59 PM
|
|
#12
|
 |
|
~ bald headed old fart ~
Join Date: Aug 2003
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 7,922
|
Hi there hypertml,
put all your stuff in a zip attachment and I will look at it when I get time. 
I am working on another problem just at the moment.
__________________
|
|
Add to del.icio.us
Can you digg it?
|
|
|
11-18-2009, 08:02 AM
|
|
#14
|
 |
|
~ bald headed old fart ~
Join Date: Aug 2003
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 7,922
|
Hi there hypertml,
and here is your stuff reworked somewhat. 
__________________
|
|
Add to del.icio.us
Can you digg it?
|
|
|
11-19-2009, 08:15 PM
|
|
#15
|
 |
|
Novice (Level 1)
Join Date: Nov 2009
Posts: 7
|
How?
How do you do that i tried everything i tried copy and pasting and even writing word by word and saving.It only shows the html part.
|
|
Add to del.icio.us
Can you digg it?
|
|
|
KEEP TABS |
|
SPONSORS |
| |
|
| |
|
|
| |
|