What's Here?
- Members: 244,284
- Replies: 693,139
- Topics: 113,161
- Snippets: 3,863
- Tutorials: 935
- Total Online: 993
- Members: 62
- Guests: 931
|
Simple script to make your text blink
|
Submitted By: BetaWar
|
|
Rating:

|
|
Views: 1,928 |
Language: JavaScript
|
|
Last Modified: October 9, 2008 |
|
Instructions: Simple change the ID of the DIV you want to have blinky and then put whatever text you want in it. |
Snippet
<script>
function blink(elId){
var html = '';
if(document.all){
html += 'var bl = document.all.' + elId + ';';
}
else if(document.getElementById){
html += 'var bl = document.getElementById("' + elId + '");';
}
html += 'bl.style.visibility = ' + 'bl.style.visibility == "hidden" ? "visible" : "hidden"';
if(document.all || document.getElementById){
setInterval(html, 100);
}
}
function init(){
blink('Text');
}
onload=init;
</script>
<div id="Text">
<blink>
Hello blinky!
</blink>
</div>
Copy & Paste
|
|
|
Be Social
Programming
Web Development
Reference Sheets
Bye Bye Ads
Monthly Drawing
Top Contributors
Top 10 Kudos This Month
|