var randomnumber = Math.floor(Math.random() * 1000) ; document.writeln(''); var iframe = document.getElementById("hpweather-iframe-" + randomnumber); doc = iframe.contentWindow.document; doc.open(); doc.writeln('
'); doc.writeln(''); doc.writeln('Fleet Bay/Solway Firth | ');
doc.writeln('|
| Weather: | '); doc.writeln('--- | '); doc.writeln('
| Windspeed: | '); doc.writeln('8 Knots | '); doc.writeln('
| Wind Direction: | '); doc.writeln(''); doc.writeln(' |
| Temperature: | '); doc.writeln('7°C | '); doc.writeln('
| Pressure: | '); doc.writeln('1016 hpa | '); doc.writeln('
| Windreport | '); doc.writeln('Forecast | '); doc.writeln('
| © Windfinder.com | '); doc.writeln('|