User Tools

Site Tools


direct_out_links

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

direct_out_links [2014/01/29 18:04] (current)
Line 1: Line 1:
 +====== Direct Out Links ======
 +
 +Direct Links example
 +
 +
 +<​code>​
 +<​html>​
 +<​body>​
 +<script src='/​scj/​includes/​js/​jquery.js'></​script>​
 +<​script>​
 + $(document).ready(function(){
 + $('​a[jsvar=out]'​).each(function(){
 + var href = '/​out.php?​url='​ + $(this).attr('​href'​);​
 + $(this).attr('​href',​ href);
 + });
 + });
 +</​script>​
 +
 +
 +<a jsvar='​out'​ href='​http://​gallery.com/'>​ out link </a> <br>
 +<a href='​http://​gallery.com/'>​ direct link </a>
 +
 +</​body>​
 +</​html>​
 +</​code>​
  
direct_out_links.txt ยท Last modified: 2014/01/29 18:04 (external edit)