Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Senior Coder Spudhead's Avatar
    Join Date
    Jun 2002
    Location
    London, UK
    Posts
    1,856
    Thanks
    8
    Thanked 110 Times in 109 Posts

    Applying transition to td - checkbox becomes uncheckable

    Hey,

    OK, got the following:

    Code:
    <script language="JavaScript">
    function toggleform(whichAction){
    	document.form1.action=whichAction;
    	document.form1.submit();
    }
    function rollover(tableCell){
    	tableCell.filters["blendTrans"].Apply();
    	tableCell.style.backgroundColor='#3366CC';
    	tableCell.style.color='#FFFFFF';
    	tableCell.filters["blendTrans"].Play();
    }
    function rollout(tableCell){
    	tableCell.filters["blendTrans"].Apply();
    	tableCell.style.backgroundColor='#FFFFFF';
    	tableCell.style.color='#666666';
    	tableCell.filters["blendTrans"].Play();
    }
    </script>

    Code:
    <td width="20%" align="center" class="body" style="color:#666666;background-color:#FFFFFF; filter:blendTrans(duration=0.5);" onMouseover="rollover(this)" onMouseout="rollout(this)">Family Choice<br><img src="images/familychoice.jpg" width="30" height="30" alt="Family Choice" border="0"><br><input type="checkbox" name="U_FamChoice" value="Yes" onClick="toggleform('holidaysearch.asp')"></td>
    The problem is is that I can't now check the checkbox - the rollover function seems to be interfering with the toggleform one. Any ideas?

  • #2
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    split the cell <td> and put the checkbox in the other cell with no css style or with other name
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •