Difference between revisions of "Widget:Advanced iframe"

From Mibbit Wiki
Jump to: navigation, search
(test embedded)
Line 14: Line 14:
 
  </head>
 
  </head>
 
  <body><nowiki>
 
  <body><nowiki>
<iframe scrolling=0 frameborder=0  
+
<iframe scrolling="no" frameborder=0  
 
  src="http://embed.mibbit.com/e/?nick=emb<?PHP echo date('His'); ?>&channel=%23yourChannel">
 
  src="http://embed.mibbit.com/e/?nick=emb<?PHP echo date('His'); ?>&channel=%23yourChannel">
 
</iframe><center>
 
</iframe><center>
<h3>type /help to learn about commands</h3></nowiki>
+
<h3>type /help to learn about available commands</h3>
 +
<h3>To change your nickname type: /nick YourNewNickNameHere</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 leaving the chat when hitting the back button/key:
  
 
  <nowiki><a href="myMibbit.php" target="_blank">myMibbit</a></nowiki>
 
  <nowiki><a href="myMibbit.php" target="_blank">myMibbit</a></nowiki>
--[[User:HerculeP|HerculeP]] 02:20, 27 February 2008 (UTC)
+
--[[User:HerculeP|HerculeP]] 12:44, 28 February 2008 (UTC)

Revision as of 11:47, 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">
</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)