Hi,
1. yes, at least the function function add_custom_effects() shall be in “Effects (JavaScript)”, it could be also empty:
add_custom_effects(){
}
2. Which of “Save” buttons you mean? On which screen?
3. you can use the add_custom_effects function to replace the marker on hover. This code would do this:
function add_custom_effects(){
add_custom_effects_map(<YOUR MAP ID>);
}
function add_custom_effects_map(mapid){
$jq('#mapoverlay[mapid="'+mapid+'"] .ctrl').on('mouseenter', function(event){
stopAndClearQueue($jq(this));
$jq(this).attr("markerentered", "1");
$jq(this).attr("src", "ON HOVER IMAGE URL");});
$jq('#mapoverlay[mapid="'+mapid+'"] .ctrl').on('mouseleave', function(event){
stopAndClearQueue($jq(this));
$jq(this).attr("markerentered", "0");
$jq(this).attr("src", "NORMAL IMAGE URL");});
}
Regards
Alexander
Hey,
1. got it
2. I meant the “Save CSS and effects” button in settings screen.
3. Results in Uncaught ReferenceError: stopAndClearQueue is not defined
Thnx.
HI,
2. I could not reproduce this…
3. sorry, another function from the default effects script (which are removed in your installation) is missing:
function stopAndClearQueue(el){
$jq(el).clearQueue();
$jq(el).stop();
var mrk = $jq(el);
$jq(‘.’+mrk.attr(‘id’)+’_mo’).clearQueue();
$jq(‘.’+mrk.attr(‘id’)+’_mo’).stop();
}
Regards
Alexander
In the new version 1.0:
– the function add_custom_effects() is called in safe way which doesn’t produce an exception if the function is missing
– the “Save” button problem appearing on big monitors is solved.