|
|
| sloank@charter.net 2006-05-12, 6:58 pm |
| anyone know how to set up a 'speed bump'.
once someone clicks on an external link on my website, I want a page to come
up that says you are leaving my site, with an OK button. once the OK button
is clicked I want to go to the original link that was clicked on.
any ideas.
| |
| Wa|stib 2006-05-12, 6:58 pm |
|
<sloank@charter.net> wrote in message
news:44651bcd$0$22527$c3e8da3@news.astraweb.com...
> anyone know how to set up a 'speed bump'.
>
> once someone clicks on an external link on my website, I want a page to
come
> up that says you are leaving my site, with an OK button. once the OK
button
> is clicked I want to go to the original link that was clicked on.
>
> any ideas.
It feels like my eyes being removed by chopsticks.
| |
| Jerry Stuckle 2006-05-12, 9:57 pm |
| sloank@charter.net wrote:
> anyone know how to set up a 'speed bump'.
>
> once someone clicks on an external link on my website, I want a page to come
> up that says you are leaving my site, with an OK button. once the OK button
> is clicked I want to go to the original link that was clicked on.
>
> any ideas.
Can't do it. The external link will go to the other server. Your server won't
even know it happened.
And you should ask in alt.html. This isn't a PHP question (since PHP is
server-side only).
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
| |
| TheTeapot 2006-05-13, 3:57 am |
| This isn't PHP, but you'd probably want to use JavaScript.
Try something like this (attributes removed for readability):
<html>
<head>
<script>
function speedBump(){
/*---------Code to delay exit--------*/
}
</script>
</head>
<body onunload="speedBump()">
</body>
</html>
| |
| Hugh Janus 2006-05-13, 3:57 am |
| I think a better option would to use framing, have your own top frame saying
it aint your website, and maybe a link to go back to your website. An
option?
<sloank@charter.net> wrote in message
news:44651bcd$0$22527$c3e8da3@news.astraweb.com...
> anyone know how to set up a 'speed bump'.
>
> once someone clicks on an external link on my website, I want a page to
> come
> up that says you are leaving my site, with an OK button. once the OK
> button
> is clicked I want to go to the original link that was clicked on.
>
> any ideas.
| |
| Alan Little 2006-05-13, 7:57 am |
| Carved in mystic runes upon the very living rock, the last words of
<sloank@charter.net> of comp.lang.php make plain:
> anyone know how to set up a 'speed bump'.
>
> once someone clicks on an external link on my website, I want a page
> to come up that says you are leaving my site, with an OK button. once
> the OK button is clicked I want to go to the original link that was
> clicked on.
>
> any ideas.
Yep -- don't do it. It can be done quite easily with PHP, but if I were
on your site and ran into your "speed bump", I doubt I'd be back. If I
clicked the link in the first place, that's where I want to go. Making me
click again is only going to be annoying.
--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
| |
| newsreader 2006-05-13, 7:57 am |
| sloank@charter.net wrote:
> anyone know how to set up a 'speed bump'.
>
> once someone clicks on an external link on my website, I want a page to come
> up that says you are leaving my site, with an OK button. once the OK button
> is clicked I want to go to the original link that was clicked on.
>
> any ideas.
<a href="http://www.google.com/" onClick="alert('You are about to leave
this site.')">Go To Google</a>
Regards
| |
| Margaret Willmer 2006-05-15, 7:59 am |
| newsreader wrote:
> sloank@charter.net wrote:
>
> <a href="http://www.google.com/" onClick="alert('You are about to leave
> this site.')">Go To Google</a>
>
> Regards
>
why not just have target="blank" in the HTML - that way they still have
your site
Margaret
| |
| Ørjan Langbakk 2006-05-16, 7:00 pm |
| Den 15.05.2006 14:49, skriblet Margaret Willmer følgende:
> why not just have target="blank" in the HTML - that way they still have
> your site
Because the "target"-attribute is deprecated, and really shouldn't be
used. But of course, if one still lives in the world of HTML 4.01
Transitional, then go ahead...
Why can't designers just trust people to be able to use either CTRL or
SHIFT-click when they push a link, if they want to open another instance?
--
mvh
Ørjan Langbakk
http://www.bergenpchjelp.no
| |
|
| Ørjan Langbakk wrote:
> Why can't designers just trust people to be able to use either CTRL or
> SHIFT-click when they push a link, if they want to open another
> instance?
Because people are spoiled, and assume it's taken care off?
Grtz,
--
Rik Wasmus
| |
| Ørjan Langbakk 2006-05-17, 6:58 pm |
| Den 16.05.2006 20:54, skriblet Rik følgende:
> Ørjan Langbakk wrote:
>
> Because people are spoiled, and assume it's taken care off?
Ie. they're stupid, you mean? ;-)
--
mvh
Ørjan Langbakk
http://www.bergenpchjelp.no
|
|
|
|