Last active
December 21, 2015 02:59
-
-
Save Arguseye/6238608 to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * The first commented line is your dabblet’s title | |
| */ | |
| ul{ | |
| list-style-type:none; | |
| width:300px; | |
| } | |
| ul li.item{ | |
| background-color:#FFCCCC; | |
| margin-top:5px; | |
| height:25px; | |
| } | |
| ul li.active{ | |
| background-color:#FF8888; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- content to be placed inside <body>…</body> --> | |
| <script src="http://code.jquery.com/jquery-1.9.1.js"></script> | |
| <ul> | |
| <li class="item active">javascript</li> | |
| <li class="item">css</li> | |
| <li class="item">html5</li> | |
| </ul> | |
| <script> | |
| $(document).ready(function(){ | |
| $(".item").hover(function(){ | |
| $(this).addClass("active"); | |
| },function(){ | |
| $(this).removeClass("active"); | |
| }); | |
| }) | |
| </script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // alert('Hello world!'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"html"} |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hover to change item liste style