animated external window bbcode

Area dedicata a tutti i BBcode per phpBB 3
Rispondi
Avatar utente
Dr.House
Amministratore
Amministratore
Messaggi: 2173
Iscritto il: 08/01/2012, 8:24
Link del Forum: www.phpbb-italia.it
Località: Reggio Calabria
Contatta:

animated external window bbcode

Messaggio da Dr.House »

questo bbcode permette di aprire una finestra esterna da un URL inviato, con animazione.

Autore:cisco007

Uso del bbcode:

Codice: Seleziona tutto

    [aniwindow]{URL},{TEXT}[/aniwindow] 
trasforma in html

Codice: Seleziona tutto

    <script type="text/javascript">
    //<![CDATA[
      <!-- Begin

      //Animated Window- By Rizwan Chand (rizwanchand@hotmail.com)
      //Modified by DD for NS compatibility
      //Visit http://www.dynamicdrive.com for this script

      function expandingWindow(website) {
      var windowprops='width=100,height=100,scrollbars=yes,status=yes,resizable=yes'
      var heightspeed = 2; // vertical scrolling speed (higher = slower)
      var widthspeed = 6;  // horizontal scrolling speed (higher = slower)
      var leftdist = 10;    // distance to left edge of window
      var topdist = 10;     // distance to top edge of window

      if (window.resizeTo&&navigator.userAgent.indexOf("Opera")==-1) {
      var winwidth = window.screen.availWidth - leftdist;
      var winheight = window.screen.availHeight - topdist;
      var sizer = window.open("","","left=" + leftdist + ",top=" + topdist +","+ windowprops);
      for (sizeheight = 1; sizeheight < winheight; sizeheight += heightspeed)
      sizer.resizeTo("1", sizeheight);
      for (sizewidth = 1; sizewidth < winwidth; sizewidth += widthspeed)
      sizer.resizeTo(sizewidth, sizeheight);
      sizer.location = website;
      }
      else
      window.open(website,'mywindow');
      }
      //  End -->
      //]]>
    </script>
      <a href="#" onclick="expandingWindow('{URL}');return false">{TEXT}</a>
Aiuto in linea

Codice: Seleziona tutto

    [aniwindow]external url,url description[/aniwidow]
esempio:

Codice: Seleziona tutto

    [aniwindow]http://unlockarea.com,unlockarea.com[/aniwidow]
Rispondi