|



Building the BODY






Let's jump right into building what you will see on your site-- the BODY.
The BODY consists of text, images, links and lists, tables, and multimedia. Here is a simple example from this site that combines tables and JavaScript. JavaScript is a programming language that can add interactivity to your site. There are lots of sites on the web with many hundreds of scripts that you can use on your own sites, such as javascript.internet.com
Type on your browser line
www.mymallandnews.com/entertainment4.HTML
On windows, go to View and then Page Source to see the code. Go to File and do a Save As to save it to your computer directory. Position your cursor on the images and click on Save Image As. There. You should now have a copy of this page in your directory.
There may be times when you want to restrict others from copying your pictures. You can do that by inserting the following Java Script into the header portion of your html. If you click on News Links on this site, you'll see that you'll be unable to right click on any of the gifs. Another way to protect your illustrations is to "watermark" them.
function EatTheClick(e) {
if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) {
alert("The merchant has requested that right clicks be disabled for security reasons.");
return false;
}
return true;
}
document.onmousedown=EatTheClick;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=EatTheClick;
Let's look at the page of html a bit more closely. I'll number each of the lines and try to break it down a bit to make some sense from it.
 


|