document.write函数的⽤法
document.write函数的⽤法
⾥⾯的内容为字符串形式,要加双引号
html document是什么也可以是HTML代码,如下内容:
<script language=javascript>
document.write ("<marquee scrollamount='1' scrolldelay='30' direction= 'UP' onmouseover=this.stop() onmouseout=this.start() width='400' id='helpor_net' height='265' align='center' onmouseover='ik8_com.stop()' onmouseout='ik8_com.start()' Author:redriver; For more,visit:>") document.write ("<p><font color='pink' face=华⽂⾏楷 size=3> ")
document.write ("<p> ⼩时候的梦想")
document.write ("<p> 从来就不曾遗忘")
document.write ("<p> 个世上最美的新娘")
document.write ("<p> 陪你到地久天长")
document.write ("<p> 爱你到地⽼天荒")
document.write ("<p> ⽤我温柔的⼼带你⼀起飞翔")
document.write ("<p> 我想打开⼼房")
document.write ("<p> 让你在⼼中回荡")
document.write ("<p> 拥有每个梦你的夜晚")
document.write ("<p> 当接触你的眼光")
document.write ("<p> 我的⼼地旋天转")
document.write ("<p> 意乱情迷的我为你痴狂")
document.write ("</font>")
document.write ("</marquee> ")
</script>