954,600 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

.show() speed not working

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)<strong>.show('slow')</strong>;
        });
    }
//-->
</script>

<div id="myDiv">
    <a href="#" onClick="return false" onmousedown="javascript:swapContent('780');">780</a>
    <a href="#" onClick="return false" onmousedown="javascript:swapContent('379');">379</a>
    <a href="#" onClick="return false" onmousedown="javascript:swapContent('9400i');">9400i</a>
</div>
dschuett
Junior Poster
121 posts since Aug 2010
Reputation Points: 9
Solved Threads: 2
 

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?

twiss
Veteran Poster
1,005 posts since Apr 2010
Reputation Points: 177
Solved Threads: 101
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: