Hello everybody,
I have a conflict between 2 scripts, and I need both to work. I need reload on resize for a dropdown menu repositioning. The second script will reveal more options in a form, this one doesn’t work properly. Here is teh code:
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “
<html>
<head>
<script type=”text/javascript”>
function reDo(){ window.location.reload() }
window.onresize = reDo;
</script>
<script language=”JavaScript1.2″ type=”text/JavaScript1.2″ >
function controlHide_02() {
var max=1; //Number of sub sections
for(i=1;i<=max;i++){
var theId=’Print’+i;
var sub =document.getElementById(‘Print’ + i);
if (sub != null)
{
sub.style.display = ‘none’;
}
}
}
function controlExpand_02(which) {
var max=1; //Number of sub sections
for(i=1;i<=max;i++){
var theId=’Print’+i;
var sub =document.getElementById(‘Print’ + i);
if (sub != null)
{
if (sub.style.display != ”)
{
sub.style.display = ”;
}
else
{
sub.style.display = ‘none’;
}
}
}
}
</script>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
<title>Untitled Document</title>
</head>
<body>
<table border=”0″ cellspacing=”3″ class=”little”>
<tr>
<td width=”50%” valign=”top”>I have a project involving the following services:</td>
<td><input type=”checkbox” name =”Project-Print” value=”” onclick=”controlExpand_02();” />
Print Services</td>
</tr>
<tbody id=”Print1″ style=”display:none”>
<tr>
<td colspan=”2″ valign=”top”><h3>Print Department</h3></td>
</tr>
<tr>
<td valign=”top”>Quantity:</td>
<td><input name=”PrintQuantity” type=”text” class=”formfield” /></td>
</tr>
</tbody>
</table>
</body>
</html>
Thanks!