PDA

View Full Version : نمايش مقادير مختلف در label



karimi84
یک شنبه 08 دی 1392, 12:42 عصر
سلام
روي صفحه 5 تا دكمه كنار هم است و زير ان يك ليبل قرار دارد مي خوام وقتي موس روي هر يك از اين دكمه ها حركت كرد توضيحات ليبل تغيير كند
اين كار رو چطوري بايد انجام بدم
با تشكر

download69
یک شنبه 08 دی 1392, 13:05 عصر
با جاوا و جی کوئری این کار امکان پذیره

karimi84
یک شنبه 08 دی 1392, 13:11 عصر
من در اين مورد اصلا اطلاعي ندارم ميشه راهنمائي كنيد

kamranetemadi
یک شنبه 08 دی 1392, 14:50 عصر
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="~/WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<link type ="text/css" rel ="Stylesheet" href="mainstyle.css" />
<script type="text/javascript" src="Scripts/jquery-1.7.1.min.js"></script>
<script type="text/javascript">
function hov(th) {
$("#Label1").text($(th).attr("title"));
}
</script>
</head>


<body>
<form id="form1" runat="server">
<div>

<input id="Button1" title="111111111" onmouseover="hov(this)" type="button" value="button" />
<input id="Button2" title="222222222" onmouseover="hov(this)" type="button" value="button" />
<input id="Button3" title="333333333" onmouseover="hov(this)" type="button" value="button" />
<input id="Button4" title="444444444" onmouseover="hov(this)" type="button" value="button" />
<label id="Label1">text</label>
</div>
</form>
</body>
</html>