Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
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
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