What's Here?
- Members: 131,939
- Replies: 470,208
- Topics: 72,878
- Snippets: 2,538
- Tutorials: 664
- Total Online: 1,890
- Members: 73
- Guests: 1,817
Who's Online?
|
Simple script to make your text blink
|
Submitted By: BetaWar
|
|
|
Rating:
|
|
Views: 325 |
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
|
|
|
Programming
Web Development
Reference Sheets
Bye Bye Ads
Free DIC T-Shirt
Related Sites
Monthly Drawing
Partners
Top Contributors
Top 10 Kudos This Month
|