Hvad er et modal-vindue?  Se eksempel...

A modal window is a window which take focus and temporarily hides the content of the page.
The modal window must be closed before the user can access the main window again.

The link to the modal window content must be assigned a target (or a "href") and a relation (or a "rel") to the modal class.
Like this example:
<a href="modalWindowContent" rel="modal:open">Klikbar tekst</a>

The modal window content must know that it is supposed to be viewed in a modal window. Thus we assign it the modal class.
Like this example:
 
<div class="modal"> Indholdet som skal vises i modal-vinduet </div>

Did you know that you can always inspect your code while editing your page simply by clicking the Editor's "Source" button?

This page in English

Hvordan indsætter du et modal-vindue på dine sider.

Nedenstående trin viser hvordan du let kan indsætte et modalvindue på sider i dit n-gen.net CMS.

Modal vinduet består af to elementer:

  • Linket der åbner modal-vinduet og
  • Indholdet der vises i modal-vinduet.


 i n-gen.net CMS gøres det således:

Last updated 15-04-2025 12:59:29