0

I have the following code working just fine, however I cannot get the .show('slow') on the "myDiv" content to "slow" down when displaying. Actually I can remove the .show('slow') all together and everything still works just fine. It is as if it is ignoring the .show() completely on that line.

Any help is much appreciated!

<script language="JavaScript" type="text/javascript">
<!--
   function swapContent(cv) {
      $("#myDiv").html('<img src="loader.gif"/>').show();
      var url = "loadtruck.php";
      $.post(url, {contentVar: cv} ,function(data) {
        $("#myDiv").html(data)[B].show('slow')[/B];
        });
    }
//-->
</script>

<div id="myDiv">
    <a href="#" onClick="return false" onmousedown="javascript:swapContent('780');">780</a><br>
    <a href="#" onClick="return false" onmousedown="javascript:swapContent('379');">379</a><br>
    <a href="#" onClick="return false" onmousedown="javascript:swapContent('9400i');">9400i</a>
</div>
2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by twiss
0

I'm not sure if I understand what the problem is, but what you want might be an different easing. If not, do you have a page live to explain what doesn't work?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.