Uzanta Nomo: Pasvorto:
Nova Uzanta Registrado
Moderatoro: toedder 
 Computers

Have computer questions, hints, or tips?

BBW's Tips on how to speed up page load the brainking site
Computers (BIG BAD WOLF, 2007-03-12 20:16:01)



Kio novas pri MP3 players?
Listo de diskutaj forumoj
Moduso: Ĉiu rajtas sendi
Serĉi en mesaĝoj:  

28. Februaro 2006, 20:42:31
Chicago Bulls 
Temo: Re:
Andersp: No there is no _tag_ that you can use in both for blinking. There are other ways to make a text to blink in IE and here is one:

Put inside the HTML code for IE and at the starting of writing the code, for example after the body definition, the following:
------------
<SCRIPT>

funct
ion DoBlink()
{
var blink = document.all.tags("BLINK")
for (var i=0; i blink.length; i++)
blink[i].style.visibility = blink[i].style.visibility == "" ? "hidden" : ""
}

function startBlink()
{
if (document.all)
setInterval("doBlink()",600)
}

window.onload = startBlink;

</SCRIPT>
--------------


So with this way, you can from now on use in IE the blink tag in its usual form!
That means if you write the above script, you then can write <blink>Teeeeeeext</blink> and the teeeeeext to be blink in IE!
Notice the number 600. You can change it and control the blinking frequency......



For example in this:
------------
<html>
<body>


<SCRIPT>

function DoBlink()
{
var blink = document.all.tags("BLINK")
for (var i=0; i blink.length; i++)
blink[i].style.visibility = blink[i].style.visibility == "" ? "hidden" : ""
}

function startBlink()
{
if (document.all)
setInterval("doBlink()",600)
}

window.onload = startBlink;

</SCRIPT>


Text-1 <br>
<blink>Text-2</blink>


</body>
</html>
----------------
-----

The text-1 will NOT blink while the text-2 will blink in IE!

Dato kaj horindiko
Amikoj salutintaj
Favoritaj forumoj
Kunularoj
ĈĉĜĝĤĥĴĵŜŝŬŭ

Hodiaŭa konsilo
Copyright © 2002 - 2024 Filip Rachunek, ĉiuj rajtoj reservita.
Supren