Creare popup con dreamweaver

bini2000

Nuovo Utente
10 Mar 2014
3
0
0
Salve a tutti,
come posso creare una finestra di popup con dreamweaver che si chiuda dopo tot secondi e con la possibilità di chiusura anticipata manuale attraverso la x?
 
...come posso creare una finestra di popup con dreamweaver....
Cosa centra dreamweaver? Per creare un popup basta usare del codice JS inserito con qualsiasi editore anche con blocco note di Windows!

Se ti basta solo il codice sappicelo dire
 
ciao
un po' c'entra anche dream, usando comportamenti->apri finestra nel browser ti crea in automatico il js per aprirla
comunque poi devi adattare a manina il js soprattutto per temporizzare
 
ciao
un po' c'entra anche dream, usando comportamenti->apri finestra nel browser ti crea in automatico il js per aprirla
comunque poi devi adattare a manina il js soprattutto per temporizzare
Si ma se si vuole fare qualche cosa di buono si deve essere in grado di scrivere il codice a mano senza appoggiarsi a un editore che ti crea una parte di codice che poi bisogna sempre sapere come modificare.
Io credo che invece di chiedere come si fa una cosa con DW perchè non si ha competenze e si vuole farla lo stesso, bisogna chiedere come e dove studiare la programmazione poi comincire a fare qualche cosa gradualmente.
Comunque ecco il codice per il PoPup
Codice:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento senza titolo</title>
<script type="text/javascript" language="JavaScript">
<!--
function winOpen(URL, windowName, width, height, left, top, resizable, location, menubar, scrollbars, status, toolbar, directories){
	var windowFeatures;
	windowFeatures = '';
	if (width != '')
		windowFeatures = windowFeatures+'width='+width+',';
	if (height != '')
		windowFeatures = windowFeatures+'height='+height+',';
	if (left != '')
		windowFeatures = windowFeatures+'left='+left+',';
	if (top != '')
		windowFeatures = windowFeatures+'top='+top+',';
	if (resizable)
		windowFeatures = windowFeatures+'resizable,';
	if (location)
		windowFeatures = windowFeatures+'location,';
	if (menubar)
		windowFeatures = windowFeatures+'menubar,';
	if (scrollbars)
		windowFeatures = windowFeatures+'scrollbars,';
	if (status)
		windowFeatures = windowFeatures+'status,';
	if (toolbar)
		windowFeatures = windowFeatures+'toolbar,';
	if (directories)
		windowFeatures = windowFeatures+'directories,';
	window.open(URL, windowName, windowFeatures);
}

//-->
</script>

</head>

<body>
<a href="" onclick="winOpen('pagina.html', 'finestra PoPup', '400', '400', '400', '200', false, false, false, false, false, false, false);return false;">Apri finestra</a>
</body>
</html>
 

Discussioni simili