代码示例:(标识:vbst_right)
<html>
<body>

<script type="text/vbscript">
sometext="Welcome to our Web Site!!"
document.write(Left(sometext,5))
document.write("<br />")
document.write(Right(sometext,5))
</script>

</body>
</html>
运行结果: