Class: Iframe
Source Location: /myphp-1.9/myphp-1.9-page/html/util/Iframe.php
Class Iframe
Class Overview
|
Returns a complete IFRAME as HTML
- <iframe name="bannerIframe" src="Banneriframe.php" width="468" height="60"
- title="todo" align="right" frameborder="0" scrolling="no" marginheight="0" marginwidth="0">
- <img src="/images/logo.gif" width="468" height="60" alt="todo" />
- </iframe>
- Usage:
- $iframe = new Iframe($src,$width,$height,$align,$frameborder,$marginheight,$marginwidth,$scrolling,$name,$title,$class);
- print $iframe->getHtml();
- Or
- Iframe::display($src,$width,$height,$align,$frameborder,$marginheight,$marginwidth,$scrolling,$name,$title,$class);
Located in /myphp-1.9/myphp-1.9-page/html/util/Iframe.php [line 38]
Object
|
--Html
|
--Iframe
|
Properties
|
Methods
|
Inherited Properties, Constants, and Methods
Method Summary
| String, |
getHtml() |
Get the complete html for an IFRAME |
Methods
Iframe Iframe(
[String
$src = ''], [String
$width = ''], [String
$height = ''], [String
$align = ''], [String
$frameborder = ''], [String
$marginheight = ''], [String
$marginwidth = ''], [String
$scrolling = ''], [String
$name = ''], [String
$title = ''], [String
$class = '']
)
|
|
Constructor
Parameters:
|
String |
$src: |
The html to use inside the iframe |
|
String |
$width: |
The width of the iframe |
|
String |
$height: |
The height of the iframe |
|
String |
$align: |
The align of the iframe |
|
String |
$frameborder: |
The frameborder of the iframe |
|
String |
$marginheight: |
The marginheight of the iframe |
|
String |
$marginwidth: |
The marginwidth of the iframe |
|
String |
$scrolling: |
The scrolling of the iframe |
|
String |
$name: |
The name of the iframe |
|
String |
$title: |
The title of the iframe |
|
String |
$class: |
The css class of the iframe |
void display(
[String
$src = ''], [String
$width = ''], [String
$height = ''], [String
$align = ''], [String
$frameborder = ''], [String
$marginheight = ''], [String
$marginwidth = ''], [String
$scrolling = ''], [String
$name = ''], [String
$title = ''], [String
$class = '']
)
|
|
Display html
- Usage:
- Iframe::display($src,$width,$height,$align,$frameborder,$marginheight,$marginwidth,$scrolling,$name,$title,$class);
Parameters:
|
String |
$src: |
The html to use inside the iframe |
|
String |
$width: |
The width of the iframe |
|
String |
$height: |
The height of the iframe |
|
String |
$align: |
The align of the iframe |
|
String |
$frameborder: |
The frameborder of the iframe |
|
String |
$marginheight: |
The marginheight of the iframe |
|
String |
$marginwidth: |
The marginwidth of the iframe |
|
String |
$scrolling: |
The scrolling of the iframe |
|
String |
$name: |
The name of the iframe |
|
String |
$title: |
The title of the iframe |
|
String |
$class: |
The css class of the iframe |
API Tags:
Redefinition of:
- Html::display()
- Display the html
Get the complete html for an IFRAME
API Tags:
Redefinition of:
- Html::getHtml()
- Get Html
|
|