You could use a regex to replace all of the links that start out http:// but
don't point to your domain with the javascript call.
-- Ben Doom
Programmer & General Lackey
Moonbow Software, Inc
: -----Original Message-----
: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
: Sent: Tuesday, April 01, 2003 10:22 AM
: To: CF-Community
: Subject: RE: Javascript question
:
:
: The data we are working with is all in a db that dates back to 1986. Now
: obviously the URLs won't have started showing up until what maybe
: 95 or 97?
: Still that's every article we linked or wrote that has links off a
: department of state domain. Man this is going to suck huh?
:
: Tim
:
: -----Original Message-----
: From: Randell B Adkins [mailto:[EMAIL PROTECTED]
: Sent: Tuesday, April 01, 2003 10:20 AM
: To: CF-Community
: Subject: Re: Javascript question
:
:
: Sorry did not read the entire message.
: Not sure with a single include to make it work across the whole site.
:
: But this function does work:
: <script language="javascript">
: function ExitLink(urlLink){
: alert('have a nice day. Now you are going to: ' + urlLink);
: window.location=urlLink;
: }
: </script>
: <a href="javascript:ExitLink('http://www.msn.com');">MSN</a>
:
:
: >>> [EMAIL PROTECTED] 04/01/03 10:09AM >>>
: Hey kids,
: I need to have a message displayed when ever someone clicks a link
: that
: takes them off of our site. I figured I could probably write a nice
: easy
: onUnLoad function to take care of it, but I can't seem to find a way to
: get
: the window.location.href they are heading to. I mean it displays the
: one
: they are leaving, just not the new one. I really wanted to do this the
: easy
: way and not have to make a bunch of changes and with this function I
: could
: just do a single include and have it work across my whole site.
:
: Any ideas?
:
: Timothy Heald
: Overseas Security Advisory Council
: U.S. Department of State
:
:
:
:
:
:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=5
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=5
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5