Dovrei far aprire un pop up quando si accede al sito della mia azienda per comunicare le ferie, mi passate il codice peer favore?
Dovrei far aprire un pop up quando si accede al sito della mia azienda per comunicare le ferie, mi passate il codice peer favore?
nel body onload metti la chiamata alla funzione pippo
nello script metti
questo apre una pop-up 500x500 al centro dello schermocodice:function pippo(){ window.open("NOMEPAGINA" ,"", "toolbar=auto,location=no directories=no,status=no,menubar=no,left="+((screen.width-500)/2)+",top="+((screen.height-500)/2)+",resizable=no,width=500,height=500",false) ; }
Fero
Vuoi conoscere nuovi Amici?
Dunque, nel head ho scritto
<script language="javascript">
<!--
function pippo(){
window.open("NOMEPAGINA" ,"http://www.xxx.it/pop_up.htm", "toolbar=auto,location=no directories=no,status=no,menubar=no,left
="+((screen.width-500)/2)+",top="+((screen.height-500)/2)+",resizable=no,width=500,height=500",false) ;
}
// -->
</script>
e nel body
<body onLoad="java scriptippo();">
ma non apre nulla.....
riporto tutto il codice della pagina va...
codice:<html> <head> <script language="javascript"> <!-- function PopUp(){ msg=open("http://www.asem.it/pop_up.htm", "PopUpWindow", "toolbar=no, directories=no, menubar=no, width=170, height=340, resizable=no"); } // --> </script> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>Asem S.p.A.</title> <meta name="GENERATOR" content="Microsoft FrontPage 6.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> </head> <frameset framespacing="0" border="0" rows="*,409,*" frameborder="0"> <frame name="superiore" src="sopra.htm" scrolling="auto" marginwidth="0" marginheight="0" noresize target="_self"> <frame name="superiore1" src="centro.htm" marginwidth="0" marginheight="0" scrolling="no" noresize target="_self"> <frame name="inferiore" src="sotto.htm" scrolling="auto" marginwidth="0" marginheight="0" noresize target="_self"> <noframes> <body onLoad="java script:PopUp();"> La pagina corrente utilizza i frame. Questa caratteristica non è supportata dal browser in uso.</p> </body> </noframes> </frameset> </html>
se non ricordo male il tag body nei frameset non va
metti tutto in una delle tre pagine che apri nel frameset
Fero
Vuoi conoscere nuovi Amici?