FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Some easy html codes made by me for beginners.

 


Tabo
Scroll bar colour, change the #326400 to what ever colour you want the scrollbar to be

Copy and paste this code in the <head></head> of your html doccument



Code:
<style>
body{
scrollbar-base-color: #326400
}
</style>



stop people copying your work!



stop right clicking. copy and paste this to the <head></head> of your html document:


Code:

<script language="JAVASCRIPT">

<!--

var message="Please dont try to copy my sites content- You are not premitted to right-click.";





function click(e) {





if (document.all) {





if (event.button == 2) {

alert(message);

return false;

}

}





if (document.layers) {





if (e.which == 3) {

alert(message);

return false;

}

}

}





if (document.layers) {

document.captureEvents(Event.MOUSEDOWN);

}

document.onmousedown=click;

// -->

</script>



You can addapt this by changing the event "mouse down", to keypress[ and "right click" to "CTRL + C" or "Print screen"


also change the var message to what ever message you want to display when someone right clicks, the one i put in is:


Please dont try to copy my sites content- You are not premitted to right-click.";

-----------------------------------------------------------------------------



stop people dragging over text.



put this in the <head></head> part of your html document>



Code:
 
oncontextmenu="return false" onselectstart="return false"

ondragstart="return false">




---------------------------------------------------------------

Get your site on a search engin free!



insert this in the <head></head> part of your html document under <title></title> in the area with the other META tags



Code:


<META name="keywords" content="  Put search terms here, and seporate with a comma like this.">



where i put "Put search terms here, and seporate with a commer like this"
just put search terms in there and seporate with a comma



--------------------------------------------------------------------

stop caching (VIEWING OLD VERSIONS OF YOUR SITE)


Code:
<META cache control= "no catch">



only works with some html editors, i will try to make one that work with all.



scare people fromseing your html document (not sure if it works, as in people stop looking at it)



put this right in the top, under the <html> (or the tag of what ever language you are using) tag



Code:


<!--- this site, its pictures and code is protected by international copyright laws.

Unauthorised viewing is illegan and may result in civil penalties.

SYNTAX IP check chows that:

$result no_rights .

And you must close this document immediately.

Your IP address has now been logged our server. --->




thats it for now but keep looking back because when i am bored i will add more

i know this post is a bit messy but... what can you do?
megafx
that last ones quite mean
TeenZine
Ok I suggest priting http://werbach.com/barebones/barebones.html as it has been a veary nice refrance from me.
Ranfaroth
Tabo, you should really avoid posting such invalid or useless code for beginers : they've got other problems to solve, and don't need extra work with your buggy lines...

Example : scrollbar-base-color property doesn't exists.
All the Javascript you gave doesn't work in modern browser
The sentence “Unauthorised viewing is illegan and may result in civil penalties. ” is absolutly wrong and ridiculous...


(If this thread is a fake, well done, you got me )
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.