Added an 'onclick' to open the menu too.

This commit is contained in:
Scott Wallace 2014-05-16 15:12:40 +01:00
parent 9586dc4816
commit 63bfb56968

View file

@ -128,6 +128,7 @@
<script type="text/javascript">
function openMenu() {
$(function(){
$("#ordertext").fadeIn(2000);
if ( $("#rightmenu").css("display") == "none" ) {
$("#rightmenu").css("display", "inline");
$("#rightmenu").animate({left: "-=" + $("#rightmenu").css("width")}, 1000);
@ -147,7 +148,7 @@
</script>
</head>
<body>
<h1 id="sticker" onmouseover='openMenu(); $("#ordertext").fadeIn(2000);'>Lilla</h1>
<h1 id="sticker" onmouseover='openMenu();' onclick='openMenu();' >Lilla</h1>
<div id="contact">
<span id="ordertext">Place your order here</span><br />
<span class="icons">