Please help me i am unable to toggle the image to get the text behind that when mouseover on the image..
HTML Code:<html> <head> <script src="script1/jquery-1.7.2.js" type="text/javascript"></script> <script> $(document).ready(function() { $('.nav-toggle').mouseover(function(){ //get collapse content selector var collapse_content_selector = $(this).attr('href'); //make the collapse content to be shown or hide var toggle_switch = $(this); $(collapse_content_selector).toggle(function(){ if($(this).css('display')=='none'){ } }); }); $('.nav-toggle').mouseout(function(){ //get collapse content selector var collapse_content_selector = $(this).attr('href'); //make the collapse content to be shown or hide var toggle_switch = $(this); $(collapse_content_selector).toggle(function(){ if($(this).css('display')=='none'){ } }); }); }); </script> </head> <body> <a href="sole.html" class="nav-toggle"><img src="images/12.jpg" width="298" height="59" alt="image"> <div id="collapse1" style="display:none">my text that is revealed is this section.....</div> </body> </html>



Reply With Quote


Bookmarks