ingilizce hava durumu lazım ve illere göre çekmem lazım
http://www.dmi.gov.tr/sunum/imgtahmi...=000&renkZ=fff bu adresten çekicem ama bi selectbox ile o ili değiştirmek lazım ISTANBUL kısmını nasıl değiştirebiliriz?
ingilizce hava durumu
1
●1.275
- 01-10-2012, 00:03:09Maalesef herşey PHP değildir. Lütfen PHP ile alakası olmayan konuları bu kategoriye AÇMAYINIZ.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script src="http://code.jquery.com/jquery-latest.js"></script> <script type="text/javascript"> $(function(){ $('#ilsec').change(function(){ var src = 'http://www.dmi.gov.tr/sunum/imgtahmingor-a1-g-en.aspx?merkez='+$(this).val()+'&gun=T&renkC=111&renkT=000&renkZ=fff'; $("#havaDurumu").html(src ? "<img src='" + src + "'>" : ""); }); }); </script> </head> <body> <select name="iller" id="ilsec"> <option value="ISTANBUL">İstanbul</option> <option value="ANKARA">Ankara</option> <option value="IZMIR">İzmir</option> </select> <div id="havaDurumu"></div> </body> </html>