Solved

Blinking text on Web Page

Posted on 2007-11-25
6
1,840 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 

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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

Suggested Solutions

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…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…

730 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