Hallo zusammen
habe ein kleines Problem und zwar funktioniert mein VBScript nicht mehr nachdem ich Hovereffekt in JavaScript eingebaut habe. Es kommt keine Fehlermeldung. Wird einfach ignoriert. Darf man dies nicht?
Hier mein Quelltext:
Hovereffekt:
<script type="text/javascript" language="JavaScript">
<!--
/* Hoovereffek der Navigationsbuttons */
function hoover(Btn, pos) {
if (pos == 1) {
Btn.style.color = "blue";
Btn.style.fontWeight = "bold";
} else {
Btn.style.color = "black";
Btn.style.fontWeight = "normal";
}
}
//-->
</script
Button:
<input type="button" value="Knopf"
onClick="load_word '1','C:\Eigene Dateien\Test.dot'"; onMouseOver="hoover(this, 1);" onMouseOut="hoover(this, 0);">
und mein VBScript:
<script language="VBScript">
<!--
function load_word(mode, pfad)
'mode 0 = normal open
'mode 1 = open as dot
Set appWord = CreateObject("Word.Application")
' Display the application.
appWord.WindowState = 0
appWord.Height = 600
appWord.Width = 800
appWord.Left = 0
appWord.Top = 0
appWord.Visible = TRUE
' Open the document.
' mode 1 = dot file 0 = docfile
if mode = 1 then
appWord.Documents.Add (pfad)
end if
if mode = 0 then appWord.Documents.Open (pfad) end if
' Close the object variable.
Set appWord = Nothing
end function
-->
</script>
Hoffe mir kann jemand helfen, dass beides in einer HTML Seite funktioniert. Danke im voraus
CU Thomas