月光石

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: :: :: 管理 ::
document.write函数的用法
里面的内容为字符串形式,要加双引号
也可以是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:http://www.ik8.com/>")

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>
posted on 2006-09-19 14:21  月光石  阅读(8504)  评论(0编辑  收藏  举报