View Single Post
ישן 04-07-06, 20:37   # 8
miniature
חבר וותיק
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
הודעות: 1,754

miniature לא מחובר  

ציטוט:
נכתב במקור על ידי lalamen
תעשה ככה:

PHP קוד:
^://([0-9a-zA-Z\-]+\.)+[a-zA-Z]{2,6}(\:[0-9]+)?(/\S*)?$^ 
לא עובד..
HTML קוד:
<html>
<head>
<script>
function abc() {
  var aaa = document.getElementById('abc').innerText;
  aaa = aaa.replace(^://([0-9a-zA-Z\-]+\.)+[a-zA-Z]{2,6}(\:[0-9]+)?(/\S*)?$^,'LINK IS HERE!!');
}
</script>
</head>
<body>
<div contenteditable="true" onkeypress="abc()"></div>
</body>
</html>
__________________
יואב.

דרכים ליצירת קשר:

אימייל: thebigfire@walla.co.il
הודעה פרטית
  Reply With Quote