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 ($MODULE_ID$='forum' and $GROUP_ID$ != 4)?> 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. |
Total comments (0)