Hey i have this html for my website. I just used button.gif, buttonover.gif, etc. for examples. I want to make a button with images that when gone over with mouse and different image displays and when clicked another image.
Hey i have this html for my website. I just used button.gif, buttonover.gif, etc. for examples. I want to make a button with images that when gone over with mouse and different image displays and when clicked another image.
i made a mistake on the onclick="buttonover.gif" part. I meant to say onclick="buttonclick.gif". That's for the onmouseover too. Basically i have three images of the same button just different shades. I can make them anything and i can make them all the same size and interlaced and transparent. I need to get it to work in most browsers if possible. I need it in explorer. I also have photoshop elements 2.0. I just want a button i'll attach the images.
i made a mistake on the onclick="buttonover.gif" part. I meant to say onclick="buttonclick.gif". That's for the onmouseover too. Basically i have three images of the same button just different shades. I can make them anything and i can make them all the same size and interlaced and transparent. I need to get it to work in most browsers if possible. I need it in explorer. I also have photoshop elements 2.0. I just want a button i'll attach the images.
would this work?
<a href="http//www.example.htm"><img src="button99.png" onmouseover="overbutton.png" onclick="clickbutton.png"></a>
Wow. Okay you are doing this all wrong. First off you don't need javascript. If you were going to use javascript you aren't doing it right. You need to use this.src however I don't recommend javascript for this.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
<style type="text/css">
a.about { /* repeat the following giving each link a different class or id and changing the width and height */
height:34px;
background:url(button9943.gif) center;
width:100px;
display:block;
outline:0;
text-indent:-999em; /* use this to hide the text but make it show when using a screen reader */
}
a.about:hover {
background:url(button99233over.gif) center;
}
a.about:active, a.about:focus {
background:url(button99233push.gif) center;
}
</style>
</head>
<body>
<a href="http//www.mysite.html" class="about">About</a>
</body>
</html>
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
ok it worked almost when the mouse whent over the image it went to just a white area where the image was. Then when clicked it worked good. The link worked. I guess the only question i can think of would be should i of saved the image in corel draw as a style? I'm sure this will work though.
ok it worked almost when the mouse whent over the image it went to just a white area where the image was. Then when clicked it worked good. The link worked. I guess the only question i can think of would be should i of saved the image in corel draw as a style? I'm sure this will work though.
ok i got it to work the pixels where 36x100. one question though is there a way to get the image to reset to the first image, the one i have as button9943.gif, when someone navigates back to the page that the link originated from while they're visiting my site? Thank you. It works good. I really appreciate it.
ok i got it to work the pixels where 36x100. one question though is there a way to get the image to reset to the first image, the one i have as button9943.gif, when someone navigates back to the page that the link originated from while they're visiting my site? Thank you. It works good. I really appreciate it.
ok i got it to work the pixels where 36x100. one question though is there a way to get the image to reset to the first image, the one i have as button9943.gif, when someone navigates back to the page that the link originated from while they're visiting my site? Thank you. It works good. I really appreciate it.
ok my only other question is can i position that anywhere on the screen?