Sie sind auf Seite 1von 1

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BlinkText.aspx.

cs" Inh
erits="testingblinktext.BlinkText" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.or
g/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="Script/jquery-1.7.1.js" type="text/javascript"></script>
<script src="Script/JQuery2.1.1.js" type="text/javascript"></script>
</head>
<script>
$(document).ready(function () {
$("#<%=rbuttonlist.ClientID%>").change(function () {
var selected = $("#rbuttonlist input:radio:checked").val();
if (selected == '0') {
alert('ABUS');
blinkeffect('#Label1');
}
if (selected == '1') {
alert('BBUS');
blinkeffect('#Label1');
}
});
function blinkeffect(selector) {
$(selector).fadeOut('slow', function () {
$(this).fadeIn('slow', function () {
blinkeffect(this);
});
});
}
});
</script>
<body>
<form id="form1" runat="server">
<div>
<asp:RadioButtonList ID="rbuttonlist" runat="server">
<asp:ListItem Text="A-BUS" Value="0">A-Bus</asp:ListItem>
<asp:ListItem Text="B-BUS" Value="1">A-Bus</asp:ListItem>
</asp:RadioButtonList>
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</div>
</form>
</body>
</html>

Das könnte Ihnen auch gefallen