如果大与16个就显示```````怎么做
如果大与16个就显示```````怎么做速度
我要定义成函数的
谢谢!!
[CODE]<script language="vbscript">
function checklen(thetitle)
titlelen=len(thetitle)
if titlelen>16 then
checklen=left(thetitle,16) & "..."
else
checklen=thetitle
end if
end function
</script>
<script language="vbscript">
document.write (checklen("abcdefghijklmnopqrstuvwxyz"))
</script>[/CODE]