אשכול: 2 שאלות בASP
View Single Post
ישן 13-05-06, 10:55   # 6
adiga000
Permanently Banned
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
גיל: 35
הודעות: 481

adiga000 לא מחובר  

יש שגיאות .... מה הבעיה פה?
ציטוט:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<a href="#" onclick ="(document.getElementById('msg').value=document.g etElementById('msg').value + '[B][-B]')"><img src="images/bold.gif" border="0" alt="טקסט בולט"></a>
<a href="#" onclick ="(document.getElementById('msg').value=document.g etElementById('msg').value + '[I][-I]')"><img src="images/italian.gif" border="0" alt="טקסט אלכסוני"></a>
<a href="#" onclick ="(document.getElementById('msg').value=document.g etElementById('msg').value + '[U][-U]')"><img src="images/underline.gif" border="0" alt="קו תחתון"></a>
<a href="#" onclick ="(document.getElementById('msg').value=document.g etElementById('msg').value + '[IMG][-IMG]')"><img src="images/img.gif" border="0" alt="הוסף תמונה"></a>
<a href="#" onclick ="(document.getElementById('msg').value=document.g etElementById('msg').value + '[C][-C]')"><img src="images/center.gif" border="0" alt="טקסט באמצע"></a>
<br />
<Form action="n_news.asp" method="post">
<textarea cols="50" rows="10" id="msg"></textarea>
<input type="submit" />
</Form>
<Br />
<br />
<Br />
<%

var text="" & Request.Form("msg") & ""
text=text.replace(/"[B]"/g,"<strong>");
text=tmp.replace(/"[-B]"/g,"</strong>");
text=tmp.replace(/"[I]"/g,"<em>");
text=tmp.replace(/"[-I]"/g,"</em>");
text=tmp.replace(/"[U]"/g,"b");
text=tmp.replace(/"[-U]"/g,"b");
text=tmp.replace(/"[C]"/g,"<center>");
text=tmp.replace(/"[-C]"/g,"</center>");
text=tmp.replace(/"[IMG]"/g,"<img src='");
text=tmp.replace(/"[-IMG]"/g,"' border='0'>");
%>
<%=text %>
</body>
</html>
  Reply With Quote