Initializing...
Liveweave
expand_more
home
Home
data_object
CSS Explorer
arrow_outward
Palette
Color Explorer
arrow_outward
Polyline
Graphics Editor
arrow_outward
outbox_alt
Generative AI
arrow_outward
build
Tools
expand_more
restart_alt
Load base template
post_add
Generate Lorem ipsum...
code
Format HTML
code_blocks
Format CSS
data_object
Format JavaScript
library_add
Library
expand_more
A
Algolia JS
Animate CSS
Apex Charts JS
B
Bulma CSS
Bootstrap
C
Chart JS
Chartist
Create JS
D
D3
Dojo
F
Foundation
Fullpage JS
G
Granim JS
Google Charts
H
Halfmoon
J
jQuery
M
Materialize
Moment JS
Masonry JS
Milligram CSS
P
Pure CSS
Primer CSS
Popper JS
Pattern CSS
Picnic CSS
R
React JS
Raphael JS
Raisin CSS
S
Semantic UI
Skeleton CSS
Spectre CSS
Tachyons CSS
T
Tailwind
Three JS
U
UI Kit
Vis JS
W
Water CSS
download
Download
expand_more
developer_mode
Download as HTML
folder_zip
Download as .ZIP
cloud_upload
Save
account_circle
Login
settings
Settings
expand_more
14
px
Live mode
Night mode
Line number
Mini map
Word wrap
sync_alt
Reset Settings
smart_display
Run
<!DOCTYPE html> <html> <head> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script> <script type="text/javascript" src="http://code.jquery.com/mobile/latest/jquery.mobile.js"></script> <link type="text/css" rel="stylesheet" href="http://code.jquery.com/mobile/latest/jquery.mobile.css"/> <script type="text/javascript" src="http://cdn.jquerytools.org/1.2.7/full/jquery.tools.min.js"></script> <link type="text/css" rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/smoothness/jquery-ui.css"/> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js"></script> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script> <script type="text/javascript" src="http://malsup.github.com/jquery.cycle.all.js"></script> <title>Hogwarts Academy of Magic</title> </head> <body> <nav> <ul> <li><a href="#">Link 1</a></li> <li> <a href="#">Link 2</a> <ul class="fallback"> <li><a href="#">Sub-Link 1</a></li> <li><a href="#">Sub-Link 2</a></li> <li><a href="#">Sub-Link 3</a></li> </ul> </li> <li> <a href="#">Link 3</a> <ul class="fallback"> <li><a href="#">Sub-Link 1</a></li> <li><a href="#">Sub-Link 2</a></li> <li><a href="#">Sub-Link 3</a></li> <li><a href="#">Sub-Link 4</a></li> </ul> </li> <li><a href="#">Link 4</a></li> <li><a href="#">Link 5</a></li> <li><a href="#">Link 6</a></li> </ul> </nav> <div class="slideshow"> <img src="http://malsup.github.com/images/beach1.jpg" width="200" height="200" /> <img src="http://malsup.github.com/images/beach2.jpg" width="200" height="200" /> <img src="http://malsup.github.com/images/beach3.jpg" width="200" height="200" /> <img src="http://malsup.github.com/images/beach4.jpg" width="200" height="200" /> <img src="http://malsup.github.com/images/beach5.jpg" width="200" height="200" /> </div> </body> </html>
nav {background:#FFF000;float:left;width: 98%; } nav ul {text-align:center; z-index: 1000; } nav ul li {float:left;display:inline;} nav ul li:hover {position:relative;background:#E6E6E6;} nav ul li a {display:block;padding:15px 20px;color:#444;} nav ul li ul {position:absolute;width:110px;background:grey;} nav ul li ul li {width:110px;} nav ul li ul li a {display:block;padding:15px 10px;color:#000000;} nav ul li ul li:hover a {position:relative;background:#F7F7F7;} nav ul li ul.fallback {display:none;} nav ul li:hover ul.fallback {position:relative;display:block;} .slideshow{display:inline-block; ; }
$(document).ready(function(){ $('nav li ul').hide().removeClass('fallback'); $('nav li').hover( function () { $('ul', this).stop().slideDown(100); }, function () { $('ul', this).stop().slideUp(100); } ); }); $(document).ready(function() { $('.slideshow').cycle({ fx: 'fade' }); });