开发者

Jquery Expander plugin for FAQ page - Please

The FAQ page loads and the answers to the questions show up for a second and then hide. The page should load without showing the answers at all. It should load showing right away the questions only. The script I use is this:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js">
</script>
<script type="text/javascript"
src="http://plugins.learningjquery.com/expander/jquery.expander.js">
</script>
<script type="text/javascript">
    $(function () {          
$('div.readmore').expander({
            slicePoint: 119,
            expandText: 'Read More',
expandSpeed: 'slow',
            userCollapseText: 'Close'
        });
    });
</script>

What can I insert to not let this happen anymore开发者_如何学C? Thank you very much.


in plugin demo page I see they use

$(document).ready(function() { ... }

and you don't

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜