+ Start a Discussion
MC34MC34 

Blinking text - VF component

Hi, I am trying to create some 11K+ contacts in sfdc that are newsletter subscribers on other system  and there is no other information available for them except email addresses.

As I upload them in SFDC i want service user - when they come accorss callers that have same email to fill required info. I would like to create a VF component that will sit on these contact records LEX page (filtered via parameters). I want to that text to blink for users to get attention so that they fill required details when asking the contacts.

I have this piece of code: I want to add red color and bold font in it too.  
 
<script type="text/javascript">
 (function() {
 var blinks = document.getElementsByTagName('blink');
  var visibility = 'hidden';
 window.setInterval(function() {
     for (var i = blinks.length - 1; i >= 0; i--) {
       blinks[i].style.visibility = visibility;
     }
     visibility = (visibility === 'visible') ? 'hidden' : 'visible';
   }, 250);
 })();
</script>
<blink>BLINKING TEXT</blink>

Can somebody help me how to add in VF component this code? 

Thank you, 
MC34
AnudeepAnudeep (Salesforce Developers) 
You can place the content within the script tag directly in your Visualforce component and it should work

See this post for sample code

Let me know if this helps