Jump to content

Recommended Posts

Posted

Ola pessoal eu tenho um botao e quando clica abre um pop up dai essa janela pop up aparece barra de rolagem ai eu coloquei pra o scoll= no pra desativar a barra de rolagem , dai no explorer ele desativa normal mais no chome ele nao desativa e continua mostrando a barra , alguem poide me dizer o que fazer? segue o codigo...

<script type="text/javascript">
timer = null;
ventana = null;
n = 60;
aviso = false;
function fnPopup(){
ventana = window.open('http://www.minhaminifazenda.com.br/2013/03/facebook-como-eliminar-notificacao-de.html' 'popup', 'scroll==no,resizable=no1,resizable=1,width=1040,height=300,left=150,top=150,location=no');
$('input[name=btnDescargar]').val('60');
$('input[name=btnDescargar]').attr('disabled','disabled');
timer = setInterval("empieza_contar()", 1000);
}
function empieza_contar(){
if(ventana != null){
	if(ventana.closed){
		alert('*ERRO* Você precisa Clicar em uma propaganda para ativar o download');
		clearInterval(timer); n = 60;
		$('input[name=btnDescargar]').val('Ative o download!');
		$('input[name=btnDescargar]').removeAttr('disabled');
		return;
	}
	if(ventana.frames.length == 3){
		return false;
	}else{
		 n = n - 1;
		 $('input[name=btnDescargar]').val(n);
		if(n == 0){
			clearInterval(timer);
			$('input[name=btnDescargar]').remove();
			$('input[name=btnRestablecer]').before('<input type="submit" value="Download"/>');
	   }
	}
}
}
</script>

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.