Caroline Worboys Posted June 19, 2019 Share Posted June 19, 2019 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 Link to comment Share on other sites More sharing options...
Graham Quince Posted June 20, 2019 Share Posted June 20, 2019 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. Link to comment Share on other sites More sharing options...
ADT Posted June 21, 2019 Share Posted June 21, 2019 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> 1 Link to comment Share on other sites More sharing options...
Graham Quince Posted June 21, 2019 Share Posted June 21, 2019 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 Link to comment Share on other sites More sharing options...
Graham Quince Posted June 25, 2019 Share Posted June 25, 2019 Coming soon... 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now