Tafiti, il nuovo motore di ricerca Microsoft sviluppato con Silverlight Elimina Spazi
Aug 23

Con la seguente funzione avrete la possibilità di creare dei popup a runtime

  /**
    * Gli si passa la pagina php, la dimensione HxW e genera un popup in js
    * $option['width'];
    * $option['height'];
    * $option['name'];
    */
function showPopUp($popuppage,$option=null){
  if ($option==null){
    $style = "top=100, left=100, width=350, height=150, status=no, menubar=no, toolbar=no , scrollbar=no";
  }else{
    $style = "top=100, left=100, width=" . $option['width'] . " , height=" . $option['height'] . ", status=no, menubar=no, toolbar=no , scrollbar=no";
  }
  if (!empty($option['name'])){
    $option['name'] = '_blank';
  }
  $winpopup = "window.open('$popuppage','".$option['name']."','$style')";
  $winpopup = "<script type="\">  </script>";
  return $winpopup;
}

(Nessun voto)
Loading ... Loading ...

Inserisci il tuo Commento:

This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)

You must read and type the 5 chars within 0..9 and A..F, and submit the form.

  

Oh no, I cannot read this. Please, generate a