Initializing
Liveweave
Web
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
frame_source
Python Playground
New
arrow_outward
build
Tools
expand_more
restart_alt
Load "Hello Weaver!"
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> </head> <body> <div style="background-color:#2d2c2a; width:1000px; top:90px;"> <table style="padding:0px; margin:0xp; margin-left:10px;"> <tr> <td style="height:40px; padding:0px; margin:0px;"> <!--<p style="color:white; padding-right:10px; font-family:ARIAL;">Search</p>--> <form style="margin:0px; padding:0px;"> <ul id="navbar" style="position: relative; z-index:100;"> <!-- The strange spacing herein prevents an IE6 whitespace bug. --> <li><a id="cat_title" href="#">Categories</a><ul> <li><a href="#" onclick="setCat('cat one')">cat one</a></li><li> <a href="#" onclick="setCat('cat two')">cat two</a></li><li> <a href="#" onclick="setCat('cat three')">cat three</a></li></ul> <li><a id="loc_title" href="#">Location</a><ul> <li> <a href="#" onclick="setLocation('loc one')" >loc one</a></li><li> <a href="#" onclick="setLocation('loc two')" >loc two</a></li><li> <a href="#" onclick="setLocation('loc three')" >loc three</a></li></ul> </li> </ul> </div> </form> </td> <td style="margin-top:4px;"> <form action="result.php" method="post" style="padding:0px; margin:0px; margin-left:0px;"> <input id="submit_btn" type="submit" value="Search" name="submit" style="margin-left:0px;"> <input id="location" type="hidden" value="" name="l"> <input id="cat" type="hidden" value="" name="c"> </td> </form> <td style="color:white; padding-right:10px; padding-left:10px; font-family:ARIAL;"> </td> </tr> </table> </div> </body> </html>
/* These styles create the dropdown menus. */ #wrap { font-size: 1.3em; width: 500px; padding: 20px; margin: 0 auto; background-color: #fff; position: relative; z-index:100;} #navbar { margin: 0; padding: 0; height: 1em; } #navbar li { list-style: none; float: left; } #navbar li a { display: block; padding: 10px; background-color: #2d2c2a; color: #fff; text-decoration: none; } #navbar li ul { display: none; width: 10em; /* Width to help Opera out */ background-color: #69f;} #navbar li:hover ul, #navbar li.hover ul { display: block; position: absolute; margin: 0; padding: 0; } #navbar li:hover li, #navbar li.hover li { float: none; } #navbar li:hover li a, #navbar li.hover li a { background-color: #69f; border-bottom: 1px solid #fff; color: #000; } #navbar li li a:hover { background-color: #8db3ff; } #navbar li a:hover {background-color: #8db3ff;} #submit_btn {background-color:#2d2c2a; color:white; border:none;} #submit_btn button:hover{ background-color:#FFC; color:red; }
/* Write JavaScript here */ function setLocation(loc){ document.getElementById("location").value = loc; document.getElementById("loc_title").innerHTML = loc; } function setCat(cat){ document.getElementById("cat").value = cat; document.getElementById("cat_title").innerHTML = cat }