I can't believe the hassle I'm getting with vbscript. Please would someone tell me what on earth is wrong with the following code as I keep getting the error: line 53 expected end of line.
<HTML>
<HEAD>
<LINK REL="StyleSheet" HREF="index.css" TYPE="text/css" MEDIA="screen"></LINK>
<SCRIPT LANGUAGE="VBScript">
<!--
Option Explicit ' all variables must be declared.
'===================================================
'
'===================================================
function MouseOver(ButtonName)
select case ButtonName
case "Back" document.Back.src = "backbo.jpg"
case "CheckAll" document.CheckAll.src = "checkallbo.jpg"
case "UnCheckAll" document.UnCheckAll.src = "uncheckallbo.jpg"
case "Install" document.Install.src = "installbo.jpg"
end select
end function
'===================================================
'
'===================================================
function MouseOut(ButtonName)
select case ButtonName
case "Back" document.Back.src = "backb.jpg"
case "CheckAll" document.CheckAll.src = "checkallb.jpg"
case "UnCheckAll" document.UnCheckAll.src = "uncheckallb.jpg"
case "Install" document.Install.src = "installb.jpg"
end select
end function
function saveForm()
end function
function saveCookie(product)
end function
function checkall()
end function
function uncheckall()
end function
function productSelected()
end function
-->
</SCRIPT>
</HEAD>
<BODY>
<IMG src="leftmain.jpg" class="Logo">
<IMG SRC="Title2.jpg" class="Title">
<IMG SRC="rightmain.jpg" class="right">
<a href="" class="barbutton1" onmouseover="MouseOver('Back')" onmouseout="MouseOut('Back')" onmousedown="saveForm(); saveCookie('Products'); location='index.html'"><img src="backb.jpg" width="122" height="27" alt="Back" name="Back" border="0"></a>
<a href="" class="barbutton2" onmouseover="MouseOver('CheckAll')" onmouseout="MouseOut('CheckAll')" onmousedown="checkall()"><img src="checkallb.jpg" width="122" height="27" alt="Check all" name="CheckAll" border="0"></a>
<a href="" class="barbutton3" onmouseover="MouseOver('UnCheckAll')" onmouseout="MouseOut('UnCheckAll')" onmousedown="uncheckall()"><img src="uncheckallb.jpg" width="122" height="27" alt="Uncheck all" name="UnCheckAll" border="0"></a>
<a href="" class="barbutton4" onmouseover="MouseOver('Install')" onmouseout="MouseOut('Install')" onmousedown="productSelected()"><img src="installb.jpg" width="122" height="27" alt="Install selected products" name="Install" border="0"></a>
</BODY>
</HTML>
<HTML>
<HEAD>
<LINK REL="StyleSheet" HREF="index.css" TYPE="text/css" MEDIA="screen"></LINK>
<SCRIPT LANGUAGE="VBScript">
<!--
Option Explicit ' all variables must be declared.
'===================================================
'
'===================================================
function MouseOver(ButtonName)
select case ButtonName
case "Back" document.Back.src = "backbo.jpg"
case "CheckAll" document.CheckAll.src = "checkallbo.jpg"
case "UnCheckAll" document.UnCheckAll.src = "uncheckallbo.jpg"
case "Install" document.Install.src = "installbo.jpg"
end select
end function
'===================================================
'
'===================================================
function MouseOut(ButtonName)
select case ButtonName
case "Back" document.Back.src = "backb.jpg"
case "CheckAll" document.CheckAll.src = "checkallb.jpg"
case "UnCheckAll" document.UnCheckAll.src = "uncheckallb.jpg"
case "Install" document.Install.src = "installb.jpg"
end select
end function
function saveForm()
end function
function saveCookie(product)
end function
function checkall()
end function
function uncheckall()
end function
function productSelected()
end function
-->
</SCRIPT>
</HEAD>
<BODY>
<IMG src="leftmain.jpg" class="Logo">
<IMG SRC="Title2.jpg" class="Title">
<IMG SRC="rightmain.jpg" class="right">
<a href="" class="barbutton1" onmouseover="MouseOver('Back')" onmouseout="MouseOut('Back')" onmousedown="saveForm(); saveCookie('Products'); location='index.html'"><img src="backb.jpg" width="122" height="27" alt="Back" name="Back" border="0"></a>
<a href="" class="barbutton2" onmouseover="MouseOver('CheckAll')" onmouseout="MouseOut('CheckAll')" onmousedown="checkall()"><img src="checkallb.jpg" width="122" height="27" alt="Check all" name="CheckAll" border="0"></a>
<a href="" class="barbutton3" onmouseover="MouseOver('UnCheckAll')" onmouseout="MouseOut('UnCheckAll')" onmousedown="uncheckall()"><img src="uncheckallb.jpg" width="122" height="27" alt="Uncheck all" name="UnCheckAll" border="0"></a>
<a href="" class="barbutton4" onmouseover="MouseOver('Install')" onmouseout="MouseOut('Install')" onmousedown="productSelected()"><img src="installb.jpg" width="122" height="27" alt="Install selected products" name="Install" border="0"></a>
</BODY>
</HTML>