Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 02, 2012 05:13 AM by asteranup
Member
64 Points
51 Posts
Apr 30, 2012 03:23 PM|LINK
<script type="text/javascript" language="javascript"> var color = true var int = setInterval('blink()', 500) function blink() { if (color == true) { document.getElementById('<%=hdnBGColor1.ClientID%>').style.color = "pink"; color = false } else { document.getElementById('<%=hdnBGColor1.ClientID%>').style.color = "blue"; color = true } } </script>
In Timer Tick event i have passed labal id like
hdnBGColor1.value="lblawards";
second timer tick
hdnBGColor1.value="Birthday";
But Above java script is not working properly is not get labal id or labal
if i hase directly labal name than it works fine like
document.getElementById('lblawards').style.color = "pink";
Please Give me solution how i can have value of labal or suggess me another code or javascript
All-Star
15181 Points
1552 Posts
Microsoft
May 02, 2012 02:52 AM|LINK
Hi dharamvaghela007,
Assuming the ID of your label control is hdnBGColor1, you can try the following
document.getElementById('<%=hdnBGColor1.ClientID%>').InnerText = 'your text goes here';
Thanks.
30184 Points
4906 Posts
May 02, 2012 05:13 AM|LINK
Hi,
Check few posts here-
http://delicious.com/anupdg/blink
dharamvaghel...
Member
64 Points
51 Posts
Blink lable in timer tick event
Apr 30, 2012 03:23 PM|LINK
<script type="text/javascript" language="javascript">
var color = true
var int = setInterval('blink()', 500)
function blink() {
if (color == true) {
document.getElementById('<%=hdnBGColor1.ClientID%>').style.color = "pink";
color = false
}
else {
document.getElementById('<%=hdnBGColor1.ClientID%>').style.color = "blue";
color = true
}
}
</script>
In Timer Tick event i have passed labal id like
hdnBGColor1.value="lblawards";
second timer tick
hdnBGColor1.value="Birthday";
But Above java script is not working properly is not get labal id or labal
if i hase directly labal name than it works fine like
document.getElementById('lblawards').style.color = "pink";
Please Give me solution how i can have value of labal or suggess me another code or javascript
Yanping Wang...
All-Star
15181 Points
1552 Posts
Microsoft
Re: Blink lable in timer tick event
May 02, 2012 02:52 AM|LINK
Hi dharamvaghela007,
Assuming the ID of your label control is hdnBGColor1, you can try the following
document.getElementById('<%=hdnBGColor1.ClientID%>').InnerText = 'your text goes here';
Thanks.
Feedback to us
Develop and promote your apps in Windows Store
asteranup
All-Star
30184 Points
4906 Posts
Re: Blink lable in timer tick event
May 02, 2012 05:13 AM|LINK
Hi,
Check few posts here-
http://delicious.com/anupdg/blink
Anup Das Gupta
Mark as Answer if you feel so. Visit My Blog