Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > Client Side Scripting
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 10-24-2009, 10:40 PM
  #1
Help-my-html
Aspirant (Level 2)
 
Help-my-html's Avatar
 
Join Date: Oct 2009
Posts: 16
iTrader: (0)
Help-my-html is an unknown quantity at this point
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
Help-my-html is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 10-27-2009, 06:06 AM
  #2
ontherocks
Aspirant (Level 2)
 
Join Date: Jul 2009
Posts: 16
iTrader: (0)
ontherocks is an unknown quantity at this point
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>
ontherocks is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-09-2009, 11:02 PM
  #3
hypertml
Novice (Level 1)
 
Join Date: Nov 2009
Posts: 7
iTrader: (0)
hypertml is an unknown quantity at this point
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.
hypertml is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-10-2009, 09:21 AM
  #4
coothead
~ bald headed old fart ~
 
coothead's Avatar
 
Join Date: Aug 2003
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 7,922
iTrader: (0)
coothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to behold
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.
__________________
coothead is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-11-2009, 11:40 AM
  #5
hypertml
Novice (Level 1)
 
Join Date: Nov 2009
Posts: 7
iTrader: (0)
hypertml is an unknown quantity at this point
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>
hypertml is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-11-2009, 11:50 AM
  #6
coothead
~ bald headed old fart ~
 
coothead's Avatar
 
Join Date: Aug 2003
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 7,922
iTrader: (0)
coothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to behold
Hi there hypertml,

please show us the images that you want to change on mouseover.

We can then supply you with the necessary code.
__________________
coothead is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-15-2009, 10:45 AM
  #7
hypertml
Novice (Level 1)
 
Join Date: Nov 2009
Posts: 7
iTrader: (0)
hypertml is an unknown quantity at this point
Here are the images.

I want them to change to the one that looks like it is pushed onmouseover.(the last one)
Attached Thumbnails
Click image for larger version

Name:	buttonabout.jpg
Views:	2
Size:	50.9 KB
ID:	10431  Click image for larger version

Name:	buttoncontactus.jpg
Views:	2
Size:	59.8 KB
ID:	10432  Click image for larger version

Name:	buttonhome.jpg
Views:	3
Size:	48.6 KB
ID:	10433  Click image for larger version

Name:	buttonpush.jpg
Views:	3
Size:	34.2 KB
ID:	10434  
hypertml is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-15-2009, 01:59 PM
  #8
coothead
~ bald headed old fart ~
 
coothead's Avatar
 
Join Date: Aug 2003
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 7,922
iTrader: (0)
coothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to behold
Hi there hypertml,

check out the attachment for the solution to your problem.
Attached Files
File Type: zip hypertml.zip (37.5 KB, 4 views)
__________________
coothead is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-17-2009, 06:36 PM
  #9
hypertml
Novice (Level 1)
 
Join Date: Nov 2009
Posts: 7
iTrader: (0)
hypertml is an unknown quantity at this point
How?

How the heck did you do that?
Thats what i have been trying to do!
hypertml is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-17-2009, 06:52 PM
  #10
coothead
~ bald headed old fart ~
 
coothead's Avatar
 
Join Date: Aug 2003
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 7,922
iTrader: (0)
coothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to behold
Hi there hypertml,
Quote:
How the heck did you do that?
You may well find an answer here...
__________________
coothead is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-17-2009, 07:37 PM
  #11
hypertml
Novice (Level 1)
 
Join Date: Nov 2009
Posts: 7
iTrader: (0)
hypertml is an unknown quantity at this point
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?
hypertml is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-17-2009, 07:59 PM
  #12
coothead
~ bald headed old fart ~
 
coothead's Avatar
 
Join Date: Aug 2003
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 7,922
iTrader: (0)
coothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to behold
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.
__________________
coothead is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-17-2009, 11:23 PM
  #13
hypertml
Novice (Level 1)
 
Join Date: Nov 2009
Posts: 7
iTrader: (0)
hypertml is an unknown quantity at this point
Here are the stuff

Here is the stuff.
Attached Files
File Type: zip coothead.zip (486.8 KB, 2 views)
hypertml is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-18-2009, 08:02 AM
  #14
coothead
~ bald headed old fart ~
 
coothead's Avatar
 
Join Date: Aug 2003
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 7,922
iTrader: (0)
coothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to behold
Hi there hypertml,

and here is your stuff reworked somewhat.
Attached Files
File Type: zip hypertml_revised.zip (86.8 KB, 5 views)
__________________
coothead is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-19-2009, 08:15 PM
  #15
hypertml
Novice (Level 1)
 
Join Date: Nov 2009
Posts: 7
iTrader: (0)
hypertml is an unknown quantity at this point
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.
hypertml is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote

Reply
KEEP TABS
SPONSORS
 
Boxedart
 
 


 
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
  
 
 
 



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 02:54 AM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.