![]() |
|
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: absolutely, anywhere, content, creating, help, html, link, page, pagequot, quotclick |
![]() |
|
|||
|
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 |
| Sponsored Links |
|
|||
|
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... |
|
|||
|
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/ |
|
|||
|
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/ |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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 |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
- Contact Us
-|-
CSS & Stylesheet Forums -|-
Archive -|-
Top -|-Rules/Disclaimer-|-Help/Support-|-Advertise