Solved

Blinking Text

Posted on 2009-07-07
4
309 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
[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
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

726 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