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
11 hours 51 min ago
14 hours 18 min ago
1 day 2 hours ago
1 day 4 hours ago
1 day 9 hours ago
1 day 15 hours ago
2 days 47 min ago
2 days 2 hours ago
2 days 10 hours ago
2 days 12 hours ago