HTML CODE
Making your own web site? Check out my HTML code page.

Several people have asked me about my web site and how I've done this or that. For example, if you right click on any page, a notice pops up saying that this function has been disabled. How's it done? Usually, links are underlined like this CLICK HERE. Underlining links makes things look messy. How do you remove the line?

I don't know everything about HTML codes. Far from it, in fact. However, I've discovered a host of tricks over the years and am willing to share them here. If something doesn't work, then don't email me and complain. Not all code works on all browsers so try things out, play about with the code and see what you can do.

If something needs to be inserted within the HEAD of your HTML, it means between this <HEAD> and this </HEAD> Got that? Likewise within the BODY, between this <BODY> and this </BODY> OK, here's the first one:

DISABLE RIGHT CLICK.
Copy and paste this into the HEAD.
You'll need to change the bit about copyright G4NSJ, but that's all.

<script language="JavaScript">
<!--
var popup="Sorry, right-click is disabled.\n\nThis Site Copyright G4NSJ © 2003";
function noway(go) {
if (document.all) {
if (event.button == 2) {
alert(popup);
return false;
}
}
if (document.layers) {
if (go.which == 3) {
alert(popup);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=noway;
// --> </script>

 

NO TOOL BAR ON IMAGES.
Here's a useful one. No annoying tool bar at the top left hand corner of your pics.
Copy and paste this simple one-liner into the HEAD.

<meta http-equiv="imagetoolbar" content="no">

VIRUS UPDATES
CLICK ON THE LIST BELOW FOR INSTANT VIRUS UPDATES

 

 

STOP THE SPAMBOTS
A SCRIPT TO HIDE YOUR WEB SITE EMAIL ADDRESS

Spam Bots crawl the internet looking for web sites with email addresses. They will find and index complete email addresses such as this ray@g4nsj.co.uk and you'll end up with loads of spam mail. The simple script below separates your email address, making it unrecognizable to the bots. Change the lines containing my fragmented email address... "ray" and "g4nsj.co.uk" You'll also need to place your own image gif or whatever in the last line.

<script language="JavaScript"><!--
// hide script
var part1 = "<a href=\"";
var part2 = "\"><img src=\"";
var part3 = "\" alt=\"E-Mail me!\" border=0></a>";
var sb_domain = "g4nsj.co.uk"
var sb_user = "ray"
var sb_recipient = sb_user + "@" + sb_domain
var sb_url = "mailto:" + sb_recipient
document.write(part1+sb_url+part2+"images/EMAIL.gif"+part3);
// -->
</script>

 

MAKING A WEB SITE
A FEW DON'TS WHEN CREATING A WEB SITE


I've just spent an hour or so looking at various amateur radio web sites. Frankly, I wasted an hour. What a load of crud! A good half of the sites were UNDER CONSTRUCTION. Several had more about the owners' pet cats and dogs than radio related topics. And one guy described himself as in his forties, single - and looking for a woman! People visiting an amateur radio web site expect to find amateur radio stuff. Not pictures of the family cat and a pregnant hedgehog wandering aimlessly across the lawn. Or am I wrong?

I'm no expert, but I reckon that a lengthy biography starting with photos of the radio amateur in nappies is a waste of space. And as for music blasting at you when you enter a site! If people want to listen to music, they'll use their hi-fi gear. And choose what they want to listen to. Do not have music on your site.

Here's a laugh. I came across an amateur's web site the other day and guess what? He had short stories on his site. Short stories? What the hell's going on? They weren't even radio related. This is an example of what NOT do have on your site.

Try to keep navigation simple. I've lost count of the number of sites I've been to where I can't find the ENTER button. Why have an ENTER button anyway? I would have thought it pretty obvious that you wanted to enter the site. That's why you went there, isn't it? I know about gateway pages and all that, but they're not necessary in amateur radio sites. And neither is cloaking.

Keep your site simple. No one likes animated gifs flashing all over the front page. I've put the day and date on my site because I can never remember what day it is! I have a couple of roll-over photographs to make the front page a little more interesting. But don't overdo it.


AN EXAMPLE OF A NAFF WEB SITE

THE HOME PAGE OF G4NSJ
name Ray QTH Worthing Sussex.
Hobbies Camping hiking collecting 1960s anoraks


.

 

 

Hi, and welcome to my crappy web page. I'm a complete nerd. I was born somewhere in England in 19??, I'm married with ten children and my fifth wife is studying for her RAE.

I'll be adding photographs of my family here, and of my excellent collection of anoraks, which will be amazingly interesting.

I enjoy talking bollocks and I am chairperson of our local Anorak Club.

 

 

I'LL BE ADDING MORE SOON...

 

Page last updated - Jan 1972

 

Windows 2000, XP and others no longer come with Java. You'll need Java for many things, including watching my web cam (when it's on). You can download Java from the link below.

DOWNLOAD JAVA HERE

 

SEARCH ENGINES
GETTING YOUR WEB SITE CRAWLED, INDEXED AND LISTED.


You might not want to be listed in the big search engines. That's fine. If you have a personal site, just mentioning your callsign and a few things about you, then why bother with search engines? But, for those who want to get visitors to their site, then search engine listing and ranking is important.

So, how's it done? You can pay to be listed in engines powered by Inktomi, for example, but who wants to spend money? One thing you must do is submit your URL to Google. This costs nothing and, usually, you'll get listed. In fact, submit your URL to as many search engines as you can find.

There are other ways you can be pretty sure to get your site listed without paying. Firstly, make sure that your site is 'robot friendly'. The robots crawl the web looking for sites and then index the page or pages they find.

KEYWORDS:

These words are placed in the HEAD of your web page. The robots look for these words. This is an example of the keywords I have in the HEAD of this page.

<meta name="keywords" content="g4nsj, website, web site design, keywords, html, code, java">

Remember that the robots are looking for this line, so it must be in the HEAD of your web page. And it's no good putting sex, girls, panties etc. Yes, your hits will rise dramatically. But all this will do is increase your bandwidth which will cost you money.
STOP PRESS! I might be wrong, but it seems that Google have programmed their computers to ignore the " keywords" tag. I've been watching and checking over the past couple of months, and my keywords have not been indexed by Google. Crafty, huh?

TITLE:

The TITLE, also in the HEAD of the web page, is very important. When you search Google, it's the TITLE you read first in the listings. Look at the very top of your screen and you'll see my TITLE there. This is how it's done:

<title>G4NSJ HTML CODE WEB SITE DESIGN JAVA KEYWORDS</title>

God knows how many Google entries I've come across that read: Untitled Document. With no TITLE, your web site comes across as naff before anyone has even seen it. The TITLE is most important, so choose your words carefully if you want people to click it and take a look at your site. A TITLE like this will put people off: MY ANORAK HOME PAGE ABOUT ME AND HOW GREAT I AM.

LINKS:

More and more search engines are counting links as a factor in web site ranking. Get your mates to link to your site, and you link to theirs. The more links that point to your site, the better.

Another good way to get loads of links pointing to your site is to go around the web filling in other people's guestbooks. When their sites are crawled, the robot will follow your guestbook entry to your site. Cool, huh? Not many people know that. Obviously, you must have your URL in the guestbook entry.

Robots will also follow links from your main page to your other pages. Take a look at the very bottom of my main page and you'll see two rows of green buttons. These are there purely for the robots to follow. They should follow all the links on your site anyway, taking them from page to page, but don't rely on it.

THE <BODY> OF YOUR WEB PAGE:

Whatever you write on your web page may be in the Google listing. Below, I've copied and pasted the Google listing for the main page of my site.

G4NSJ AMATEUR RADIO HOMEPAGE
THE OPERATOR G4NSJ. THE RADIO STATION, EQUIPMENT, AERIALS, ELECTRONICS...
THE SHACK. ... AERIALS FOR SHORTWAVE RADIO. Search the G4NSJ web site. ...
www.g4nsj.co.uk/ - 23k - 23 Jul 2003 - Cached - Similar pages

As you can see above, the words are all to do with amateur radio. Be careful with your main page because whatever you write may be treated as keywords by the search engines. Bear in mind the search engines when you write your main page. It's no good having a snip from a Google search reading something like this:

G4NSJ AMATEUR RADIO HOMEPAGE
CLICK THIS BUTTON TO GO TO MY GUESTBOOK... AND HERE IS A PHOTO OF MY CAT...
TAKE A LOOK AT MY PHOTO ALBUM OF MY TRIP TO...

Reading the above entry, people will think that you have some crappy site about your cat and your boring bloody holiday snaps. Also, be careful with buttons. You know the little yellow box that comes up when the mouse cursor is over a link button? Be warned, Google will list this.

GATEWAY PAGES:

Don't even think about it! Google, and others, have sussed this out. A web site of mine was thrown out of Google because I cheated. I won't tell you how because there's no point. Yes, I was number one out of over two million web sites... For a while. The search engines are now pretty clever. Do NOT automatically redirect visitors. If the engines are automatically redirected, they get upset. So much so that they'll black list you - for good. There are still ways of doing this, but it's risky. Check out one of the radio amateur search engine sites and you'll see that, at the moment, I'm number two out of hundreds. Enough said on that!. If you don't know what a gateway page is, then you're probably better off not knowing.

CLOAKING:

Do you really want to know? I'm going to bed now so, if you want to know what cloaking is, you'll have to come back some other time... Good night and 73, de G4NSJ

A QUICK, CHEAP AND SIMPLE WAY TO
STAY COOL.

 
My computer runs twenty-four hours a day. That's right, it's never switched off. Why? Several reasons: I work from home, using the computer, and need to know the minute an email arrives. My main computer acts as a server for another five PCs. My web cam is on 24-7. (I hate that term) To sum up, the thing gets bloody hot!

The air blasting out of the power supply fan was hot, almost like a hairdryer. The top of the PC case was hot, so I dread to think what the temp was inside. When we had the summer the other day, the temp in the shack was 80f. And that was with the window open. The poor old PC must have been like an oven!

All I did to solve the problem was screw a fan to the spare grill on the back of the PC. Within an hour, the case was cold and the PSU exhaust air was very cool. Fit the extra fan to the OUTSIDE of the case, over the grill, with a couple of self-tapping screws. By the way, I found that the extra fan works best when blowing air INTO the PC case as the PSU fan sucks air out.

You could run the fan from the PC's internal power supply, but that would cause the PSU to get even hotter. I run the extra fan from the shack 12v supply. Cool, huh? VERY!