需要帮助创建“在此页面上绝对单击任何地方”没有内容的HTML页面的链接 [英] Need help creating a "Click absolutely ANYWHERE on this page" link for an HTML page with no content
问题描述
我不确定是否可以做到这一点,但提示问题
是我希望能够创建一个优步链接。脚本/代码一些
排序,这样即使html页面只包含一个
背景图像 - 或者 - 背景颜色 - 换句话说,页面
既没有内容也没有放置图片 - 任何点击,无论如何,将在你的浏览器中启动网址。
我意识到我可以制作传统的文字链接和图形链接;什么
我正在寻找的是从这些中得到假释。 。 。并制作
整页,无论是否为空,一个大的点击。
谢谢。
SL
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
推荐答案
你好,
STILL LEARNING写道:
Hello,
STILL LEARNING wrote:
我不确定是否可以做到这一点,但提示问题
是我希望能够创建一个优步链接。脚本/代码一些
排序,这样即使html页面只包含一个
背景图像 - 或者 - 背景颜色 - 换句话说,页面
既没有内容也没有放置图片 - 任何点击,无论如何,将在你的浏览器中启动网址。
我意识到我可以制作传统的文字链接和图形链接;什么
我正在寻找的是从这些中得到假释。 。 。并制作
整个页面,无论是否为空,一个大的点击。
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.
无法想象这是一个很好的用例,但请随时启发我...
你可以放置一个链接(最好是为用户提供有意义的文本
非图形浏览器,即用户没有点击或者
不是整个页面) )在页面上。
< a id =" biglink" href =" ..">让奇怪的事情发生< / a>
然后应用以下CSS
#biglink {
显示:阻止;
宽度:100%;
高度:100%;
text-indent: -2000px; / *将文字移出可见区域* /
}
你还需要
html,body {
身高:100%; / *或上面的高度属性不起作用* /
保证金:0; / *避免滚动条* /
填充:0;
}
HTH
-
Benjamin Niemann
电子邮件:粉红色at odahoda dot de
WWW: http://pink.odahoda.de/
文章
< 11 ********************* @ j27g2000cwj.googlegroups。 com>,
STILL LEARNING" < by ******* @ usa.netwrote:
In article
<11*********************@j27g2000cwj.googlegroups. com>,
"STILL LEARNING" <by*******@usa.netwrote:
我意识到我可以制作传统的文字链接和图形链接;什么
我正在寻找的是从这些中得到假释。 。 。并制作
整个页面,无论是否为空,一个大的点击。
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.
paroled在这里意味着什么?你可以制作一个清晰的gif并将它在css中的
宽度和高度设置为100%,它可以是一个链接。
这是假装吗?
-
dorayme
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
文章< eq ********** @ online.de>,
Benjamin Niemann< pi ** @ odahoda.dewrote:
In article <eq**********@online.de>,
Benjamin Niemann <pi**@odahoda.dewrote:
你好,
STILL LEARNING写道:
Hello,
STILL LEARNING wrote:
我不确定是否可以做到这一点,但提示问题是什么?
是我希望能够创建一个优步链接。脚本/代码一些
排序,这样即使html页面只包含一个
背景图像 - 或者 - 背景颜色 - 换句话说,页面
既没有内容也没有放置图片 - 任何点击,无论如何,将在你的浏览器中启动网址。
我意识到我可以制作传统的文字链接和图形链接;什么
我正在寻找的是从这些中得到假释。 。 。并制作
整个页面,无论是否为空,一个大的点击。
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.
不能为此形象好用,但请随时给我启发......
你可以放置一个链接(最好是为用户提供有意义的文本
非图形浏览器,即用户没有点击或者
不是整个页面) )在页面上。
< a id =" biglink" href =" ..">让奇怪的事情发生< / a>
然后应用以下CSS
#biglink {
显示:阻止;
宽度:100%;
高度:100%;
text-indent: -2000px; / *将文字移出可见区域* /
}
你还需要
html,body {
身高:100%; / *或上面的高度属性不起作用* /
保证金:0; / *避免滚动条* /
填充:0;
}
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;
}
您使用哪种浏览器试试这个?
-
dorayme
Which browser did you use to test this?
--
dorayme
这篇关于需要帮助创建“在此页面上绝对单击任何地方”没有内容的HTML页面的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!