• 03-06-2006, 12:03:58
    #1
    Üyeliği durduruldu
    veriler meteroloji den alınıyor. kodlarda oynama yaparak istediğiniz illeri ekleyebilirsiniz.

    <HTML><HEAD><TITLE>Hava Durumu</TITLE>
    
    <META http-equiv=Content-Type content="text/html; charset=windows-1254">
    
    <META content="MSHTML 6.00.2800.1458" name=GENERATOR></HEAD>
    
     
    
    <meta http-equiv="refresh" content="800">
    
     
    
    
    <script><!--
    
    //NN equalizer: document.all
    
    if (!document.all) {
    
    Node.prototype.__defineGetter__("all", function() {
    
    if (document.getElementsByTagName("*").length) {
    
    switch (this.nodeType) {
    
    case 9:
    
    return document.getElementsByTagName("*")
    
    break
    
    case 1:
    
    return this.getElementsByTagName("*")
    
    break
    
    }
    
    }
    
    return ""
    
    })
    
    Node.prototype.__defineSetter__("all", function() {})
    
    }
    
    function Photo(imgSrc,articleId,caption)
    
    {
    
    imgSrc=new String(imgSrc);
    
    imgSrc=imgSrc.slice(imgSrc.indexOf(">")+1);
    
    this.img=new Image();
    
    this.img.src=imgSrc;
    
    this.url=""+articleId;
    
    // cut the string to fit the box
    
    this.caption=caption;
    
    if (this.caption.length>60){
    
    this.caption=this.caption.slice(0,60);
    
    if (this.caption.charAt(this.caption.length-1)!=' '){
    
    this.caption=this.caption.slice(0, this.caption.lastIndexOf(' '))+"...";
    
    }
    
    }
    
    }
    
    Photo.prototype.setImageAndDest=function()
    
    {
    
    dest=this.url;
    
    document.images["photo"].src=this.img.src;
    
    }
    
    Photo.prototype.getAnchor=function()
    
    {
    
    return " ";
    
    }
    
    if((navigator.appName.indexOf("Netscape") != -1) && (parseInt(navigator.appVersion)<=4))
    
    {
    
    Photo.prototype.set=function()
    
    {
    
    this.setImageAndDest();
    
    display=window.document.layers["photobox"];
    
    temp=this.getAnchor();
    
    // display.src="javascript:echo();";
    
    }
    
    }
    
    else if(navigator.appName.indexOf("Microsoft") != -1 || (navigator.appName.indexOf("Netscape") != -1 && parseInt(navigator.appVersion)>4))
    
    {
    
    Photo.prototype.set=function()
    
    {
    
    this.setImageAndDest();
    
    document.all.locate.innerHTML="<a href='"+this.url+"' target='blank' style='font-family:Arial;color:black;text-decoration:none;' onMouseOver=this.style.textDecoration='underline' onMouseOut=this.style.textDecoration='none'>"+this.caption+"</a>";
    
    
    }
    
    }
    
    var dest="";
    
    function redirect()
    
    {
    
    window.open(dest);
    
    }
    
    
    var data=new Array();
    
    var current=0;
    
    function nextPhoto()
    
    {
    
    current=(current+1)%data.length;
    
    data[current].set();
    
    setTimeout("nextPhoto()",7500);
    
    } 
    
    function loadImages()
    
    {
    
    data[0]=new Photo('<WNPHOTODATE VERSION="2" TIMEZONE="UTC" ARTICLEID="31869460" TIMESTAMP="417f8dc0"> http://www.meteor.gov.tr/2003/iller/link/simdi/istanbul.aspx ',' '," ");
    
    data[1]=new Photo('<WNPHOTODATE VERSION="2" TIMEZONE="UTC" ARTICLEID="31869460" TIMESTAMP="417f8dc0"> http://www.meteor.gov.tr/2003/iller/link/simdi/ankara.aspx ',' ',"");
    
    data[2]=new Photo('<WNPHOTODATE VERSION="2" TIMEZONE="UTC" ARTICLEID="31869460" TIMESTAMP="417f8dc0"> http://www.meteor.gov.tr/2003/iller/link/simdi/izmir.aspx ',' ',"");
    
    data[3]=new Photo('<WNPHOTODATE VERSION="2" TIMEZONE="UTC" ARTICLEID="31869460" TIMESTAMP="417f8dc0"> http://www.meteor.gov.tr/2003/iller/link/simdi/adana.aspx ',' ',"");
    
    data[4]=new Photo('<WNPHOTODATE VERSION="2" TIMEZONE="UTC" ARTICLEID="31869460" TIMESTAMP="417f8dc0"> http://www.meteor.gov.tr/2003/iller/link/simdi/bursa.aspx ',' ',"");
    
    data[5]=new Photo('<WNPHOTODATE VERSION="2" TIMEZONE="UTC" ARTICLEID="31869460" TIMESTAMP="417f8dc0"> http://www.meteor.gov.tr/2003/iller/link/simdi/antalya.aspx ',' ',"");
    
    data[6]=new Photo('<WNPHOTODATE VERSION="2" TIMEZONE="UTC" ARTICLEID="31869460" TIMESTAMP="417f8dc0"> http://www.meteor.gov.tr/2003/iller/link/simdi/trabzon.aspx ',' ',"");
    
    data[7]=new Photo('<WNPHOTODATE VERSION="2" TIMEZONE="UTC" ARTICLEID="31869460" TIMESTAMP="417f8dc0"> http://www.meteor.gov.tr/2003/iller/link/simdi/diyarbakir.aspx ',' ',"");
    
     
    
    if((navigator.appName.indexOf("Netscape") != -1) && (parseInt(navigator.appVersion)<=4))
    
    {
    
    display=window.document.layers["photobox"];
    
    locater=window.document.layers["locate"];
    
    display.moveToAbsolute(locater.pageX,locater.pageY);
    
    }
    
    if (data.length>0)
    
    {
    
    data[0]=data[0];
    
    data[0].set();
    
    setTimeout("nextPhoto()",7500);
    
    }
    
    else
    
    {
    
    data[0]=new Photo("",0,"WN Network");
    
    data[0].url="";
    
    data[0].set();
    
    }
    
    }
    
    var temp=null;
    
    function echo()
    
    {
    
    return temp;
    
    }//
    
    //-->
    
    </script>
    
     
    
     
    
     
    
    <table cellpadding="0" cellspacing="0" bgcolor="#EFEFEF" align="left" width="160" style="border:0px solid #333333;" height="50"> <tr> 
    
     
    
     
    
     
    
    <td align="center" valign="top" height="40"><a href="javascript:redirect()"> <img name="photo" width="160" height="50" border="0"></a></td> </tr> <tr> <td align="center" valign="middle" height="50" style="vertical-align:middle;"><span id="locate" name="locate" style="position:relative; width:0; height: 0; font-size: 0px; padding:0px;vertical-align:middle;texst-align:justify;"></span></td> </tr> 
    
     
    
     
    
     
    
     
    
    </table> 
    
     
    
     
    
     
    
    <span id="photobox" style="position:absolute; width:160; height:50;"></span> <script><!--
    
    loadImages();
    
    //-->
    
    </script>
    
    <br> 
    
     
    
     
    
    </td> </tr>
  • 03-06-2006, 12:06:55
    #2
    eyvallah emeğine sağlık ama çalışmadı bu :s
  • 04-06-2006, 01:50:44
    #3
    Üyeliği durduruldu
    sanalhane adlı üyeden alıntı:
    eyvallah emeğine sağlık ama çalışmadı bu :s
    çalışması lazım ben kullanıyorum. havadurumu.php yap gönder dene bakalım.
  • 23-07-2006, 13:30:15
    #4
    Üyeliği durduruldu
    güzel bir kod teşekkürler
  • 05-08-2006, 21:52:51
    #5
    Misafir
    teşekkürler
  • 28-06-2009, 00:27:19
    #6
    tsk ederim arkadasım saolasın
  • 03-07-2009, 02:07:42
    #7
    Üyeliği durduruldu
    teşekkür ederim, emeğine sağlık