On load message...
Autor: Sinisa B.
Visited 1399,
Followers 1,
Udostępniony 0
Hi,
what is the easiest way to make an "on-load" pop-up window message on index.html page?
I want to notify my visitors about the vacation period.
BTW - I do not want to use the Advertasing Message option - I just need a simple pop-up window message...
Thank you in advance!
BR,
Sinisa
Posted on the
Hello Sinisa,
The very simplest way...
Add the following code in Step 3 on the Expert tab of the Home Page Properties - insert it in the Custom Code section Before closing the BODY tag:
<script>
alert ("I will be on vacation, etc...");
</script>
This method also has the advantage that your clients will definitely see it as they have to click to dismiss the dialogue box before they can proceed further.
However, the message will reappear any time the Home Page is reloaded, whereas the Advertising Message is more sophisticated in that it permits the message to be displayed once only.
Kind regards,
Paul
Search the WebSite X5 Help Center
Hello Sinisa,
And you can also display a new html window with nice html code inside over your main website:
Check here for the demo project:
https://wsx5.afsoftware.fr/viewforum.php?f=111
You can download the project to investigate each page code.
You can see directely the effect here.
https://wsx5demo.afsoftware.fr/html-popup.html
Enjoy!
Regards
https://wsx5.afsoftware.fr
Autor
Thank you guys for the tips!
BR,
Sinisa
Or put it in the Sticky Bar.......
Adrian
(It > En) ...you could take inspiration from my historical (2009!) method with the DIV_CUSTOM + IFRAME ...
... very easy with a Copy / Paste, timed, and very easy to customize with any type of content:
>> 1
>> 2
.
ciao
.
Autor
@ KolAsim ,
thank you! I'm an ex Dreamweaver user & coder - but I got old ;) and don't have the time or will to do it anymore. That's why I bought this app for my company.
I'll find some FREE POP-UP message code and put in in HTML.
Cheers!
(It > En) ... however it is simple and easy ......
... to give it a try, you can try immediately and directly with a copy / paste ...
... paste this code into an HTML Code Object (height = 1px):
<div id="messaggioK" style="position:absolute;width:386px;height:275px;margin-left:-200px;top:50%;margin-top:-155px;left: 50%; padding: 20px;border-radius: 15px;background: yellow;font-family:arial;font-size:22px; color:blue;"><a id="X" style="position:absolute;top: -15px;right: 0px;font-size: 50px;font-weight: bold;text-decoration: none;color: green;" onMouseOver="this.style.color='red'" onMouseOut="this.style.color='green'" href="javascript:void(0)" onclick="chiudiK()"> × </a><iframe src="http://www.kolasim-zone.it/iframe/lorem.txt" width="386" height="270" frameborder="0"></iframe></div><script>function chiudiK () {document.getElementById("messaggioK").style.display="none";} setTimeout("chiudiK ()", 10000);</script>
...!... ... just change this URL in the code:
http://www.kolasim-zone.it/iframe/lorem.txt
... with the name of your "hidden" page and without applying the graphic, containing your warning, for example:
warning.html
..............
... you try, ... 1 second ...... ... then do what you think best... ... ciao......
.
@KolAsim, I have posted something for you here https://helpcenter.websitex5.com/pl/post/213936
nothing to see with this post here.
https://wsx5.afsoftware.fr
(It > En) ... Hi, I'm going to have a look ......
... consider that I am currently without a PC and without programs; ... I am on a makeshift station...
ciao
but good expert