Demo entry 5958974

js

   

Submitted by anonymous on Sep 09, 2016 at 16:30
Language: JavaScript. Code size: 1.1 kB.

	<script>
		$(document).ready(function (){


			$(window).(2000, function (){
				alert("Slid da página para 2 segundos");
			});

			$("#editor").focus();

			//alert("jQuery em ação.");
			$("#btnCliq").click(function (){
				//var texto = $("#editor").val();
				//alert("ola");
				$(this).css({'background': 'aqua', 'color': 'gray', 'width':'150px', 'height':'50px', 'border':'none'});
			}).mouseenter(function (){
				$(this).css({
					'background': '#FF8C00',
					'color': 'white', 
					'width':'150px', 
					'height':'50px', 
					'border':'none',
					'outline': '10px',
					'transition': '1.2s'
				});
			}).mouseleave(function (){
				$(this).css({
					'background': '#FF8C00',
					'color': 'black', 
					'width':'150px', 
					'height':'50px', 
					'border':'none',					
					'transition': '1.2s'
				});
			}).dblclick(function (){
				alert('duplo click');
			});


			$(window).on("keydown", function(e){
				alert("cliquei em: " + String.fromCharCode(e.keyCode));
			});
		});
	</script>

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).