WebSite X5Help Center

 
Sinisa B.
Sinisa B.
User

On load message...  en

Autor: Sinisa B.
Visitado 1401, Seguidores 1, Compartilhado 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

Publicado em
11 RESPOSTAS - 1 ÚTIL
Paul M.
Paul M.
Moderator

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

Ler mais
Publicado em de Paul M.
Paul M.
Paul M.
Moderator

Ler mais
Publicado em de Paul M.
Sinisa B.
Sinisa B.
User
Autor

Thank you guys for the tips!

BR,

Sinisa

Ler mais
Publicado em de Sinisa B.
Adrian B.
Adrian B.
User

Or put it in the Sticky Bar.......

Adrian

Ler mais
Publicado em de Adrian B.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Usuário do mês ESUsuário do mês PT
Sinisa B.
... ... ... BTW - I do not want to use the Advertasing Message option - I just need a simple pop-up window message...... ... ... 

(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

.

Ler mais
Publicado em de  ‪ KolAsim ‪ ‪
Sinisa B.
Sinisa B.
User
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!

Ler mais
Publicado em de Sinisa B.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Usuário do mês ESUsuário do mês PT
Sinisa B.
@ KolAsim ... ... ... and don't have the time or will to do it anymore. ... ... ... I'll find some FREE POP-UP message code and put in in HTML. ... ... 

(It > En) ... however it is simple and easy ...wink...
... 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()"> &times; </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 ...cool... ... then do what you think best... ... ciao...wink...

.

Ler mais
Publicado em de  ‪ KolAsim ‪ ‪
Axel  
Axel  
User

but good expert foot-in-mouthembarassed

Ler mais
Publicado em de Axel