"と'の中に更にクォーテーションを使うには?
shimo
[E-Mail]
2000/01/06(木) 15:09:07
<SCRIPT language="JavaScript"><!--
if (navigator.appName == "Microsoft Internet Explorer")
{ document.write("****") }
//--></SCRIPT>
の****部分に
<input type="submit" value=":::write:::" name="submit" class="button" onMouseover="this.style.background='#dfab9a',this.style.color='#ffffff'"
onMouseout="this.style.background='#bcab9a',this.style.color='#ffffff'">
を入れ込みたいのですが、三重の入れ子はどうやったらいいかわかりません。長い質問で申し訳ありませんが、誰か教えていただけると嬉しいです。どうぞよろしくお願いします。
<SCRIPT language="JavaScript"><!--
if (navigator.appName == "Microsoft Internet Explorer")
{ document.write("****") }
//--></SCRIPT>
の****部分に
<input type="submit" value=":::write:::" name="submit" class="button" onMouseover="this.style.background='#dfab9a',this.style.color='#ffffff'"
onMouseout="this.style.background='#bcab9a',this.style.color='#ffffff'">
を入れ込みたいのですが、三重の入れ子はどうやったらいいかわかりません。長い質問で申し訳ありませんが、誰か教えていただけると嬉しいです。どうぞよろしくお願いします。
sin
[HomePage]
2000/01/06(木) 15:55:38
""の中で更に""を使用する場合、前に\を付けると良いと思います。
<<サンプル>>
document.write("<INPUT TYPE=\"submit\">")
""の中で更に""を使用する場合、前に\を付けると良いと思います。
<<サンプル>>
document.write("<INPUT TYPE=\"submit\">")