I have this java code:
<script src='http://www.google.com/jsapi'></script> <script type='text/javascript'> google.load('jquery', '1.2.6'); $('a#more').click(function() { $('#info_box').show('blind', { direction: 'vertical' }, 800); }); </script>
And this link:
<a href='#' id='more'>More Info...</a>
info_box is just a div with the properties:
width: 30%; position: absolute; left: 35%; top: 250px; background-color: #FFFFFF; border: 2px solid #000000; visibility: hidden;
How can this not be working, been trying to figure it out for 20 minutes.
You may use the
ready()function anddisplay: nonein the initial CSSWorking HTML:
There are problems with the show function also. You are using a not documented
params. Use the ‘animate’ function instead to do a custom animation.I also recommend you to use Firebug to troubleshot javascript problems in the future.