javascript - Hover div, show other div -
<div id="quickstart"> <asp:hyperlink id="hlhemenbasla" runat="server">deneyim paylaş</asp:hyperlink> </div> <div id="visiblepanel" class="visiblepanel"></div>
i have 2 div
s on website.
while hovering on div#quickstart
, div#visiblepanel
should visible; @ other times, should not be.
i found code on internet, "couldn't run none".
first, make sure you're not self closing <script>
tags.
it should be:
<script type="text/javascript" src="scripts/jquery-1.6.2.js"></script>
not
<script type="text/javascript" src="scripts/jquery-1.6.2.js"/>
then show/hide:
$('#quickstart').hover(function() { $('#visiblepanel').toggle(); });
Comments
Post a Comment