DHTMLScriptlet
O que é scriptlet DHTML?
É para converter algumas páginas da web HTML contendo um conjunto de instruções de descrição DHTML,
Podemos incorporá-lo em outras páginas da web
Como exemplo,
Você também pode acessar http://image99.asp-in-taiwan.com.tw/study/s002.asp para ver os resultados!!
Entre eles, s002.asp é a página principal
s002_b.htm é uma página da web que descreve instruções
PS: Somente para IE5...
---s002.asp---
<html>
<cabeça>
<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>Tópico de estudo</title>
</head>
<body>
<p>Teste DHMTL/Scriptlet (suporta apenas 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" startpan --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot bot=" SalvarResultados" endspan i-checksum="43374" -->
<p><input type="button" value="Oi" name="Oi">
<input type="button" value="Olá" name="Olá">
</p>
</form>
<p> </p>
</body>
<OBJECT id=test style="BORDER-LEFT:medium nenhum;
ALTURA:0px;ESQUERDA:0px;TOPO:0px;LARGURA:0px"
type=texto/x-scriptlet VIEWASTEXT>
<PARAM NAME="URL" VALUE="s002_b.htm">
</OBJETO>
</html>
<linguagem de script="VBScript">
SubHi_OnClick()
teste.ShowHI
End Sub
Sub Hello_OnClick()
teste msgbox.olá
Fim do sub
</script>
==============================================
----s002_b.htm-----
<script language="VBScript">
Função Public_Hello()
Public_Hello = "Olá, mundo"
End Function
Sub Public_ShowHi()
MsgBox "Hi"
End Sub
</script>