Solved

Blinking text on Web Page

Posted on 2007-11-25
6
1,831 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Suggested Solutions

Many companies are making the switch from Microsoft to Google Apps (https://www.google.com/work/apps/business/). Use this article to learn more about what Google Apps has to offer and to help if you’re planning on migrating to Google Apps. It is …
A publishing tool, a Version Control System, or a Collaboration Platform! These can be some of the defining words for the two very famous web-hosting Git repositories: Bitbucket and Github. Git is widely used amongst the programmers and developers f…
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…
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…

747 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

11 Experts available now in Live!

Get 1:1 Help Now