close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Mouseover

Thread began 7/20/2009 12:05 pm by ned378807 | Last modified 2/06/2010 8:51 am by sysop349733 | 3035 views | 8 replies |

ned378807

Mouseover

Hi,

Can anyone tell me how to get the info bubble appearing on mouseover ?

Cheers

Ned

Sign in to reply to this post

ned378807

worked it out I just changed the word click to mouseover in the following listeners

GEvent.addListener(marker_0, 'click', function() {
marker_0.openInfoWindowHtml(address_0.infowindowtext);
});

changed to

GEvent.addListener(marker_0, 'mouseover', function() {
marker_0.openInfoWindowHtml(address_0.infowindowtext);
});

Sign in to reply to this post

sysop349733

mouseout?

Thanks for this tip. I was looking for how to do this, but now that I've implemented it, it would work better on my map if the balloon disappeared on mouseout. Does anybody now how to make that happen?

Sign in to reply to this post

sysop349733

Disappear on mouseout

OK, I think I figured it out, although I'd welcome any corrections or improvements.

After the mouseover listener, I added a mouseout listener that calls the fucntion map.closeInfoWindow();

This works for me. I found three instances of the openInfoWindowHtml listener and added the map.closeInfoWindow listener after each. So my code, using dynamic addresses from a record set, ends up looking like this (in three places):

GEvent.addListener(marker_0_<?php echo $Recordset1_id; ?>, 'mouseover', function() {
marker_0_<?php echo $Recordset1_id; ?>.openInfoWindowHtml(address_0_<?php echo $Recordset1_id; ?>.infowindowtext);
});
GEvent.addListener(marker_0_<?php echo $Recordset1_id; ?>, 'mouseout', function() {
map.closeInfoWindow();
});

Sign in to reply to this post

millerb395386

This is a great thread! I was just about to ask the same question. It would be a great feature for the plug-in. Perhaps a tick-box to select either click or mouseover?

Cheers

Sign in to reply to this post

flhomesites394744

Hi,

What file is this located in?

Sign in to reply to this post

sysop349733

File

That will be in the wag_map file.

Sign in to reply to this post

flhomesites394744

Thanks for your help!

Would you know the coding for the mouse out with the addresses not in a recordset?

Sign in to reply to this post

sysop349733

helanyards

Not exactly as I have only used ProMaps with a recordset and never with static addresses, but this is where the address is represented as a variable:

<?php echo $Recordset1_id; ?>

So I would imagine that replacing that with the static address ID would be the way to do what you want.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...