Widget:Advanced iframe

From Mibbit Wiki
Revision as of 16:26, 28 February 2008 by (talk)
Jump to: navigation, search

here an example how to integrate a chat window into your site (stored as "myMibbit.php"):

  font:1em Arial,sans-serif; padding:0; margin:0;
  background:#070707; color:#fff;
<iframe scrolling="no" frameborder=0 
 src="http://embed.mibbit.com/e/?nick=emb<?PHP echo date('His'); ?>&channel=%23yourChannel">
 [Your user agent does not support frames or is currently configured
  not to display frames. However, you may want to open the 
  <A href="http://embed.mibbit.com/e/?nick=emb<?PHP echo date('His'); ?>&channel=%23yourChannel" target="_blank">chat in a new window.</A>]
<h3>type /help to learn about available commands</h3>
<h3>To change your nickname type: /nick YourNewNickNameHere</h3>


if you link/open this in a new window you avoid unintentional leaving the chat when hitting the back button/key:

<a href="myMibbit.php" target="_blank">myMibbit</a>

--HerculeP 12:44, 28 February 2008 (UTC)