Image Map
Author |
Message |
Flikerator
|
Posted: Mon Apr 18, 2005 3:18 pm Post subject: Image Map |
|
|
Its a calandar and when you click on the calandar cell it provides more information, but instead of making a new webpage I just want an "Alert on Click" to open up.
code: |
<html>
<head>
<title>CalanDAR</title>
</head>
<body>
<img src="Calandar - May 2005.bmp" usemap="#mymap" width="775" height="614" alt="your description" border="0">
<map name="mymap">
<area shape="rect" coords="0,0,55,55" href="frames.shtml" alt="1">
<area shape="rect" coords="0,0,0,0" href="tables.shtml" alt="2">
<area shape="rect" coords="0,0,0,0" href="postcards.shtml" alt="3">
</map>
</body>
</html>
|
Using the code something like this;
code: | <form ACTION=URI><input type="button" value="click here" onClick='alert("Your message here")'></form> |
To replace;
code: | href="frames.shtml" |
Is there anyway to do that? |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
Blade
|
Posted: Mon Apr 18, 2005 3:58 pm Post subject: (No subject) |
|
|
you could make a javascript function to take care of it..
HTML: | <html>
<head>
<title>CalanDAR </title>
<script language="JavaScript">
<!--
function clicking(){
alert("Your Stuff"); //although i think you're looking for prompt()
}|
-->
</script>
</head>
<body>
<img src="Calandar - May 2005.bmp" usemap="#mymap" width="775" height="614" alt="your description" border="0">
<map name="mymap">
<area shape="rect" coords="0,0,55,55" onClick="clicking();" alt="1">
<area shape="rect" coords="0,0,0,0" href="tables.shtml" alt="2">
<area shape="rect" coords="0,0,0,0" href="postcards.shtml" alt="3">
</map>
</body>
</html> |
basically make javascript functions, then change the href to onClick and call the function... and i'm not totally sure if i made the function right because its been quite a while since i've done any javascripting, but if i screwed up i'm sure someone will point it out. |
|
|
|
|
 |
Flikerator
|
Posted: Tue Apr 19, 2005 3:42 pm Post subject: (No subject) |
|
|
I would but I don't know javascript, im just helping out a friend ^^; |
|
|
|
|
 |
Blade
|
Posted: Tue Apr 19, 2005 8:54 pm Post subject: (No subject) |
|
|
well i pretty much wrote the function in the <head></head> for you, according to what you explained you were trying to do |
|
|
|
|
 |
|
|