How to make whole page a link?

I have a “splash/intro” page on my website. I want to make it very easy for people to get stuck into my website, by enabling them to click anywhere on the page to go to my website proper.

I understand hyperlinks can’t be applied to HTML boxes. So I’ve drawn an image map over the whole page and made the appropriate link. However the image map only works when it is over a graphic.

How do I do this?
Thanks


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

You could do this with JavaScript pretty easily, although be careful to include a real link somewhere on the page for non-scripted visitors to click (and this includes the Google crawler and other 'bots). Google doesn’t “do” JavaScript, and a surprising number of people have it turned off to avoid viruses and other malware.

Open up Page > HTML Markup, switch to the ‘Before /body’ section of the dialog, and paste in the following (after editing the URL to be precisely what you want it to be, naturally):

<script type="text/javascript">
    document.onclick = "return window.location.href = 'http://example.com'";
</script>

(Note carefully that what looks like three single-quotes at the end is really a single-quote followed by a double-quote.)

What this does is register a click handler on the document itself. Any click, anywhere on the page, will bubble up to this handler and be directed toward whatever you enter as the href.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks. I think I’ve just solved it. I’ve made a graphic box the size of my page. I can save it as a gif and it is very small file size. I’ve put a link from the graphic box.

Cheers


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I have a “splash/intro” page on my website.

Personally, I dislike splash intro pages. Really dislike 'em. Really, really…

However, if you really and truly must… [sigh]
You could use a one-frame Flash movie, set to fill the browser window.

k


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options