Pedido iFrame BBcode

To install this BB Code: AdminCP -> Custom BB Codes -> Add new BB Code

Title: iFrame

Tag: if

Replacement:

HTML:
<!-- Start iFrame by Strike-Force.net -->

<table border="0" bgcolor="#89723C" width="100%"> <tr>  

<td> <center> <head>

<script type="text/javascript">
function goBack()
  {
  window.history.back()
  }
</script>
</head> 

<body>

<input type="button" value="Back" onclick="goBack()"  /> </body>

<head>
<script type="text/javascript">
function newDoc()
{
window.location.assign("{param}");
}
</script>
</head>

<body>
<input type="button" value="Visit Site" onclick="newDoc()" />
</body>

<head>
<script type="text/javascript">
function goforward()
  {
  window.history.forward()
  }
</script>
</head>

<body>

<input type="button" value="Forward" onclick="forward()" /> </body> </center> </td> </tr> </table> 

<iframe width="100%" height="400" src="{param}"><a href="{param}" target="_blank">{param}</a></iframe> 

<!-- End iFrame by Strike-Force.net -->

Example: [if]http://www.google.com[/if]

Description: Places a site within a small framed window in a post.

Use {option}: No

Button Image: (button image is optional, and I don't use one personally)

I have also created a colored border around the buttons which can easily be changed to suit the color scheme of your site. This can be changed by changing the bgcolor value to whatever color you choose on this line:
HTML:
<table border="0" bgcolor="#89723C" width="100%"> <tr>


The height and width of the iFrame can be adjusted by changing this line:


HTML:
<iframe width="100%" height="400" src="{param}"><a href="{param}" target="_blank">{param}</a></iframe>
 
Back
Top