php - how to add this jquery to mysite -
i have jquery made in jsfiddle
how go getting on site....
http://pcrepairs.tk/services.php
i have :
<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
in head tags
andthen
<script language="javascript" type="text/javascript"> mycode </script>
just before html in body.
it isnt working :/ putting javascript code in wrong place?
this should work ...
$(document).ready(function() { $("#web").click(function () { $("#contweb").stop().slidetoggle(); return false; }); $("#web").hover(function () { $(this).stop().css({ "cursor": "pointer" }) }); $("#screen").click(function () { $("#contscreen").stop().slidetoggle(); return false; }); $("#screen").hover(function () { $(this).stop().css({ "cursor": "pointer" }) }); $("#keyboard").click(function () { $("#contkey").stop().slidetoggle(); return false; }); $("#keyboard").hover(function () { $(this).stop().css({ "cursor": "pointer" }) }); });
Comments
Post a Comment