Difference between revisions of "Widget:Advanced iframe"

From Mibbit Wiki
Jump to: navigation, search
(if iframes are disabled...)
Line 18: Line 18:
 
  [Your user agent does not support frames or is currently configured
 
  [Your user agent does not support frames or is currently configured
 
   not to display frames. However, you may want to open the  
 
   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>]
+
   <A href="http://embed.mibbit.com/e/?nick=emb<?PHP echo date('His'); ?>&channel=%23yourChannel"
 +
target="_blank">chat in a new window.</A>]
 
</iframe><center>
 
</iframe><center>
 
<h3>type /help to learn about available commands</h3>
 
<h3>type /help to learn about available commands</h3>

Revision as of 16:28, 28 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="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>]
</iframe><center>
<h3>type /help to learn about available commands</h3>
<h3>To change your nickname type: /nick YourNewNickNameHere</h3>

</body></html>

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)