您的位置:主页>网络学院>网页制作>DHTML教程>
推荐文章
{ 在以前的HTML里,元素的位置只能依次排列,我们很难精确地……
这是一个幻灯片播放程序,也就是一图片轮流播放的程序。我们在一……
几乎每天在脚本技术领域都会出现新的技术并流行,脚本技术引……
  随着Internet在中国的飞速发展和不断普及,越来越多的人将网……
IE的DHTML对象提供了四个可读写的属性来动态操作页面元素的内容……
这是一个非常简单的菜单,虽然简单,但我们可以从这个示例中……
广告
DHTML Scriptlet
 
内  容

 DHTML Scriptlet
什么是 DHTML scriptlet 呢??
就是将一些含有DHTML 描述指令集的HTML网页,
我们可以将之崁入其它的网页中
如下范例,
亦可至 http://image99.asp-in-taiwan.com.tw/study/s002.asp 看结果!!
其中 s002.asp 为主网页
s002_b.htm 为描述指令网页
PS: 限用 IE5 喔...


---s002.asp---
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<meta http-equiv="Content-Language" content="zh-tw">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>研读主题</title>
</head>

<body>

<p>DHMTL/Scriptlet 测试 (Only Support IE5)</p>
<form method="POST" action="s002.asp" webbot-action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults" U-File="../_private/form_results.txt"
S-Format="TEXT/CSV" S-Label-Fields="TRUE" startspan --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot bot="SaveResults" endspan i-checksum="43374" -->
<p><input type="button" value="Hi" name="Hi">

<input type="button" value="Hello" name="Hello">


</p>
</form>
<p> </p>

</body>


<OBJECT id=test style="BORDER-LEFT:medium none;
HEIGHT:0px;LEFT:0px;TOP:0px;WIDTH:0px"
type=text/x-scriptlet VIEWASTEXT>
<PARAM NAME="URL" VALUE="s002_b.htm">
</OBJECT>

</html>


<script language="VBScript">
Sub Hi_OnClick()
test.ShowHI
End Sub

Sub Hello_OnClick()
msgbox test.hello
End Sub

</script>
===============================================
----s002_b.htm-----

<script language="VBScript">

Function Public_Hello()

Public_Hello = "Hello, World"

End Function

Sub Public_ShowHi()

MsgBox "Hi"

End Sub

</script>