jquery script won't stop

Rmzfpoekhtjvq

New Member
I'm working on a jQuery script, but it doesn't stop. It will automatically resize to the original size of the div. What am I doing wrong?\[code\]$(document).ready(function(){ var menu = $("#menu"); var head = $("#head"); menu.click(function(){ head.animate({ left: "-=200", width: 940, height: 440 }, 1000 ); });});\[/code\]CSS\[code\]#head { position:absolute; margin: -100px 680px 0; min-width: 320px; background: #fff; }\[/code\]HTML \[code\]<div id="head"> <div class="contenth headlight"> <h4>%headlights%</h4> <div> <p>%headlights1%</p> <p>%headlights2%</p> <p>%headlights3%</p> </div> </div></div>\[/code\]
 
Back
Top