What tag will make words FLASH on and off repeatedly?
Answers
Answered by
0
You can use the <blink> tag, but the best you can do is do this: <span id="blah">Some Text here</span> and put this code in a script tag:
function go() {
if (document.getElementById("blah").style.visibility == "visible") {
document.getElementById("blah").style.visibility = "hidden";
}
else {
document.getElementById("blah").style.visibility = "visible";
}
}
window.onload = function() {var x = window.setInterval("go()", 200);};
Change blah to whatever you need it to be, and the document.getElementBy("blah") to the id attribute. change 200 to how fast it blinks in milliseconds
function go() {
if (document.getElementById("blah").style.visibility == "visible") {
document.getElementById("blah").style.visibility = "hidden";
}
else {
document.getElementById("blah").style.visibility = "visible";
}
}
window.onload = function() {var x = window.setInterval("go()", 200);};
Change blah to whatever you need it to be, and the document.getElementBy("blah") to the id attribute. change 200 to how fast it blinks in milliseconds
Similar questions
Science,
7 months ago
English,
7 months ago
Business Studies,
7 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
Science,
1 year ago