• English
  • Nederlands

User Tools

Site Tools


en:radars

Radars

Clicking on a small radar image

If you or a visitor to your website clicks on a small image of a radar, the large image is displayed on top of the page using javascript - lightbox.
It is not always necessary to have the full pages in the menu, they can be hidden.

Which scripts

type p= script description links using
Rain radars
dashboard startPage ./inc/rain3sourcesSmall.php
canada/rain_radar_canada_small.php
europe/rain-radar_europe_small.php
usa/rain_radar_america_small.php
2-3 kleine regen radars script
full pagep=44 ./inc/rain3sources.php
canada/rain_radar_canada.php
europe/rain-radar_europe.php
usa/rain_radar_america.php
2-3 regen radarbeelden in tabs script
warning sidecolom ./wsSideColom.php optional 1 small rain radar ./_my_scripts/set_links.php
Verschillende radars
dashboard startPage ./wsDashRadars.php small rain thunder clud radar./_my_scripts/set_links.php
Thunder radar
warning sidecolom ./wsSideColom.php optional 1 small thunder radar ./_my_scripts/set_links.php
full pagep=45 ./inc/thunderRadar.php Blitzortung thunder radar adapted to region ./_my_scripts/set_links.php
Cloud radar
full pagep=42 inc/cloudRadarv3.php 1 cloud radars with tabs
only 'europe' 'america' canada'
script

Radar URLs

set_links.php
<?php
$now            = time(); 
$utc_date       = gmdate ('Y_m_d_H_00',time() - 600);
switch ($SITE['region']) {
        case 'europe':
                # ------------------------------- thunder images ------
                $thunder        = 'http://images.blitzortung.org/Images/image_b_eu.png';        // europe
                #$thunder       = 'http://images.blitzortung.org/Images/image_b_uk.png'; 	//  UK
                #$thunder       = 'http://images.blitzortung.org/Images/image_b_fr.png'; 	//  south-western europe
                #$thunder       = 'http://images.blitzortung.org/Images/image_b_sk.png'; 	//  northern europe
                #$thunder       = 'http://images.blitzortung.org/Images/image_b_gr.png'; 	//  sout-east europe
                #$thunder       = 'http://images.blitzortung.org/Images/image_b_pl.png'; 	//  eastern europe
                #$thunder       = 'http://images.blitzortung.org/Images/image_b_de.png'; 	//  eastern europe
                # ------------------------------- rain images ----------
                $rain           = 'http://www.meteox.com/images.aspx?jaar=-3&amp;voor=&amp;soort=exp&amp;c=&amp;n=&amp;tijdid='.$now;
                # ------------------------------ cloud images ----------
                $clouds         = 'http://www.sat24.com/image2.ashx?country=eu&amp;type=loop&amp;sat=vis';
                break;
        case 'america':
                $thunder        = 'http://images.blitzortung.org/Images/image_b_us.png';        // North America
                #$thunder       = 'http://images.blitzortung.org/Images/image_b_tx.png';       // texas
                #$thunder       = 'http://images.blitzortung.org/Images/image_b_ny.png';       // new york
                #$thunder       = 'http://images.blitzortung.org/Images/image_b_ca.png';       // california
                #$thunder       = 'http://images.blitzortung.org/Images/image_b_fl.png';       // florida
                # ------------------------------- rain images ----------------------------------
                $rain           = 'http://icons.wunderground.com/data/640x480/'.$SITE['WUregion'].'_rd_anim.gif';
                # ------------------------------ cloud images ---------
                $clouds         = 'http://www.ssd.noaa.gov/goes/comp/nhem/rb.jpg?tijdid='.$now;
                break;
        case 'canada':
                $thunder        = 'http://images.blitzortung.org/Images/image_b_us.png';        // North America
                $rain           = 'http://weather.gc.ca/data/radar/detailed/temp_image/COMPOSITE_NAT/COMPOSITE_NAT_PRECIP_RAIN_'.$utc_date.'.GIF';
                $clouds         = 'http://www.ssd.noaa.gov/goes/comp/nhem/rb.jpg?time='.$now;
                break;
        default:
                $thunder        = 'http://images.blitzortung.org/Images/image_b_oc.png';        // europe
                $rain           = 'http://www.bom.gov.au/radar/IDR00004.jpg';
                $clouds         = 'http://www.sat24.com/image2.ashx?country=eu&amp;type=loop&amp;sat=vis';
 }
$ws['img_lightning']    = $thunder;
$ws['img_rain']         = $rain;
$ws['img_clouds']       = $clouds;
en/radars.txt · Last modified: 2015/09/17 14:46 by wvdkuil