khanzada19
asked on
Blinking text on Web Page
i need blinking text on web page, i got this by using below mentioned script only when i use <blink> tags within html in Internet Explorer, but if picked the data along with tags from database it would not work. but firefox works perfeclty well in both conditions, i have PHP and MySQL and i have all menu items in database. could some one help me to get the desire
<SCRIPT>
function doBlink() {
// Blink, Blink, Blink...
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() {
// Make sure it is IE4
if (document.all)
setInterval("doBlink()",40 0)
}
window.onload = startBlink;
</SCRIPT>
<SCRIPT>
function doBlink() {
// Blink, Blink, Blink...
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() {
// Make sure it is IE4
if (document.all)
setInterval("doBlink()",40
}
window.onload = startBlink;
</SCRIPT>
Easy-to-test solution:
<span style="text-decoration: blink;">Can you see me?</span>
<span style="text-decoration: blink;">Can you see me?</span>
have a look at here
http://www.rgagnon.com/jsdetails/js-0098.html
you can set the frequency to blink also
http://www.rgagnon.com/jsdetails/js-0098.html
you can set the frequency to blink also
ASKER
Dear Rok & karthi
i got ur reply and thanx for this, but my problem is windows internet explorer, ur code and mine both works very well in firefox, but nothing blinking in windows internet explorer, i have these lines in database for example i have <blink>test</blink> or ur code <span style="text-decoration: blink;">Can you see me?</span> also, those lines works with firefox etc. but not with windows internet explorer
i got ur reply and thanx for this, but my problem is windows internet explorer, ur code and mine both works very well in firefox, but nothing blinking in windows internet explorer, i have these lines in database for example i have <blink>test</blink> or ur code <span style="text-decoration: blink;">Can you see me?</span> also, those lines works with firefox etc. but not with windows internet explorer
http://www.berkery.nl/stuff/blink.php
<!--[if IE]>
<script type="text/JavaScript">
function doIt(){
document.getElementById('b link').sty le.visibil ity = (document.getElementById(' blink').st yle.visibi lity == "hidden") ? "visible" : "hidden";
}
function Knipper(){
setInterval('doIt()',1000) ;
}
window.onload = Knipper;
</script>
<![endif]-->
<p>Ik wil <span id="blink">knipperende tekst!</span></p>
<!--[if IE]>
<script type="text/JavaScript">
function doIt(){
document.getElementById('b
}
function Knipper(){
setInterval('doIt()',1000)
}
window.onload = Knipper;
</script>
<![endif]-->
<p>Ik wil <span id="blink">knipperende tekst!</span></p>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
<style type="text/css">
<!--
p#blinking {text-decoration: blink;}
-->
</style>
HTML:
<p id="blinking"><a href="mailto:email@domain.