JAVASCRIPT   43

important.js

Guest on 23rd August 2021 05:01:58 PM

  1. // JavaScript Document
  2.  
  3. if (imp_count>0) {
  4.         choice = pickRandom( imp_count );  // only pick one of the top priority items
  5.         document.writeln( '<div class="importantNews">Important News');
  6.         document.writeln( '<div class="newsItemTitle"><a href="'+f_href[choice]+'"'+
  7.                 ( (open_new_imp[choice]==1)?' target="_blank"':'')
  8.                 +'>[ full story ]</a>'+f_desc[choice]+'</div>');
  9.         document.writeln( '</div>');
  10. }

Raw Paste


Login or Register to edit or fork this paste. It's free.