Click here to Skip to main content
15,914,820 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I place the following code between 'Head' in master page. Not working and not also allowing
button controls to work. The same code works well in content page. What is the mistake? How to rectify it?

XML
<head runat="server">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js">
</script>
<script>
    $(document).ready(function() {
    $("#Amla").hide();
  $('#<%=Image4.ClientID %>').mouseover(function(){
  var div = $("#Amla");
  div.animate({ left: '357px', width:'74px',top:'330px', height:'33px' }, "fast");
  div.animate({ fontSize: '2em' }, "fast");
  $("#Amla").show();
  });
  $('#<%=Image4.ClientID %>').mouseleave(function() {
 var div = $("#Amla");
 $("#Amla").hide();
  });
  });
Posted

 
Share this answer
 
v2
Hello Raj,

Refer this article to understand and proceed

http://www.dotnetcurry.com/showarticle.aspx?ID=669[^]

All the best:)
 
Share this answer
 
v2
Usually we place javascript in head section,inside the the script tag
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900