Jump to content
Sign in to follow this  
Caroline Worboys

Pop Up message

Recommended Posts

Has anybody produced any code that creates a pop up word on a site such as a 'word of the week' or 'Tip of the week?' …. and if not, would anybody like to produce one :)

We would like a self-appearing/disappearing word or statement to pop up in a site or planner (via widget) and was thinking maybe it could take information from an excel file that has the words/tips plus the dates they need to be shown?

Apologies if this already exists. If it does, can somebody send me details

Thanks in advance

Caroline

Share this post


Link to post
Share on other sites

We actually have a modal preset, but i've not been able to find the code today to dig it out.  I'll look again tomorrow.  This should be quite simple - provided it's just text you want.

The more features (links, styling etc...) the hard it becomes, but still possible.

 

Share this post


Link to post
Share on other sites

A quick win would be to stick in a HTML widget and add something like....

 

<script>

alert("I am an alert box!");

// prompt, used if you want the user input

var person = prompt("Please enter your name", "Harry Potter");

// pops OK or Cancel to proceed

var r = confirm("Press a button");
    
</script>

  • Thanks 1

Share this post


Link to post
Share on other sites

Here's the modal code:

this.modal(msgheader,this.view('modal.ejs',{
                txt: this.prefs.modaltext.value
}));

I'm currently putting it into a widget - no idea when I'll get to finish it though

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...