HTML/Javascript code/CSS
-
I would like to know the precise code for creating "hot-spot" hyperlinks on specific parts of a .jpg image, specifically a banner situation with "hot-spot" links on specific coordinates of the banner corresponding to meaningful text, for site navigation purposes. The following link is to a sample page I just created which contains an instance of the banner image I am working with. http://hometown.aol.com/rchesler/myhomepage/index.html All I want is the code that does the following: When the mouse is placed over the text part of the image which reads, "Donate," "Contacts," What's New" and "Site Map," I would like the text to change color to indicate it has the focus, and to include an alt tag (if possible, although this isn't absolutely necessary) that says the name of it, and of course for it to be an active hyperlink, so that when clicked it goes to another page of the site (for now, just make the hyperlinks go to any site you want, just as long as they are funcitonal). A working sample of what I am after is at the following link, from Amgen, Inc.'s main page: http://www.amgen.com/ You can see their "buttons" (upper right of page--right upper corner of banner image) which are not really buttons (as with VB Script) but just coordinates. The code involved will be something like this: <td align="right" valign="top"><img src="/imgs/nav_images/top_navHome.gif" width="466" height="59" border="0" usemap="#TopNav"> <map name="TopNav"> <area shape="rect" coords="245,14,365,31" href="/directory.html"> <area shape="rect" coords="245,36,365,54" href="/contactInfo.html"> But rather than separate out what I need from all their existing code, I am paying for someone to create the "hot-spots" specifically for just my banner image, so that I may more fully understand how it works and incorporate it to my site. Note, I'm only intersted in working code specifically for what I've asked, not in links to tutorials or references. I will take the code posted in the Answer, paste it into Notepad, refresh my page and if it doesn't work I'll reject the answer. In other words, if you KNOW exactly how to do it from having done it many times before, then please answer with code, otherwise, hold off. Thanks!
-
Answer:
Hi there Here you go <IMG SRC="linksbanner5.jpg" USEMAP="#linksbanner" ALT="Menu" BORDER=0> <MAP NAME="linksbanner"> <area shape="rect" coords="127,35,192,51" href="/donate.html"> <area shape="rect" coords="204,35,259,51" href="/contactus.html"> <area shape="rect" coords="143,54,212,69" href="/whatsnew.html"> <area shape="rect" coords="229,54,287,69" href="/sitemap.html"> </MAP> You can't use an ALT name in this case, as the ALT applies to the whole jpg picture. It could be done with some fancy javascript, but this works just fine as it is. It's pretty self explanatory, but any questions, let me know Willie
omniscientbeing-ga at Google Answers Visit the source
Related Q & A:
- How to encrypt JavaScript code?Best solution by Stack Overflow
- How can I add a HTML code to My Yahoo homepage?Best solution by Yahoo! Answers
- What is the HTML code to make your web more accurate?Best solution by Yahoo! Answers
- How do I put an html code in a scroll box?Best solution by html.am
- What's the HTML code for a scroll box on top of a picture?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.