Wind, temperature and precipitation forecasts

Wind, temperature and precipitation forecasts

Instructions on how to embed an iframe

Below are instructions on how to embed an iframe for wind, temperature and precipitation forecasts; the code for the iframe is listed. Web-masters should decide which area of the country will appear.

an example of an iframe

In order to embed this single frame (which gives both wind, temperature and precipitation forecasts), the following code is pasted into the html file where the frame should appear:

<script type="text/javascript" src="http://vedur.is/js/iframe.js"></script>
<script type="text/javascript"><!--
VI.ifrm.type = 'wel';
VI.ifrm.area = 101;
VI.ifrm.lang = 'en';
VI.ifrm.displayWeather();
//-->
</script>

To show other areas, a different digit must be entered after 'Vi.ifrm.area'. The area codes are as follows:

101 = whole country
111 = Reykjavík area
1 = Faxaflói
2 = Breiðafjörður
3 = West fjords
1301 = West fjords - Djúpið
4 = North West
5 = North East
6 = Eastern coastal areas
7 = East fjords
8 = South East
9 = South
10 = Central highlands

The width of the frame is 600 pixels; the hight of the frame is different for each area.

On the Modernus web measure

A web-page containing an IMO frame must NOT be registered for Coordinated Webmeasure at Modernus. Please note that this applies only to the relevant page and not to your whole web. Those web-sites that have joined Modernus's Coordinated Webmeasure can still show our frame if they simply remove the Modernus measuring code from the page which shows our frame.

According to Modernus, both the iframe-page and the main-page (which hosts the iframe-page) can include measuring code, given that NEITHER page is registered for Coordinated Webmeasure. Strict rules apply to the latter, where each visit should only be counted once.

Because our web, vedur.is, is registered for Coordinated Webmeasure, our frames are registered too. Therefore, web-pages showing our frames must not be registered. As stated above, web-sites that are registered can still show our frames by having the Modernus measuring code removed from the relevant page. Admittedly, this is slight inconvenience, but in most cases removing the Modernus measuring code from a single web-page is a simple task.

As for now, our frames are large and constitute the main topic of the relevant page. In such circumstances, each visit counts.

Later, the Icelandic Meteorological Office will offer small iframes which will not contain a Modernus measuring code and therefore not conflict in any way with Coordinated Webmeasure. Such small frames will be side-material to any page. A visit to that page will not count as a visit to the frame.







Other related web sites


This website is built with Eplica CMS