テスト

テステス
1、2、1、2

これはテストです

てすとです。

SimpleGMap = function(id, lat, lng, zoom)
{
    if(!id) return; else this.id = id;
    (!!lat)?this.lat=lat:this.lat=40.598950;
    (!!lng)?this.lng=lng:this.lng=140.485032;
    (!!zoom)?this.zoom=zoom:this.zoom=10;
    //
    this.map;
    this.markers = [];
    //
    this.onLoad(this, "createMap");
}
SimpleGMap.prototype.addMarker = function(lat, lng, label)
{
    var obj = { lat:   lat,
                lng:   lng,
                label: label
                }
    this.markers.push(obj);
}
SimpleGMap.prototype.onLoad = function(scope, func)
{
    if(window.addEventListener) window.addEventListener('load', function(e){ scope[func](e); }, false);
    if(window.attachEvent) window.attachEvent('onload', function(e){ scope[func](e); });
}
SimpleGMap.prototype.createMap = function()
{
    if(GBrowserIsCompatible())
    {
        this.map = new GMap2(document.getElementById(this.id));
        this.map.addControl(new GSmallMapControl());
        this.map.setCenter(new GLatLng(this.lat, this.lng), this.zoom); 
    }
    //
    var len = this.markers.length;
    var bounds = new GLatLngBounds();
    for(var i=0; i<len; i++)
    {
        var m = this.markers[i];
        var marker = this.createMarker(m.lat, m.lng, m.label);
        this.map.addOverlay(marker);
        bounds.extend(new GLatLng(m.lat, m.lng));
    }
    if(len>1) this.map.setCenter(bounds.getCenter(), this.map.getBoundsZoomLevel(bounds));
}
SimpleGMap.prototype.createMarker = function(lat, lng, label)
{
    var marker = new GMarker(new GLatLng(lat, lng));
    GEvent.addListener(marker, "click", function() {
        marker.openInfoWindowHtml(label);
    });
    return marker;
}

マイクロソフト、ヤフーへの買収案撤回を発表

マイクロソフト<MSFT.O>は3日、ヤフー<YHOO.O>に対する買収提案を撤回すると発表した。マイクロソフトは買収案を1株33ドルに引き上げる用意があったが、ヤフー側がそれ以上の価格を求めたため交渉が決裂した。

Rush Hour

コメント (4)

2008.05.01 22:44

コメントのテスト

2008.05.01 22:48

コメントのテスト2

2008.05.01 22:55

テスト

2008.05.04 23:01

テスト

ポスト

 
認証

トラックバック (0)

  • http://www.ziyotoy.net/cgi/mt/mt-tb.cgi/2

ページの先頭へ