Tolga,
Timer causes many performance issues on IE especially you have a large html code, after running that for a long time, your IE may crush. We recommended using windows.timer and with the following methods, you can accomplish your requirements easily.
Here shows how to add markers and how to move the marker to the new position (screen coordinate).
var marker;
var OnMapCreated = function(map) {
var markers = new OpenLayers.Layer.Markers(“MarkersAddedByClientScript”);
map.addLayer(markers);
var size = new OpenLayers.Size(21, 25);
var offset = new OpenLayers.Pixel(-(size.w / 2), -size.h);
var icon = new OpenLayers.Icon(’/theme/default/img/marker.gif’, size, offset);
marker = new OpenLayers.Marker(new OpenLayers.LonLat(0, 0), icon);
markers.addMarker(marker);
}
var moveMarker = function() {
marker.moveTo(new OpenLayers.Pixel(100, 100));
}
The client side of the map control is based on OpenLayers, so for more reference please check the documentation here:
dev.openlayers.org/releases/OpenLayers-2.7/doc/apidocs/files/OpenLayers-js.html
Thanks,
Ben