Solved

Blinking Text

Posted on 2009-07-07
4
307 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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
more than one jdk and one jre 1 43
SHA2 certs for IIS AND Java? 2 97
maven module vs maven project 3 23
Android development question 2 38
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

832 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