VBscript til Javascript
Jeg skal bruge et java script som kan det samme som dette VBscript:<html>
<head>
<title>???</title>
<script language="VBScript">
sub Document_OnClick()
dim eSrc, IE
set eSrc = window.event.srcElement
Set IE = CreateObject("InternetExplorer.Application")
test02 = eSrc.info01
if eSrc.className = "86" then
With IE
.left=0
.top=0
.height=715
.width=865
.menubar=0
.toolbar=0
.statusBar=0
.navigate "About:Blank"
.visible=1
End With
Do while IE.busy
loop
With IE.document
.Open
.WriteLn "<HTML><HEAD>"
.WriteLn "<TITLE></TITLE></HEAD>"
.WriteLn "<BODY>"
.WriteLn "<a href=Luk>Luk</a>"
.WriteLn "<center><b><img src=" & test02 & "></img></b></center>"
.WriteLn "</BODY>"
.WriteLn "</HTML>"
.Close
End With
end if
if eSrc.className = "107" then
With IE
.left=0
.top=0
.height=883
.width=1089
.menubar=0
.toolbar=0
.statusBar=0
.navigate "About:Blank"
.visible=1
End With
Do while IE.busy
loop
With IE.document
.Open
.WriteLn "<HTML><HEAD>"
.WriteLn "<TITLE></TITLE></HEAD>"
.WriteLn "<BODY>"
.WriteLn "<center><b><img src=" & test02 & "></img></b></center>"
.WriteLn "</BODY>"
.WriteLn "</HTML>"
.Close
End With
end if
Set IE = Nothing
end sub
</script>
</head>
<body>
<br>
<a href=Luk>Luk</a>
<center><a href="#" class="86" info01="0001.jpg">Dette er en test</a></center>
<center><a href="#" class="107" info01="0002.jpg">Dette er en test</a></center>
</body>
</html>