Skip to Content

Hi ,

I had a small requirement in my project to set a downtime for marquee announcements on portal. My client was bored of informing the admin always to remove the announcement 😉 😀

This thread helped me doing it Need Scrolling message in portal

Additionally I followed the below steps:

1. Create a HTML page with following code(copy paste) 😉

<html>

<head>

<script type=”text/javascript”>

  var dispLimit = [];

  dispLimit[1] = “2014 Jul 11”;  //this is for disp1;

  dispLimit[2] = “2014 Jul 10”;  //etc;

  dispLimit[3] = “2014 Jul 09”;

  dispLimit[4] = “2014 Jul 08”;

  var GMToffset = -5;  // this is your CURRENT GMT offset, whether Standard or Daylight

  var refDate = new Date();

  refDate.setHours(GMToffset+refDate.getHours()+refDate.getTimezoneOffset()/60);

  refDate.setHours(0,0,0,0);

  function init(){

  for (i=1; i<dispLimit.length; i++)

  {

  if (new Date(dispLimit[i]) – refDate <= 0)

  {

  document.getElementById(‘disp’+i).style.display = ‘none’;

  }

  }

  }

   onload=init;

</script>

</head>

  <body>

    <div id=’disp1′><marquee direction=”left” scrollamount=”2″>

<font color=”blue” size=2><i>I wont be visible after 11th July</i></font></div>

</marquee>

  </body>

</html>

2. Upload the HTML page in KM contents

3. Create an iview and give the path of HTML page(KM folder path) to that iview

4. Create WD page and embed iview into it

5. Display this page on portal login page.

Hope this will help few 🙂

Best Wishes,

Supriya

To report this post you need to login first.

1 Comment

You must be Logged on to comment or reply to a post.

Leave a Reply