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>

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?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.