开发者

how to make little arrowbutton on a <hr> (for slideUp/slideDown with JQuery)

quick question,

I have a <hr> and this script:

<script type="text/javascript" >
  $(function () {
         $("#hideClass").click(function () {
             if ($("div#bodyFake").is(":hidden")) {
                 $("div#bodyFake").slideDown();
             } else {
                 $("div#bodyFake").slideUp();
             }
         });
     });
 </script>

atm the script is meant to hide the entire body (this was just to test if it worked because I had some JQuery problems)

however, I would now like to have a little arrow/button on the right side of <hr> so I can hide the div (the 1 table) underneath it.

how to make little arrowbutton on a <hr> (for slideUp/slideDown with JQuery)

Does anybody kn开发者_JAVA技巧ow how I can get the little arrowbutton on there? (don't know what it's called..)

Thanks in advance!


Give it a height and a background image.

hr {
 background-image:url(....);
 background-position:right top;
 background-repeat:no-repeat;  
 height:20px;   
}


I now realize I could also have just used the ASCII-arrow alt+31 ▼ and alt+30 ▲

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜