Thanks Andrew
Sorry about posting this in the API section, I wasn't thinking.
Thank you for pointing out the problem, much appreciated.
Kind regards
Gavin
On Nov 26, 10:29 am, "warden [Andrew Leach - Maps API Guru]"
<[EMAIL PROTECTED]> wrote:
> On Nov 26, 10:20 am, gavraz <[EMAIL PROTECTED]> wrote:
>
> > Hi
> > I am trying to remove the underline from the image alone on the
> > sidebar when you hover over a link. I would like the underline to
> > remain for the text part of the link though.
>
> What has this to do with the API? It's not about getting the map to do
> what you want.
>
> > var sidebarEntry=createSidebarEntry(marker,'<img src="/images/blue-
> > dot.png" width="11px" />'+name);
> > function createSidebarEntry(marker,name){var div=document.createElement
> > ('div');
> > var html=name;div.innerHTML=html;
> > div.style.cursor='pointer';div.style.marginBottom='5px';
> > GEvent.addDomListener(div,'click',function(){GEvent.trigger
> > (marker,'click')});
> > GEvent.addDomListener(div,'mouseover',function()
> > {div.style.Color='#539BE2';
> > div.style.textDecoration='underline';
> > div.style.backgroundColor='#ffffff'});
>
> You are underlining the entire div. You need to isolate the image from
> the text; the easiest way is to pass the image src to your
> createSidebarEntry function separately from "name". You can then
> create separate elements with separate ids and separate style
> handling. But again, this is simple HTML/CSS; it's not about getting
> the map to behave.
>
> Andrew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---