I used a simple Java Script code as a text file and linked from a webpart on the page to show a pop up window as an announcement. but It's gonna be annoying if it appears every time user go to the home page :( Is there any way I can handle this? I should mention that it's SP2010. My simple code is :
<script type="text/javascript">
window.setTimeout(popupwin,5000);
function popupwin(){
ExecuteOrDelayUntilScriptLoaded(function ()
{
var options = SP.UI.$create_DialogOptions();
options.title = "Announcements";
options.width = 400;
options.height = 400;
options.url = "/SitePages/Announcements.aspx";
SP.UI.ModalDialog.showModalDialog(options);
},'sp.js');
}
</script>