妖刀和荒古哪个更好:为什么我在淘宝的产品描述中使用不了script language

来源:百度文库 编辑:高考问答 时间:2024/05/09 08:23:23
举个例子
<table border="1" bordercolor="#000000" bgcolor="#6699ff" cellpadding="5" cellspacing="0">
<tr>
<td>
<script language=javascript>

document.write ("<marquee scrollamount='1' scrolldelay='30' direction= 'UP' width='200' id='helpor_net' height='150' 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>
</td>
</tr>
</table>
放到淘宝的html编辑器里不能看到效果

一般的web应用程序考虑到服务器和程序本身及数据库的安全因素,对客户端所输入的数据都会做一些的检测,把其中的一些特殊符号进行过滤。
所以你输入的代码会在存入数据库之前被程序进行过滤,典型的过滤是过滤HTML,将所有的"<"和">"都过滤成"<"和">",所以你的代码也将会失效

- -!因为不支持script language……