<html> <title> xxx </title> </html>の前にこのスクリプトを書いてください!
以下は引用断片です。 <スクリプト言語= "javascript"> function tosystem(addtitle){ var RevisedTitle; varcurrenttital; currentTital = document.frmannound.key.value; ReviedTitle = CurrentTatic AddTitle; document.frmannound.key.value = reviedtitle; document.frmannound.key.focus(); 戻る;} </script> |
「キー」はテキストボックスのname = "key"属性です
「frmannounce」はフォームの名前です。つまり、<form name = "frmannounce"> </form>
<入力型= "text" size = 21 name = "se" value = "<%= key%>">
ステートメントを追加します:
以下はコードフラグメントです。 <%response.write "<a href = 'javascript:tosystem(" "" "" ")'>分割文字</a>"%> |
それと同じように!
この例の役割:
バックグラウンド管理では、キーワードセグメンテーションシンボルがテキストボックスに頻繁に入力されます。これは、このセグメントを使用できることです。
ハイパーリンクに直接クリックしたため、スクリプト関数tosystem()をトリガーして、分割「|」を追加する目的を実現しました。