Logo CEWEB.br Logo NIC.br Logo CGI.br
Home Sobre o projeto

Sites Pertecentes a (o) CE

Endereço Nota Erros Avisos

www.hgwa.ce.gov.br

73.16 23 61
Recomendações Avaliadas
2.2 Garantir que os objetos programáveis sejam acessíveis.

Recomendações

Número Descrição Quantidade Linhas Código Fonte
2.2.6 Presença do elemento SCRIPT sem o elemento NOSCRIPT 11 28 118 205 256 327 344 361 395 410 569 648
28 <![CDATA[<script> var supersleight = function() { var root = false; var applyPositioning = true; // Path to a transparent GIF image var shim = 'js/x.gif'; // RegExp to match above GIF image name var shim_pattern = /x\.gif$/i; var fnLoadPngs = function() { if (root) { root = document.getElementById(root); }else{ root = document; } for (var i = root.all.length - 1, obj = null; (obj = root.all[i]); i--) { // background pngs if (obj.currentStyle.backgroundImage.match(/\.png/i) !== null) { bg_fnFixPng(obj); } // image elements if (obj.tagName=='IMG' && obj.src.match(/\.png$/i) !== null){ el_fnFixPng(obj); } // apply position to 'active' elements if (applyPositioning && (obj.tagName=='A' || obj.tagName=='INPUT') && obj.style.position === ''){ obj.style.position = 'relative'; } } }; var bg_fnFixPng = function(obj) { var mode = 'scale'; var bg = obj.currentStyle.backgroundImage; var src = bg.substring(5,bg.length-2); if (obj.currentStyle.backgroundRepeat == 'no-repeat') { mode = 'crop'; } obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='" + mode + "')"; obj.style.backgroundImage = 'url('+shim+')'; }; var el_fnFixPng = function(img) { var src = img.src; img.style.width = img.width + "px"; img.style.height = img.height + "px"; img.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='scale')"; img.src = shim; }; var addLoadEvent = function(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { if (oldonload) { oldonload(); } func(); }; } }; return { init: function() { addLoadEvent(fnLoadPngs); }, limitTo: function(el) { root = el; }, run: function() { fnLoadPngs(); } }; }(); // limit to part of the page ... pass an ID to limitTo: // supersleight.limitTo('header'); supersleight.init(); </script>]]>
118 <![CDATA[<script> // CÓDIGO DO REDIRECIONAMENTO // Variáveis de configuração //var GOVCE_SECRETARIA = "HGWA"; // TAMANHO MÁXIMO: 15 caracteres //var GOVCE_ENDERECO = "www.ceara.gov.br"; /// FIXO - NÃO ALTERAR // Verifica se o remetente é o Portal do Governo //var sRemetente = document.referrer; //if (sRemetente.indexOf(GOVCE_ENDERECO) > 0) { //GerarCookie("GOVCERedir", "1", 1); } //else { // Não veio do Governo. Tenta obter Cookie de configuracao var sVerificaRedir = LerCookie("GOVCERedir"); if (sVerificaRedir != "1") { GerarCookie("GOVCERedir", "1", 1); // Cria endereço com todas as informações necessárias (servidor, url, e possíveis variáveis query) var sUrlGovCe = location.href; // Redireciona para o portal do governo, passando o endereço montado para possível retorno location.href = "http://" + GOVCE_ENDERECO + "?secretaria=" + GOVCE_SECRETARIA + "&endereco=" + sUrlGovCe; } } // Função para criar o cookie. // Para que o cookie seja destruído quando o browser for fechado, basta passar 0 no parametro lngDias. function GerarCookie(strCookie, strValor, lngDias) { var dtmData = new Date(); if(lngDias) { dtmData.setTime(dtmData.getTime() + (lngDias * 10 * 60 * 60 * 1000)); var strExpires = "; expires=" + dtmData.toGMTString(); } else { var strExpires = ""; } document.cookie = strCookie + "=" + strValor + strExpires + "; path=/"; } // Função para ler o cookie. function LerCookie(strCookie) { var strNomeIgual = strCookie + "="; var arrCookies = document.cookie.split(';'); for(var i = 0; i < arrCookies.length; i++) { var strValorCookie = arrCookies[i]; while(strValorCookie.charAt(0) == ' ') { strValorCookie = strValorCookie.substring(1, strValorCookie.length); } if(strValorCookie.indexOf(strNomeIgual) == 0) { return strValorCookie.substring(strNomeIgual.length, strValorCookie.length); } } return null; } </script>]]>
205 <![CDATA[<script type="text/javascript" language="JavaScript"> var now = new Date(); mydate = new Date(); myday = mydate.getDay(); mymonth = mydate.getMonth(); myweekday= mydate.getDate(); weekday= myweekday; myyear= mydate.getYear(); year = myyear; if (myweekday<10) myweekday = "0"+myweekday.toString(); if(myday == 0) day = " Domingo, " else if(myday == 1)day = " Segunda-Feira" else if(myday == 2) day = " Terça-Feira" else if(myday == 3) day = " Quarta-Feira" else if(myday == 4)day = " Quinta-Feira" else if(myday == 5) day = " Sexta-Feira" else if(myday == 6) day = " Sábado" if(mymonth == 0) month = "/01/" else if(mymonth ==1) month = "/02/" else if(mymonth ==2) month = "/03/" else if(mymonth ==3) month = "/04/" else if(mymonth ==4) month = "/05/" else if(mymonth ==5) month = "/06/" else if(mymonth ==6) month = "/07/" else if(mymonth ==7) month = "/08/" else if(mymonth ==8) month = "/09/" else if(mymonth ==9) month = "/10/" else if(mymonth ==10) month = "/11/" else if(mymonth ==11) month = "/12/" if (navigator.appName.indexOf('Microsoft') != -1) document.write(myweekday+ month + year + ","+ day); else { year=year+1900; document.write(myweekday+ month + year + ","+ day); } </script>]]>
256 <![CDATA[<script> function goMenu(){ var valor = document.getElementById('menuTopo').options[ document.getElementById('menuTopo').selectedIndex ].value; if( valor != '' ){ document.location.href = valor; } } </script>]]>
327 <![CDATA[<script type="text/javascript"> function gothere(){ var link = document.form_wlcombo_plus.select_wlcombo_plus.options[document.form_wlcombo_plus.select_wlcombo_plus.selectedIndex].value; if ((link != "") && (link.search(/http:/)!=-1)) { window.open(link,"mywindow"); } } </script>]]>
344 <![CDATA[<script> function goMenuCombo(param_menuID){ var valor = document.getElementById(param_menuID).options[ document.getElementById(param_menuID).selectedIndex ].value; if( valor != '' ){ document.location.href = valor; } } </script>]]>
361 <![CDATA[<script> function goMenuCombo(param_menuID){ var valor = document.getElementById(param_menuID).options[ document.getElementById(param_menuID).selectedIndex ].value; if( valor != '' ){ document.location.href = valor; } } </script>]]>
395 <![CDATA[<script type="text/javascript"> gk_news_image_conf = {};actual_animation = {};actual_animation_p = {};actual_slide = {};gk_news_image_conf["gk_news_image-mod"] = [1000,7000,1,0,0,0,0,0,"#FFFFFF","#FFFFFF",0.45];actual_animation["gk_news_image-mod"] = false;actual_animation_p["gk_news_image-mod"] = false;actual_slide["gk_news_image-mod"] = 0;</script>]]>
410 <![CDATA[<script language="javascript"> function show(whichOne,vmax){ var num = new Number(whichOne); for(var nLink = vmax ; nLink > 0 ; nLink--){ if( document.getElementById('link'+nLink) ){ document.getElementById('link'+nLink).className = ''; } if( document.getElementById('div'+nLink) ){ document.getElementById('div'+nLink).style.opacity = 0; document.getElementById('div'+nLink).style.display = 'none'; } } if(vmax == 1){ document.getElementById('div1').style.display = ''; document.getElementById('div1').style.opacity = ''; return false; } if(whichOne == vmax){ tDiv = "div"+vmax; vDiv = "div1"; } else{ tDiv = "div" + num; vDiv = "div" + (num + 1); } if(whichOne == 1){ if( document.getElementById('link'+vmax) ){ document.getElementById('link'+vmax).className = ''; } document.getElementById('link1').className = 'activeSlide'; } else{ document.getElementById('link'+ (num - 1)).className = ''; document.getElementById('link'+whichOne).className = 'activeSlide'; } if($(tDiv).fx){$(tDiv).fx.stop();} if($(vDiv).fx){$(vDiv).fx.stop();} $(tDiv).fx = $(tDiv).effect("opacity", {duration: 500}).start(0); $(vDiv).fx = $(vDiv).effect("opacity", {duration: 500}).start(1); $(tDiv).style.display = 'none'; $(vDiv).style.display = ''; } var randomBanner = { cont: 0, timeOut: null, change: function(num){ var that = this; if( this.cont == 5){ this.cont = 0; } if( num > 0 && typeof num != 'undefined' ){ this.cont = num; } else{ this.cont++; } show(this.cont,5) this.timeOut = setTimeout( function(){ that.change(); }, 3500 ); }, changeCont: function(num){ var that = this; this.cont = num; }, stopLoop: function(){ clearTimeout( this.timeOut ); } } function changeBanner(num2){ num2 = parseInt(num2); randomBanner.stopLoop(); show(num2,5); if( num2 == 5){ num2 = 1; } else{ num2 = num2 + 1 ; } setTimeout( function(){ randomBanner.change( parseInt(num2) ); }, 5500 ); } function sleep(tempo){ var start = new Date().getTime(); for(var i = 0; i < 1e7 ; i++){ if( (new Date().getTime() - start) > tempo ){ break; } } } </script>]]>
569 <![CDATA[<script>randomBanner.change(1);</script>]]>
648 <![CDATA[<script> </script>]]>