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

Sites Pertecentes a (o) CE

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 21 28 118 205 256 327 344 361 534 546 551 561 573 578 589 601 606 617 629 634 677 836
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>]]>
534 <![CDATA[<script language='JavaScript' type='text/javascript'> <!-- var prefix = 'm&#97;&#105;lt&#111;:'; var suffix = ''; var attribs = ''; var path = 'hr' + 'ef' + '='; var addy59653 = 'm&#97;gd&#97;.&#97;lm&#101;&#105;d&#97;' + '&#64;'; addy59653 = addy59653 + 's&#97;&#117;d&#101;' + '&#46;' + 'c&#101;' + '&#46;' + 'g&#111;v' + '&#46;' + 'br'; document.write( '<a ' + path + '\'' + prefix + addy59653 + suffix + '\'' + attribs + '>' ); document.write( addy59653 ); document.write( '<\/a>' ); //--> </script>]]>
546 <![CDATA[<script language='JavaScript' type='text/javascript'> <!-- document.write( '<span style=\'display: none;\'>' ); //--> </script>]]>
551 <![CDATA[<script language='JavaScript' type='text/javascript'> <!-- document.write( '</' ); document.write( 'span>' ); //--> </script>]]>
561 <![CDATA[<script language='JavaScript' type='text/javascript'> <!-- var prefix = 'm&#97;&#105;lt&#111;:'; var suffix = ''; var attribs = ''; var path = 'hr' + 'ef' + '='; var addy5446 = 'j&#111;&#101;l&#105;&#97;.r&#111;dr&#105;g&#117;&#101;s' + '&#64;'; addy5446 = addy5446 + 's&#97;&#117;d&#101;' + '&#46;' + 'c&#101;' + '&#46;' + 'g&#111;v' + '&#46;' + 'br'; document.write( '<a ' + path + '\'' + prefix + addy5446 + suffix + '\'' + attribs + '>' ); document.write( addy5446 ); document.write( '<\/a>' ); //--> </script>]]>
573 <![CDATA[<script language='JavaScript' type='text/javascript'> <!-- document.write( '<span style=\'display: none;\'>' ); //--> </script>]]>
578 <![CDATA[<script language='JavaScript' type='text/javascript'> <!-- document.write( '</' ); document.write( 'span>' ); //--> </script>]]>
589 <![CDATA[<script language='JavaScript' type='text/javascript'> <!-- var prefix = 'm&#97;&#105;lt&#111;:'; var suffix = ''; var attribs = ''; var path = 'hr' + 'ef' + '='; var addy29083 = 'm&#97;rc&#105;&#97;.m&#111;nt&#101;&#105;r&#111;' + '&#64;'; addy29083 = addy29083 + 's&#97;&#117;d&#101;' + '&#46;' + 'c&#101;' + '&#46;' + 'g&#111;v' + '&#46;' + 'br'; document.write( '<a ' + path + '\'' + prefix + addy29083 + suffix + '\'' + attribs + '>' ); document.write( addy29083 ); document.write( '<\/a>' ); //--> </script>]]>
601 <![CDATA[<script language='JavaScript' type='text/javascript'> <!-- document.write( '<span style=\'display: none;\'>' ); //--> </script>]]>
606 <![CDATA[<script language='JavaScript' type='text/javascript'> <!-- document.write( '</' ); document.write( 'span>' ); //--> </script>]]>
617 <![CDATA[<script language='JavaScript' type='text/javascript'> <!-- var prefix = 'm&#97;&#105;lt&#111;:'; var suffix = ''; var attribs = ''; var path = 'hr' + 'ef' + '='; var addy58249 = 'v&#97;ln&#105;z&#97;.s&#105;lv&#97;' + '&#64;'; addy58249 = addy58249 + 's&#97;&#117;d&#101;' + '&#46;' + 'c&#101;' + '&#46;' + 'g&#111;v' + '&#46;' + 'br'; document.write( '<a ' + path + '\'' + prefix + addy58249 + suffix + '\'' + attribs + '>' ); document.write( addy58249 ); document.write( '<\/a>' ); //--> </script>]]>
629 <![CDATA[<script language='JavaScript' type='text/javascript'> <!-- document.write( '<span style=\'display: none;\'>' ); //--> </script>]]>
634 <![CDATA[<script language='JavaScript' type='text/javascript'> <!-- document.write( '</' ); document.write( 'span>' ); //--> </script>]]>
677 <![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>]]>
836 <![CDATA[<script>randomBanner.change(1);</script>]]>