Register    Sign in
Authentification
uCoz Scripts » Others » –

Anti-spam for website

The script changes all the links, which is in a text box on the site, removes http://, www and points to the link.
Attention place the script, using the ucoz built conditional operator. 

Example: The script works in module news for all groups except the administrator.

Code

  
Script
  


The script is :

Code

  <script type="text/javascript">  
  $(document).ready(function () {  
  $('textarea').live('keyup', function () {  
  $(this).val($(this).val().replace(/http:\/\/|www/ig, 'http://themes.ucoz.net'));  
  });  
  });  
  </script>  


You can replace http://themes.ucoz.net with whatever you want.






Autor: cioLAN  2024-04-24, 20:20:50   Views : 1449   

Tags: spam, remove www, http://


Total comments (0)
ComForm">
avatar