Making your website stand out has a lot to do with the codes that you are using at the backend. Here are some that can help you!
1. Your website becomes the user's homepage
JavaScript Free Code
2. A message box pops up when the page opens
JavaScript Free Code
3. Ban right click on the website
var message="Function Disabled!";
///////////////////////////////////
function clickIE() {if (document.all) {alert(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {alert(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
// -->
JavaScript Free Code
4. Colourful scrollbar
JavaScript Free Code
5. Add a search engine to your page
JavaScript can be used to add some snazzy features to your website. From disallowing the user from right clicking on your page, to adding hearts that follow the mouse cursor, you can do it all. Here are the codes for the same. |
1. Your website becomes the user's homepage
JavaScript Free Code
2. A message box pops up when the page opens
JavaScript Free Code
3. Ban right click on the website
var message="Function Disabled!";
///////////////////////////////////
function clickIE() {if (document.all) {alert(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {alert(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
// -->
JavaScript Free Code
4. Colourful scrollbar
JavaScript Free Code
5. Add a search engine to your page