Hi,
Google search I found JAVA script for Blinking used that script to introduce the blinking effect and get some success in doing but its Blinking Outside Google map separate fish image.Not on Google map.Thing become clear in attachment.
Code:
<script type="text/javascript">
var blinkImg = function (imgname, s) {
clearTimeout(blinkImg['blinking' + imgname]);
var obj = document.images[imgname];
if (arguments[1] === 'blink') {
obj.style.visibility = !(blinkImg[s + imgname] = !blinkImg[s + imgname])? '' : 'hidden';
blinkImg['blinking' + imgname] = setTimeout(function(){blinkImg(imgname, s);}, 350);
}
else {
blinkImg['blink' + imgname] = false;
obj.style.visibility = '';
}
};
</script>
<body>
<img name="blinker1" src="img/imagename.gif"><br>
<input type="button" onclick="blinkImg('blinker1', 'blink');" value="Blink">
<input type="button" onclick="blinkImg('blinker1', 'stop');" value="Stop">
</body>
Below are PHP code
PHP Code:
if($fish_info)
{ ?>
var latlng = new GLatLng(northEast.lat()-latSpan * 0.3,
northEast.lng()-lngSpan * 0.1);
info = "<?php echo $fish_info; ?>" ;
file = "<?php echo 'img/imagename.gif'; ?>" ;
map.addOverlay(createMarker(latlng,file,info));
and in above code imagename.gif is fish image .And want this image will be blinking on google map.Right now its which is not happening on google map.Can somebody assist what change I supposed to do make it blinking on google map.Kindly help me out from this.Something missing from my side please let me know..
Recent comments
3 hours 24 min ago
4 hours 24 min ago
8 hours 11 min ago
9 hours 25 min ago
13 hours 1 min ago
20 hours 16 min ago
1 day 5 hours ago
1 day 6 hours ago
1 day 21 hours ago
2 days 9 min ago