Write the code to maximize an image using javaScript?
Answers were Sorted based on User's Feedback
Answer / santosh pachauri
<img src="d:\xyz.jpg" name="img1"
onmouseover="img1.width='400';img1.height='400'"
onmouseout="img1.width='100';img1.height='100';" />
| Is This Answer Correct ? | 18 Yes | 5 No |
Answer / navneet verma
in santosh answer where is javascript ?????
| Is This Answer Correct ? | 8 Yes | 2 No |
Does spacing matter in javascript?
What are the variable naming conventions in javascript?
List few advantages of using javascript?
What is a global variable in programming?
i want to display time using hidden variable in a page,but when i click button that page that hidden variable loosing its value.i m sending the code also. <script type="text/javascript" language="javascript"> var tick=0; window.onload = function() { //debugger if(document.getElementById("hdnTicker").value != "") tick = parseInt(document.getElementById("hdnTicker").value); setInterval("Timer()",1000); } function Timer() { //debugger document.getElementById("hdnTicker").value = tick++; //alert(document.getElementById("hdnTicker").value); document.getElementById("lblTimeSpent").innerHTML = "0." + tick; if(tick == 30) { //message or redirect to result window alert('time is out'); //clearTimeout(); } } </script> <form id="form1" runat="server"> <div> <table> <tr> <td> <asp:Label ID="lblTimeSpent" runat="server" Visible="true" ForeColor="Blue" ></asp:Label> </td> <td> <%-- <asp:textbox EnableViewState="true" id="hdnTicker" runat="Server" style="visibility:hidden"></asp:textbox>--%> </td> </tr> <tr> <td> <asp:Button ID="btn" runat="server" Text="hi" OnClick="btn_Click" Height="30px" Width="60px" /> </td> </tr> </table> <%--<asp:HiddenField ID="txt" runat="server" Visible="true" />--%> </div> </form> <input type="hidden" id="hdnTicker" name="hdnTicker" enableviewstate="true" runat="server" />
What output will this program produce System.out.println(x+"+"+y+"="+(x+));
Describe the properties of an anonymous function in JavaScript?
Is javascript whitespace sensitive?
What is a function callback?
What is unobtrusive javascript?
What applications use javascript?
What is lambda in programming?