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
Solved

Blinking Text

Posted on 2009-07-07
4
308 Views
Last Modified: 2013-11-23
I am using the blinking text function located at this site:

http://javascript.internet.com/text-effects/blinking-text.html

It works but I need to seperate the parts of the text that are blinking. For Instance, I have a message that says

                                             *****Stop*****

                      There is a problem please do not log into the system.

The problem is that the entire text blinks and I just need the stop to blink. The code that I am using is below.

div id="prem_hint" style="position:relative; left:0; visibility:hidden" class="prem_hint">
<font color="#FF0000"><b><div align=center>*****STOP*****</b></font>
</div>
<script language="javascript">Blink('prem_hint');</script>
<b><div align=center></div> <br>
 
<font color = "red"><b> There is a problem please do not log into the system. <b></b>

Open in new window

0
Comment
Question by:earngreen
  • 2
  • 2
4 Comments
 
LVL 59

Expert Comment

by:Kevin Cross
ID: 24798371
Try like this instead:
div id="prem_hint" style="position:relative; left:0; visibility:hidden" class="prem_hint">
<font color="#FF0000"><b><div id="prem_hint_stop" align=center>*****STOP*****</div></b></font>
<script language="javascript">Blink('prem_hint_stop');</script>
<b><div align=center></div> <br>
<font color = "red"><b> There is a problem please do not log into the system. <b></b>

Open in new window

0
 

Author Comment

by:earngreen
ID: 24805723
This seems to work fine with the exception of

If i leave off the < from the begining of your code, I get this line on my page although it blinks correctly

div id="prem_hint" style="position:relative; left:0; visibility:hidden" class="prem_hint">

If i add the < like

<div id="prem_hint" style="position:relative; left:0; visibility:hidden" class="prem_hint">

It completely takes away all of the text.

0
 
LVL 59

Accepted Solution

by:
Kevin Cross earned 500 total points
ID: 24805926
Sorry that was a type-o and I forgot to move the visibility:hidden style.
<div id="prem_hint" style="position:relative; left:0;" class="prem_hint">
<font color="#FF0000"><b><div id="prem_hint_stop" style=" visibility:hidden;" align=center>*****STOP*****</div></b></font>
<script language="javascript">Blink('prem_hint_stop');</script>
<b><div align=center></div> <br>
<font color = "red"><b> There is a problem please do not log into the system. <b></b>

Open in new window

0
 

Author Closing Comment

by:earngreen
ID: 31600818
That worked out great. Thanks
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Protect jar file - windows app 2 65
netstat -ano | find "8000" and taskkill /f /pid 2984 3 83
Java string replace 11 54
maven disable workspace resolution 1 21
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

856 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