Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>  
<meta http-equiv="content-type" content="text/html;charset=ISO-8859-1">
<title>Hava Durumu</title>  
 <script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
  google.load("feeds", "1");
function havabas(){
   var feed = new google.feeds.Feed("http://rss.weather.com/weather/rss/local/TUXX0014? cm_ven=LWO&cm_cat=rss&par=LWO_rss");
  feed.load(function(result) {
    if (!result.error) {
        var entry = result.feed.entries[0];
        var container = document.getElementById("weather");
        var c = entry.content;
      
        var regex = /<img.*?src="(.*?)".*?>.*?([0-9]+)/;
        var results = regex.exec(entry.content);
        var html = '<img src= ' + results[1] + ' alt="" /> ' + results[2]+' &deg;';
      container.innerHTML = html;
    }
  });
}
function initialize() {
havabas();
setInterval(function(){havabas()},2000);
}
google.setOnLoadCallback(initialize);
</script>
</head>
<body>
<div id="weather"></div>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers