• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 586
  • Last Modified:

cant get text to blink

Hello experts, i have the updated IE and my text wont blink here is how i am doing it, i want the word "new" to blink
<A style="COLOR: black; TEXT-DECORATION: none" href="toolrequest.aspx" target="_top">
<asp:label id="Label12" onmouseover="mouseon2('label12')" onmouseout="mouseoff2('label12')"
runat="server" Font-Bold="True" Font-Size="11pt" Font-Names="Bookman Old Style">Tooling Request Form</asp:label><font color="red">
<blink>(new)</blink></font></A>
0
tentavarious
Asked:
tentavarious
2 Solutions
 
BatalfCommented:
Try to put in

text-decoration:blink

in the <A> tag instead of text-decoration:none
0
 
tentavariousAuthor Commented:
nope didnt work.  Still wont blink does it matter that its in a Iframe?
0
 
seanpowellCommented:
0
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!

 
COBOLdinosaurCommented:
I think some versions of Opera, and the relic Netscrap 4 are the only browsers that have ever support the blink tag.

You have to script it:
<script type="text/javascript">
obj=; x=;
function blinkIt()
{
   obj=document.getElementById('blinkText');
   obj.style.color=(obj.style.color=='red')? 'white' : 'red';
}
</script>
fire it from the onload:
<body onload="x=setInterval('blinkIt()',100)">
and do the text this way:

<span id="blinkText">this text blinks</span>



Then throw away the code and don't use it because there are very few things that are more annoying on a web page then blinking text.

Cd&
0
 
webwomanCommented:
Blinking text is on a par with animated flying birds, auto popups that lack close options, and spam. The only thing worse IMHO are viruses.
0
 
ldbkuttyCommented:
This code also uses Timers, but with "visibility" option.

<html>
<head>
<title>Blink Text</title>
<script language="JavaScript">
onload=function() {
  setTimeout("blink_text('blink_text')",500);
}
function blink_text(div_id) {
  // If the text is hidden then display it, else hide the text.
  if (document.getElementById(div_id).style.visibility=="hidden")
    document.getElementById(div_id).style.visibility="visible"
  else
    document.getElementById(div_id).style.visibility="hidden"

  // use the timeout to run the code every 500 miliseconds
  setTimeout("blink_text('"+div_id+"')",500);
}
</script>
</head>
<body>
<div id="blink_text">hello world</div>
</body>
</html>

http://www.webmasterworld.com/forum21/6110.htm
0
 
tentavariousAuthor Commented:
I know blinking test is annoying, but that's what the boss wants, hard to argue with boss.  Thanks for the help
0
 
COBOLdinosaurCommented:
Glad we could help.  Thanks for the A. :^)

Cd&
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now