|
Posted by Rik on 11/19/08 11:47
Alan Little wrote:
> Carved in mystic runes upon the very living rock, the last words of
> Alan Little of comp.lang.php make plain:
>
>> 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.
>
> Actually, upon further consideration, I can think of a situation
> where it might be valid, if you want to make it clear that the
> visitor is leaving your site, and you have no connection with the
> site they're going to. For example, if you were writing an article on
> hate groups, and wanted to link to some of their sites.
Another valid reason would be a (more or less secure) "logged in" area, and
displaying a warning you're leaving that area.
It could be done in PHP, but it would mean converting all your links, which
is a hassle. A quick temporary solution would be to turn on outbut
buffering, and searsching replacing links with preg_replace(). It's not
something I'd choose as a permanent solution though, it's unneccesary extra
memory and processing compared to doing it correctly.
Grtz,
--
Rik Wasmus
Navigation:
[Reply to this message]
|