|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Blinking Text
Is it possible to make a blinking text in html? Anyone know how to do it?
All replies are appreciated. Sincerely Yours, Hery |
|
#2
|
||||
|
||||
|
not many browsers support it because it's considered an eye-sore. But if you must have it, this is probably the most appropriate way to do it:
Code:
<head>
<style>
<!--
#blinking {text-decoration: blink;}
-->
</style>
</head>
<body>
<div id="blinking">This text will be blinking if your browser supports it.</div>
<body>
__________________
If you found a post of mine helpful, please click on the on my post to add to my reputation.
|
|
#4
|
||||
|
||||
|
Or you can do it like this.
Code:
<body onload="setInterval('blinkIt()',500)">
<script type="text/javascript">
function blinkIt() {
if (!document.all) return;
else {
for(i=0;i<document.all.tags('blink').length;i++){
s=document.all.tags('blink')[i];
s.style.visibility=(s.style.visibility=='visible') ?'hidden':'visible';
}
}
}
</script>
<blink>Am i blinking ?</blink>
|
|
#5
|
||||
|
||||
|
just wondering if "tags" exists in Mozilla? The code I've written was designed to work on Mozilla, but for some reason something there is not good.
![]() |
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > Blinking Text |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|