原代码如下,其实这是实现动态滚动栏的.我现在要做成后台程序,动态滚动栏里的内容可以从textarea中输入,然后在动态滚动栏中显示,请教!!!!
<javacript language=javascript>
document.write ("<marquee scrollamount='1'bgcolor=53AD8C scrolldelay='30'
direction= 'UP' width='180' id='helpor_net' height='80'
onmouseover='helpor_net.stop()' onmouseout='helpor_net.start()'
Author:redriver; For more,visit:www.helpor.net>")
document.write ("<h2><p align='center'><font color='#ffffff' face='黑体'>偶 然
</font></h2>")
document.write ("<p align='right'><a href='#' target='_blank'><font color='#ffffff'> 徐志摩</font></a> ")
document.write ("<p><font color='#ffffff'> ")
document.write ("<br>我是天空里的一片云,")
document.write ("<br>偶尔投影在你的波心—— ")
document.write ("<br>你不必讶异, ")
document.write ("<br>更无须欢喜—— ")
document.write ("<br>在转瞬间消灭了踪影。")
document.write ("<br>")
document.write ("<br>你我相逢在黑暗的海上,")
document.write ("<br>你有你的,我有我的,方向;")
document.write ("<br>你记得也好, ")
document.write ("<br>最好你忘掉, ")
document.write ("<br>在这交会时互放的光亮! ")
document.write ("</font>")
document.write ("</marquee> ")
</script>
<javacript language=javascript>
document.write ("<marquee scrollamount='1'bgcolor=53AD8C scrolldelay='30'
direction= 'UP' width='180' id='helpor_net' height='80'
onmouseover='helpor_net.stop()' onmouseout='helpor_net.start()'
Author:redriver; For more,visit:www.helpor.net>")
document.write ("<h2><p align='center'><font color='#ffffff' face='黑体'>偶 然
</font></h2>")
document.write ("<p align='right'><a href='#' target='_blank'><font color='#ffffff'> 徐志摩</font></a> ")
document.write ("<p><font color='#ffffff'> ")
document.write ("<br>我是天空里的一片云,")
document.write ("<br>偶尔投影在你的波心—— ")
document.write ("<br>你不必讶异, ")
document.write ("<br>更无须欢喜—— ")
document.write ("<br>在转瞬间消灭了踪影。")
document.write ("<br>")
document.write ("<br>你我相逢在黑暗的海上,")
document.write ("<br>你有你的,我有我的,方向;")
document.write ("<br>你记得也好, ")
document.write ("<br>最好你忘掉, ")
document.write ("<br>在这交会时互放的光亮! ")
document.write ("</font>")
document.write ("</marquee> ")
</script>
protected void page_load(object sender,EventArgs e)
{
string data=数据库保存这个信息的字段值
data=data.Replace("\"","\\\"");把危险的替换了。
lijs.Text="document.write("+data+")";
}
</script><javacript language=javascript>
document.write ("<marquee scrollamount='1'bgcolor=53AD8C scrolldelay='30'
direction= 'UP' width='180' id='helpor_net' height='80'
onmouseover='helpor_net.stop()' onmouseout='helpor_net.start()'
Author:redriver; For more,visit:www.helpor.net>")
<asp:literal id="lijs" runat="server"/>
document.write ("</marquee> ")
</script>