Solved

Blinking Text

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
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 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:

744 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

13 Experts available now in Live!

Get 1:1 Help Now