Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1622 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Business and Website Management     Blogging and Community Building :

Warning, Leaving Site

Thread title: Warning, Leaving Site
Closed Thread  
Page 2 of 2 < 1 2
    Thread tools Search this thread Display Modes  
04-18-2008, 05:55 AM
#11
MatthewC is offline MatthewC
Status: Junior Member
Join date: Apr 2008
Location:
Expertise:
Software:
 
Posts: 27
iTrader: 0 / 0%
 

MatthewC is on a distinguished road

  Old

Originally Posted by jordanriane View Post
It sounds like he wants something similar to how Myspace alerts you when you're leaving their website and if you want to continue to the link you clicked on.
Yes

04-18-2008, 05:58 AM
#12
MatthewC is offline MatthewC
Status: Junior Member
Join date: Apr 2008
Location:
Expertise:
Software:
 
Posts: 27
iTrader: 0 / 0%
 

MatthewC is on a distinguished road

  Old

So, How do I install this?


Originally Posted by Garrett View Post
www.xhtmlthis.com/tutorial/test.html

Update:
Download the Prototype Library, and include it on your page.

Then use this code:
Code:
Event.observe(window, 'load', function() {
	$$('a[href^="http://"]').each(function(element) {
		element.observe('click', function(event) {
			window.location = 'http://www.xhtmlthis.com/tutorial/url.php?url='+this.href;
			Event.stop(event);
		}.bindAsEventListener(element))
	});
});



It will look for all URLS with http:// in the beginning and do what you want when they click on it. So in this case go to a php page that asks them.

You can test it out, I have different examples on the page. When they redirect it will give you an example of what you wanted.

Update 2:
I am going to make a Greasescript for this, to prank people
All links will go to some random site.

04-18-2008, 06:04 AM
#13
BrokenFaith is offline BrokenFaith
BrokenFaith's Avatar
Status: Creatistic
Join date: Jul 2006
Location: Arizona
Expertise:
Software:
 
Posts: 1,726
iTrader: 5 / 100%
 

BrokenFaith is on a distinguished road

Send a message via AIM to BrokenFaith Send a message via MSN to BrokenFaith

  Old

Originally Posted by MatthewC View Post
So, How do I install this?

Download the Prototype Library, and include it on your page.

Then use this code:
^^.

04-18-2008, 09:33 PM
#14
Garrett is offline Garrett
Status: Waving
Join date: Aug 2005
Location:
Expertise:
Software:
 
Posts: 2,694
iTrader: 11 / 100%
 

Garrett is on a distinguished road

Send a message via MSN to Garrett

  Old

View the source of the link I sent you.

Add me on MSN if you have any more questions.

Closed Thread  
Page 2 of 2 < 1 2


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed