Web Hosting CSS & Stylesheet Forums

Add Me

User Name
Password
Go Back   CSS & Stylesheet Forums > Related Authoring > Principals of Site Design

Welcome to the CSS & Stylesheet Forums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.
Tags: , , , , , , , , ,



Reply
  #1 (permalink)  
Old 04-13-2008, 01:04 AM
STILL LEARNING
Guest
 
Posts: n/a
Diggs:
Default Need help creating a "Click absolutely ANYWHERE on this page" link for an HTML page with no content



I'm not sure if this can even be done, but what prompts the question
is my desire to be able to create an "Uber Link" script/code of some
sort, such that even if the html page contains nothing but a
background image -or- a background color -- in other words, the page
has neither content nor placed images -- any click, ANYWHERE, will
launch the URL in your browser.

I realize I can make traditional text links and graphics links; what
I'm looking for is to be paroled from these . . . and making the
entire page, whether empty or not, one big CLICK.

Thanks.

SL

Reply With Quote


Sponsored Links
  #2 (permalink)  
Old 04-13-2008, 01:04 AM
Michael Vilain
Guest
 
Posts: n/a
Diggs:
Default Re: Need help creating a "Click absolutely ANYWHERE on this page" link for an HTML page with no content

In article <1170888049.305499.93770@j27g2000cwj.googlegroups. com>,
"STILL LEARNING" <byte.this@usa.net> wrote:

> I'm not sure if this can even be done, but what prompts the question
> is my desire to be able to create an "Uber Link" script/code of some
> sort, such that even if the html page contains nothing but a
> background image -or- a background color -- in other words, the page
> has neither content nor placed images -- any click, ANYWHERE, will
> launch the URL in your browser.
>
> I realize I can make traditional text links and graphics links; what
> I'm looking for is to be paroled from these . . . and making the
> entire page, whether empty or not, one big CLICK.
>
> Thanks.
>
> SL


Don't think you can do this. A link must be associated with an object.
Usually that's text. If you did something like this, it would *NOT* go
over well with most visitors to your site.

Rethink your approach. This one isn't going to fly and if it did,
people won't like it.

--
DeeDee, don't press that button! DeeDee! NO! Dee...



Reply With Quote


  #3 (permalink)  
Old 04-13-2008, 01:04 AM
Benjamin Niemann
Guest
 
Posts: n/a
Diggs:
Default Re: Need help creating a "Click absolutely ANYWHERE on this page" link for an HTML page with no content

Hello,

STILL LEARNING wrote:

> I'm not sure if this can even be done, but what prompts the question
> is my desire to be able to create an "Uber Link" script/code of some
> sort, such that even if the html page contains nothing but a
> background image -or- a background color -- in other words, the page
> has neither content nor placed images -- any click, ANYWHERE, will
> launch the URL in your browser.
>
> I realize I can make traditional text links and graphics links; what
> I'm looking for is to be paroled from these . . . and making the
> entire page, whether empty or not, one big CLICK.


Can't image a good usecase for this, but feel free to enlighten me...

You could place a link (preferably with meaningful text for users
non-graphic browsers, i.e. where the user does not "click" or there is
not "entire page") on the page.

<a id="biglink" href="..">Let strange things happen</a>

Then apply the following CSS

#biglink {
display: block;
width: 100%;
height: 100%;
text-indent: -2000px; /* to move the text out of the visible area */
--

you'll also need

html, body {
height: 100%; /* or the height property above will not work */
margin: 0; /* to avoid scrollbars */
padding: 0;
--

HTH

--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://pink.odahoda.de/
Reply With Quote


  #4 (permalink)  
Old 04-13-2008, 01:04 AM
Randy Webb
Guest
 
Posts: n/a
Diggs:
Default Re: Need help creating a "Click absolutely ANYWHERE on this page"link for an HTML page with no content

STILL LEARNING said the following on 2/7/2007 5:40 PM:

[Followup-To set to comp.lang.javascript]

> I'm not sure if this can even be done, but what prompts the question
> is my desire to be able to create an "Uber Link" script/code of some
> sort, such that even if the html page contains nothing but a
> background image -or- a background color -- in other words, the page
> has neither content nor placed images -- any click, ANYWHERE, will
> launch the URL in your browser.
>
> I realize I can make traditional text links and graphics links; what
> I'm looking for is to be paroled from these . . . and making the
> entire page, whether empty or not, one big CLICK.



<body onclick="goThere('someURL')">

function goThere(URL){
alert('This is going to be really ANNOYING');
document.location.href = URL;
--

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Reply With Quote


  #5 (permalink)  
Old 04-13-2008, 01:04 AM
dorayme
Guest
 
Posts: n/a
Diggs:
Default Re: Need help creating a "Click absolutely ANYWHERE on this page" link for an HTML page with no content

In article
<1170888049.305499.93770@j27g2000cwj.googlegroups. com>,
"STILL LEARNING" <byte.this@usa.net> wrote:

> I realize I can make traditional text links and graphics links; what
> I'm looking for is to be paroled from these . . . and making the
> entire page, whether empty or not, one big CLICK.


What does paroled mean here? You can make a clear gif and set the
width and height of it in the css to 100% and it can be a link.
Is this parolling?

--
dorayme
Reply With Quote


  #6 (permalink)  
Old 04-13-2008, 01:04 AM
STILL LEARNING
Guest
 
Posts: n/a
Diggs:
Default Re: Need help creating a "Click absolutely ANYWHERE on this page" link for an HTML page with no content

On Feb 7, 4:42 pm, dorayme <doraymeRidT...@optusnet.com.au> wrote:
> You can make a clear gif and set the width and height of it in the
> css to 100% and it can be a link.


Using which Tags? (sorry, I don't do much CSS and I don't understand
how this is different from simply creating a graphic that links)

SL

Reply With Quote


  #7 (permalink)  
Old 04-13-2008, 01:04 AM
dorayme
Guest
 
Posts: n/a
Diggs:
Default Re: Need help creating a "Click absolutely ANYWHERE on this page" link for an HTML page with no content

In article
<1170899347.918264.86020@a75g2000cwd.googlegroups. com>,
"STILL LEARNING" <byte.this@usa.net> wrote:

> On Feb 7, 4:42 pm, dorayme <doraymeRidT...@optusnet.com.au> wrote:
> > You can make a clear gif and set the width and height of it in the
> > css to 100% and it can be a link.

>
> Using which Tags? (sorry, I don't do much CSS and I don't understand
> how this is different from simply creating a graphic that links)




<http://members.optushome.com.au/droovies/test/bigAsBigCanBe.html>

--
dorayme
Reply With Quote


  #8 (permalink)  
Old 04-13-2008, 01:04 AM
pcx99
Guest
 
Posts: n/a
Diggs:
Default Re: Need help creating a "Click absolutely ANYWHERE on this page"link for an HTML page with no content

STILL LEARNING wrote:
> I'm not sure if this can even be done, but what prompts the question
> is my desire to be able to create an "Uber Link" script/code of some
> sort, such that even if the html page contains nothing but a
> background image -or- a background color -- in other words, the page
> has neither content nor placed images -- any click, ANYWHERE, will
> launch the URL in your browser.
>
> I realize I can make traditional text links and graphics links; what
> I'm looking for is to be paroled from these . . . and making the
> entire page, whether empty or not, one big CLICK.
>
> Thanks.
>
> SL
>


document.onclick=function () {
document.location.href="http://someurl.com"; --


--
http://www.hunlock.com -- Musings in Javascript, CSS.
$FA
Reply With Quote


  #9 (permalink)  
Old 04-13-2008, 01:04 AM
STILL LEARNING
Guest
 
Posts: n/a
Diggs:
Default Re: Need help creating a "Click absolutely ANYWHERE on this page" link for an HTML page with no content

On Feb 8, 6:36 am, pcx99 <x...@x.com> wrote:
>
> document.onclick=function () {
> document.location.href="http://someurl.com"; --


pcx99, forgive my ignorance but . . . what is this? Javascript? It's
quite elegant and I like it, but I'm not sure where it would go or if
it might be fussy (eg cross-browser compatible).

Very elegant, and this is easily the best solution -- both for
simplicity and size -- but only if it is not fussy. Could you
elaborate a bit? Does this go BEFORE the </HEAD> -or- AFTER the
<BODY> tag? Thank you pcx99.

SL'in

Reply With Quote


  #10 (permalink)  
Old 04-13-2008, 01:04 AM
STILL LEARNING
Guest
 
Posts: n/a
Diggs:
Default Re: Need help creating a "Click absolutely ANYWHERE on this page" link for an HTML page with no content

Oh and, I forgot to add . . . this solution has got to work with
frames in IEx. I remember years ago when I designed a custom page
counter I had a devil of a time with Explorer's frames.

SL'in

Reply With Quote


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 10:38 PM.
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.




Inactive Reminders By Mished.co.uk