|
Posted by Robert Baer on April 13, 2006, 6:19 am
Please log in for more thread options
VK wrote:
> OP:
> <full problem description>
>
>> Would someone be kind as to lend some help?
>
> <full HTML code posted>
>
> Mr. Korpela:
>
>>Please specify what you mean by "works" and its opposite,
>>and please provide URLs for the two versions you have created.
>
>
> <snip>
>
> OP:
>
>>Here are the URLs that show only one (MAP or onMouseOver) works,
>>and not both.
>
>
> Mr.Korpela:
>
>>Well, after your pointless babbling and even insults, I'm not interested
>>any more. Hope this helps. Have a nice day. Better luck^H^H^H^Hbehavior
>>next time.
>
>
> Mr. Korpela: my sorry duty is to inform you that you are currently
> acting like a complete asshole - without any asterix.
>
> To OP: in the posted links one doesn't have usemap, another one doesn't
> have rollover block: thusly the difference in the behavior is
> completely sustained by the code.
** Due completely to my abysimal ignorance; do not have the faintest
idea as to what a "rollover block" is or means or what it would look
like or act.
>
> The original code posted here does work - I checked it with random
> images on my side. As a side note: I would suggest to specify widht and
> height for your div's. Your presumption that they always will have the
> minimum needed size to accomodate the content is reasonnable but not
> always true.
** So the size of a given image or text should always be specified in a DIV?
That leads me to the question about placement of that "object" -
should that also always be given?
>
> Your code must be not working for some subtle typo you've made while
> copying and pasting and not represented here.
** Possible; i have done a Copy of some code from one validated HTML
prog i made that worked, and did a Paste into another validated HTML
prog i made that worked; theresult made the validator barf all over the
place.
The first time i was pissed and tossed the results; the second time i
carefully by hand over-typed the same characters - including <CR> and
<LF> being forced by hand.
No visible difference, but the result worked.
Ther must be a way to find out what squirlies are there.
>
> Here the minimum proof of concept (hover the yellow div, then try
> California):
>
> <html>
> <head>
> <title>Untitled Document</title>
> <meta http-equiv="Content-Type"
> content="text/html; charset=iso-8859-1">
> </head>
>
> <body>
> <img src="Usa52.gif" width="760" height="431" border="0"
> usemap="#map1">
> <map name="map1">
> <area shape="rect" coords="139,171,216,303"
> href="http://www.google.com">
> </map>
> <div onmouseover="this.innerHTML='foo';"
> onmouseout="this.innerHTML='bar';" id="Layer1"
> style="position:absolute; width:170px; height:78px;
> background-color:#FFFF00; z-index:1; left: 111px; top: 118px"></div>
> </body>
> </html>
>
Will try that; all my experimental code with images are on another
drive and OS.
Thanks.
|