Added an 'onclick' to open the menu too.
This commit is contained in:
parent
9586dc4816
commit
63bfb56968
|
@ -128,6 +128,7 @@
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function openMenu() {
|
function openMenu() {
|
||||||
$(function(){
|
$(function(){
|
||||||
|
$("#ordertext").fadeIn(2000);
|
||||||
if ( $("#rightmenu").css("display") == "none" ) {
|
if ( $("#rightmenu").css("display") == "none" ) {
|
||||||
$("#rightmenu").css("display", "inline");
|
$("#rightmenu").css("display", "inline");
|
||||||
$("#rightmenu").animate({left: "-=" + $("#rightmenu").css("width")}, 1000);
|
$("#rightmenu").animate({left: "-=" + $("#rightmenu").css("width")}, 1000);
|
||||||
|
@ -147,7 +148,7 @@
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1 id="sticker" onmouseover='openMenu(); $("#ordertext").fadeIn(2000);'>Lilla</h1>
|
<h1 id="sticker" onmouseover='openMenu();' onclick='openMenu();' >Lilla</h1>
|
||||||
<div id="contact">
|
<div id="contact">
|
||||||
<span id="ordertext">Place your order here</span><br />
|
<span id="ordertext">Place your order here</span><br />
|
||||||
<span class="icons">
|
<span class="icons">
|
||||||
|
|
Loading…
Reference in a new issue