php - how to add this jquery to mysite -


i have jquery made in jsfiddle

http://jsfiddle.net/8cfk6/

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

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

php - Accessing static methods using newly created $obj or using class Name -