Re: MAP & mouseover URLs for show and tell



Martyr2 wrote:
I told you, the example at omy2.htm does not have a "usemap" attribute
that matches the name of your <map name=""> tag. Those two have to
match for images maps to work. Secondly, you are missing right angle
brackets ">".

Add the attribute "usemap=#Usa52" to your Usa52.gif. Just doing that
will get your map to start working. Then close those opening div tags
with right angle brackets and your links will start working. The code
you have at omy2.htm is not valid html and your map image is not
anchored to your <map> tag at all (which is why the map doesn't work).

Now, after a second look I even found more problems. In your header
declaration, you need to put quotes after text/html and after the
equals in charset=.

Lastly, I broke out the functionality into a function like I had
mentioned before. I then attached each region of the map to the
function and pass the correct pad number. The result is that when you
hover over a state, it will highlight the corresponding pad number. I
also made each image a link to the corresponding gPad.htm.

Also I must mention that your pad regions of the map coordinates were
outside the bounds of your image, so they were useless. I gather you
are totally ripping off this code from another site which is a no no
because otherwise you would have known all these mistakes.

I am hoping this is solves everything. I have gone as far as posting
you a working demo at the following link... I went way overboard
helping with this. Consider yourself lucky. Next time save yourself
some trouble and word your problem better.

Working demo...

http://www.team-clanx.org/map/example.htm

WOW! It does both!
Not exactly the way i had in mind, but that is a rather minor detail i have fixed.
Even tho what i have works, it seems it needs fixing; http://validator.w3.org/check barfs with 5 errors.
This is what i have at present: http://oil4lessllc.com/StripperWells.htm
I *do* appreciate your great help, and wonder if i should add a comment in the code giving you some kind of credit, as you did a lot to get this going.
So, the question is: what kind of statement would you like to see; do not be shy - i will shamelessly quote what you tell me to say.
And if ther is some kind of donation that you would like to see go somewhere, state that also.
.



Relevant Pages

  • Re: MAP & mouseover URLs for show and tell
    ... will get your map to start working. ... with right angle brackets and your links will start working. ... it will highlight the corresponding pad number. ...
    (comp.lang.javascript)
  • Re: MAP & mouseover URLs for show and tell
    ... will get your map to start working. ... with right angle brackets and your links will start working. ... it will highlight the corresponding pad number. ...
    (comp.lang.javascript)
  • Re: evidences against subduction theory
    ... It's in the "From:" header field of yours articles, ... inside brackets. ... This is not a valid email address. ... Then you don't know what is a map. ...
    (sci.geo.geology)
  • simple map query
    ... i have been trying to write very simple statement using map, ... what it should do check the condition if it fails don't push it in to ... brackets, it does not work, ...
    (comp.lang.perl.misc)
  • Re: spiral sequnce indexing / less than operator
    ... object for a map where the key is 2d points, ... infinity-norm is a natural primary comparison. ... you need a way to differentiate between points on a square. ... calculate the angle from? ...
    (comp.graphics.algorithms)