DHTML Unit 3 programs
Unit 3 Programs 1.Test if jQuery is loaded. ANS) <!DOCTYPE html> <html> <head> <title>Unit 3 - prg 1</title> <script src = "jquery.js" > </script> </head> <body> <script> $(document).ready( function() { $("p").click(function() { alert("This alert box show using Jquery......!"); }); }); </script> <p>Click for alert box</p> </body> </html> 2.Scroll to the top of the page with jQuery. ANS) <html> <head> <title>Unit 3 - prg 2</title> <script src="jquery.js"></script> <script > $(document).ready(function() { $("#top").bind("click",function() { $("html,body").animate({scrollTop:0},"slow"); }); $("#bottom").bind("click",function() { $("html,body").animate({scrollTop:1000},"slow"); }...