I am using the map from the following link:
http://jquery-ui-map.googlecode.com/svn/trunk/demos/jquery-google-maps-clustering.html
I changed the code like this :
 $(function() { 
            demo.add(function() {
                $('#map_canvas').gmap({'zoom': 2, 'disableDefaultUI':true}).bind('init', function(evt, map) {
                    var bounds = map.getBounds();
                    var mark1 = "hello";
                    var mark2 = "bye";
                    var temp = mark1;
                    var southWest = bounds.getSouthWest();
                    var northEast = bounds.getNorthEast();
                    var lngSpan = northEast.lng() - southWest.lng();
                    var latSpan = northEast.lat() - southWest.lat();
                    for (var i = 0; i < 1000; i++) {
                            if(i % 2===0)
                            {
                            temp=mark2;
                            }
                            else
                            {
                                  temp=mark1;
                            }
                        $(this).gmap('addMarker', { 'position': new google.maps.LatLng(southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random()) } ).click(function() {
                            $('#map_canvas').gmap('openInfoWindow', { content : temp }, this);
                        });
                    }
                    $(this).gmap('set', 'MarkerClusterer', new MarkerClusterer(map, $(this).gmap('get', 'markers')));
                });
            }).load();
        });
So as you can see I added the following lines
 var mark1 = "hello";
 var mark2 = "bye";
 var temp = mark1;
and also I added these lines:
 if(i % 2===0)
                            {
                            temp=mark2;
                            }
                            else
                            {
                                  temp=mark1;
                            }
Now I expect that I see some of the markers to show hello and some shows bye but it always show hello and never show bye. How can I set the content for some markers to bye and some to hellO?
 
     
    