In the following test case, the java applet flickers when you mouse
over the text - this seems to be due to the fact that the DIV that we
are trying to get the width of is "display:none", therefore jQuery
temporarily changes the properties of it's parent while getting the
width.

Is there any way to correct this?


<html>
<head>
<title></title>

<script src="/visual/js/jquery.js"></script>

<script type="text/javascript">
$(document).ready(function() {
  $('#tester').bind('mouseover', function() {
    var w = $('#tester2').width();
  });
});
</script>

</head>

<body bgcolor="#bb8888">

  <div id="tester">Get width</div>

  <div id="tester2" style="display:none;">AAAAAAAAAAAAAAAA</div>

  <div style="position:absolute;right:100px;">
    <applet width="230" height="75"></applet>
  </div>

</body>

</html>



Thanks,
Lincoln

Reply via email to