:: codes :: Html ::
::Basic html codes
You can cut and paste these to your web editor or text file.
· Blank Page
<html>
<head>
<title>Your Sites Title</title>
</head>
<body>
Your page content goes here.
</body>
</html>
· Window Status
<script language="javascript">
window.defaultStatus="your text here"</script>
· Show date
<script language="JavaScript">
var showDateShort = 1;
var showDate= 2;
var showDateTime= 3;
var showTime= 4;
function ShowDateTime(dateStyle)
{
var today = new Date();
var dStr = "";
switch (dateStyle)
{
case showDateShort:
dStr = today.toDateString();
break;
case showDateTime:
dStr = today.toLocaleString();
break;
case showTime:
dStr = today.toLocaleTimeString();
break;
case showDate:
default:
dStr = today.toLocaleDateString();
break;
}
document.write(dStr);
}
</script>
<script language="JavaScript">ShowDateTime(showDateShort)</script>
· Description of link
<a href="http://YOUR SITE.com/" title="description here">LINK NAME</a>
· Background Color
<body bgcolor="#000000">
· Line Break
<br>
· Bold Text
<b>text here</b>
· Italic text
<i>text here</i>
· Underlined text
<u>text here</u>
· Make a link
<a href="http://www.yoursite.com">Website Name here</a>
· Insert Image
<img src="path_to_image.gif" border="0">
· Make image a link
<a href="http://www.yoursite.com"><img src="path_to_image.gif"
border=0></a>
· Title for page
<!-- shows in browser title bar -->
<title>Put title here</title>
·Font Type
<font face="Verdana">
·Font size
<font size="1">
·No right click with a popup message
<!-- this goes in the head of the document -->
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
// right mouseblock LoonYProgS
var message="Your message here"
function click(e) { //3.0
if (document.all) {
if (event.button == 2 || event.button == 3 || event.button == 6 ||
event.button == 7) {
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>



