Difference between revisions of "Widget:Advanced iframe"
(iframed example) |
(test embedded) |
||
Line 1: | Line 1: | ||
− | here an example how to integrate a chat window into your site (stored as "myMibbit. | + | here an example how to integrate a chat window into your site (stored as "myMibbit.php"): |
<html> | <html> | ||
<head> | <head> | ||
Line 8: | Line 8: | ||
} | } | ||
iframe{ | iframe{ | ||
− | width: | + | width:90%; |
− | height: | + | height:400px; |
} | } | ||
</style> | </style> | ||
</head> | </head> | ||
<body><nowiki> | <body><nowiki> | ||
− | <iframe scrolling= | + | <iframe scrolling=0 frameborder=0 |
− | src="http:// | + | src="http://embed.mibbit.com/e/?nick=emb<?PHP echo date('His'); ?>&channel=%23yourChannel"> |
</iframe><center> | </iframe><center> | ||
− | <h3> | + | <h3>type /help to learn about commands</h3></nowiki> |
</center></body></html> | </center></body></html> | ||
if you link/open this in a new window you avoid unintentional logging out when hitting the back button/key: | if you link/open this in a new window you avoid unintentional logging out when hitting the back button/key: | ||
− | <nowiki><a href="myMibbit. | + | <nowiki><a href="myMibbit.php" target="_blank">myMibbit</a></nowiki> |
− | --[[User:HerculeP|HerculeP]] | + | --[[User:HerculeP|HerculeP]] 02:20, 27 February 2008 (UTC) |
Revision as of 02:31, 27 February 2008
here an example how to integrate a chat window into your site (stored as "myMibbit.php"):
<html> <head> <style> body{ font:1em Arial,sans-serif; padding:0; margin:0; background:#070707; color:#fff; } iframe{ width:90%; height:400px; } </style> </head> <body> <iframe scrolling=0 frameborder=0 src="http://embed.mibbit.com/e/?nick=emb<?PHP echo date('His'); ?>&channel=%23yourChannel"> </iframe><center> <h3>type /help to learn about commands</h3>
</body></html>
if you link/open this in a new window you avoid unintentional logging out when hitting the back button/key:
<a href="myMibbit.php" target="_blank">myMibbit</a>
--HerculeP 02:20, 27 February 2008 (UTC)