אשכול: [JS] שאלה..
View Single Post
ישן 07-08-06, 21:03   # 3
amirs_5
הוסטסניון
 
amirs_5's Avatar
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
מיקום: ת"א
גיל: 34
הודעות: 2,168
שלח הודעה באמצעות ICO אל amirs_5 Send a message via Skype™ to amirs_5

amirs_5 לא מחובר  

תודה:)

הראשון עזר לי השני גם עובד אבל לא ממש הבנתי..
הבנתי חצי , את הקטע של האחרי הבדיקה של הדפדפן לא הבנתי.. את זה:
HTML קוד:
		txtElement.focus();
		docSelection = document.selection;
		txtSelection = docSelection.createRange();
		if (txtSelection.text != "") {
			txtSelection.text = '<font color="'+c+'">'+txtSelection.text+'</font>';
		} else {
			txtElement.value = '<font color="'+c+'">'+text+'</font>';
		}
מישהו יכול להסביר לי את זה ..?
תודה
__________________
אימיל \ מסן : amirs91 [at] gmail.com
  Reply With Quote