Hi every body, i need two java codes. 1.Falling snow on the web page. 2.Don't allow right click on the web page to visitors. Please give me these codes and tell me how to use them.
use jquery for disable right click you can use this code snippet and snow fall you can use jquery pluggin try this link http://plugins.jquery.com/plugin-tags/falling-snow
if you want to put snow effect for whole site? add those jSnow jscript file to head section and put this code in script tag $(document).snowfall(); there are configuration option on the link posted
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>jSnow Example</title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script> <script type="text/javascript" src="jsnow.js"></script> <style type="text/css"> html,body {background:#000;position:relative;padding:0;margin:0;} #body {background:#333;margin:0 auto;width:700px;color:#ccc;padding:0 20px 10px 20px;} a {color:#ff0;} #example {color:#fff;} </style> <script type="text/javascript"> $(function() { $().jSnow(); }); </script> </head> <body style="height:800px;"> </body> </html>
no it's work 1. add jquery javascript file (use script tag head section) 2. then add snow/js file (use script tag head section)
you should follow basic javascript tutorial before add code in to your site. seems to be you don't have any idea how to add separate client script to web page i suggest you go to w3school learn about javascript otherwise no one can help with this problem all this code work perfect and i tested them on my own