This site is READ ONLY!! No support will be given! Everything in here is just for archiving purposes!

animated external window bbcode

Miscellaneous BBCodes, including MOD BBCodes which usually require file edits.
Locked
User avatar
cisco007
Ciscox
Ciscox
Posts: 2843
Joined: Thu Sep 16 2010 3:25 pm
Country Flag: Mexico

animated external window bbcode

Post by cisco007 »

[bbcodet]Title:[/bbcodet] Animated External window bbcode
[bbcodet]Description:[/bbcodet] this bbcode allows you to open up an external window from a posted URL, using animation.
[bbcodet]Author(s)/or Link:[/bbcodet] bbcode cisco007, code from http://www.dynamicdrive.com
Request?:
[bbcodet]Notes:[/bbcodet]
works on FF, chrome, in IE opens kind of slow, in Opera opens up in a new tab.
[i_i][bbcodet]BBcode usage:[/bbcodet]

Code: Select all

[aniwindow]{URL},{TEXT}[/aniwindow] 
[/i_i]
[i_i][bbcodet]HTML replacement:[/bbcodet]

Code: Select all

<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>
[/i_i]
[i_i][bbcodet]Helpline:[/bbcodet]

Code: Select all

[aniwindow]external url,url description[/aniwidow]
[/i_i]
[i_i][bbcodet]Example:[/bbcodet]

Code: Select all

[aniwindow]http://phpbb.com,phpbb.com[/aniwidow]
[/i_i]
[bbcodet]DEMO:[/bbcodet]
[aniwindow]http://phpbb.com,phpbb.com[/aniwindow]
Image
Locked