harunpehlivan
8/2/2018 - 5:09 PM

jQuery slideToggle() Metodu

jQuery slideToggle() Metodu

<!DOCTYPE html>
<html>
    <head>
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
        <script>
            $(document).ready(function(){
                              $("#flip").click(function(){
                                               $("#panel").slideToggle("slow");
                                               });
                              });
            </script>
        
        <style>
            #panel,#flip
            {
                padding:7px;
                text-align:center;
                background-color:#e5efcc;
                border:solid 1px #c3c3c4;
            }
        #panel
        {
            padding:60px;
            display:none;
        }
        </style>
    </head>
    <body>
        
        <div id="flip">PANELI KALDIR-INDIR(TIKLA)</div>
        <div id="panel">HARUN PEHLİVAN INFORMATION TECHNOLOGY GROUP</div>
        
    </body>
</html>