1. 1.
    -2
    <script type="text/javascript">
    function makeLink(inputText) {
    // http://, https://, or ftp:// ile başlayan urller
    var replacePattern1 = /(b(https?|ftp)://[-A-Z0-9+&@#/%?=*_|])/gim;
    var replacedText = inputText.replace(replacePattern1, '<a href="$1" target="_blank">$1</a>');
    // www. ile başlayan // olmayan
    var replacePattern2 = /(^|[^/])( http://www.[S ]+(b|$))/gim;
    var replacedText = replacedText.replace(replacePattern2, '$1<a href=" http://$2" ; target="_blank">$2</a>');
    //email addresslerini link yap
    var replacePattern3 = /(w+@[a-zA-Z_]+?.[a-zA-Z]{2,6})/gim;
    var replacedText = replacedText.replace(replacePattern3, '<a href="mailto:$1">$1</a>');
    //alert(replacedText);
    document.getelementById("sonuc").innerHTML= replacedText;
    }
    </script>
    ···
   tümünü göster