Solved

Blinking text on Web Page

Posted on 2007-11-25
6
1,832 Views
Last Modified: 2008-09-13
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()",400)
}
window.onload = startBlink;
</SCRIPT>
0
Comment
Question by:khanzada19
  • 4
6 Comments
 
LVL 12

Expert Comment

by:Rok-Kralj
ID: 20345744
CSS:
<style type="text/css">
<!--
p#blinking {text-decoration: blink;}
-->
</style>

HTML:
<p id="blinking"><a href="mailto:email@domain.com">Email me</a></p>
0
 
LVL 12

Expert Comment

by:Rok-Kralj
ID: 20345745
Easy-to-test solution:

<span style="text-decoration: blink;">Can you see me?</span>
0
 
LVL 17

Expert Comment

by:contactkarthi
ID: 20347531
have a look at here

http://www.rgagnon.com/jsdetails/js-0098.html

you can set the frequency to blink also
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 

Author Comment

by:khanzada19
ID: 20350393
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
0
 
LVL 12

Expert Comment

by:Rok-Kralj
ID: 20350836
http://www.berkery.nl/stuff/blink.php

<!--[if IE]>
<script type="text/JavaScript">
function doIt(){
document.getElementById('blink').style.visibility =  (document.getElementById('blink').style.visibility == "hidden") ? "visible" : "hidden";
}
function Knipper(){
setInterval('doIt()',1000);
}
window.onload = Knipper;
</script>
<![endif]-->

<p>Ik wil <span id="blink">knipperende tekst!</span></p>
0
 
LVL 12

Accepted Solution

by:
Rok-Kralj earned 500 total points
ID: 22466020
Objections:

1. My last solutuion works.
2. Even if it wouldn't work, he should reply and stay on this questions.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now