National Grid | |
Keywords : National Grid, National Grid Transco, Utility, Northeast Utility, Gas, Natural Gas, Electric, Electricity, Transmission, Energy Transmission, Distribution, Delivery, Power Company, Regional Utility, International, Energy, CSR, Community, Economic Development, Energy Deliver | |
H2 tags : var feature = true; //Feature Switch ON/OFF - True/False 1 2 3 4 var timeout = 9000; //9 seconds var rdmSeries = new Array(4); var seriesNumber = -1; var imgNoCount; var seriesMax = 2; var stor = Math.floor(Math.random() * (seriesMax + 1)); var timer; // Calculate no of banner images function calBannerImageNo() { for (u=0; u 0) seriesNumber--; else seriesNumber = seriesMax; rotateBanner(seriesNumber); } //show specific Banner image function showBanner(numBanner) { rotateBanner(numBanner); clearTimeout(timer); timer = setTimeout("autorot()", timeout); } //Generate Random number series for randomly showing the banner images function generateRandomSeries() { var boolIsInSeries = false; var rnd = Math.floor(Math.random() * (seriesMax + 1)); if (feature == true) { rdmSeries[0] = 0; //Setting the Feature Carousel image - the First Div for (j = 1; j < (seriesMax + 1); j++) { rnd = Math.floor(Math.random() * (seriesMax + 1)); boolIsInSeries = false; for (x = 0; x < j; x++) { if (rdmSeries[x] == rnd) { boolIsInSeries = true; break; } } if (!boolIsInSeries) { rdmSeries[j] = rnd; } else j--; } } else { for (j = 0; j < (seriesMax + 1); j++) { rnd = Math.floor(Math.random() * (seriesMax + 1)); boolIsInSeries = false; for (x = 0; x < j; x++) { if (rdmSeries[x] == rnd) { boolIsInSeries = true; break; } } if (!boolIsInSeries) { rdmSeries[j] = rnd; } else j--; } } } //Call functions on load of the window calBannerImageNo(); generateRandomSeries(); autorot(); .Carousel { z-index:0; } .CarouselNumberAll{ position:absolute; float: right; z-index: 1; text-align:right; padding: 0 0 0 738px; } .CarouselNumberCurrent{ opacity: 0.7; text-align: center; width:25px; height:25px; line-height:25px; cursor:pointer; background-color:white; filter: alpha(opacity = 70); border-style:solid; border-bottom-color:#999; border-width:1px; color:gray; font-size:13px; font-weight:bold; } .CarouselNumber{ opacity: 0.5; text-align: center; width:25px; height:25px; line-height:25px; cursor:pointer; background-color:gray; filter: alpha(opacity = 50); border-style:solid; border-bottom-color:#999; border-width:1px; color:#fff; font-size:13px; font-weight:bold; } |
Last Update : | 03/January/2012 |
Google PR : | N/A |
Internal links : | 49 |
External links : | 21 |
Archive : | Check how did the site look in the past? |