Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Chat log out???
02-12-2009, 07:28 AM
Post: #1
Chat log out???
Hi,

I put this chatbox in java scripts which helps my memers in ally to chat while playing online browser game.But problem is that when they connect to chat in script when they go to make some actions on game script log them out and they need every time log in, can you solve this problem...???

Here is code of script:

// ==UserScript==
// @name REBORN chat room!!!
// @namespace http://reborn.bestbb.net/
// @description Ova chat skripta omogucuje clanovima REBORN saveza lakše i jednostavnije komuniciranje Wink
// @include http://s*.ikariam.*/*
// ==/UserScript==

//
// Skripta je napravljena od Cro-Daxy-a
//
//

var version="0.2";
var displayedflag = 0;

unsafeWindow.displayfight = function() {
if(displayedflag == 0) {
document.getElementById("fightframe").innerHTML = '<iframe width="764" border="0" frameborder="0" height="100%" src="http://www.everywherechat.com/chatnow.php" style="margin-left:26px;"></iframe>';
displayedflag = 1;
}
}

unsafeWindow.showfight = function() {
if(document.getElementById("fightbar").style.left == "-802px")
{
document.getElementById("fightbar").style.left = "0px;"
}
document.getElementById("fightbar").style.left = "0px;"
}

unsafeWindow.hidefight = function() {
document.getElementById("fightbar").style.left = "-802px;"
}

vfightbar = document.createElement("div");
vfightbar.setAttribute("id", "fightbar");

var body = document.getElementsByTagName("body");

body[0].appendChild(vfightbar);


var wkHTML = '<div id="fighttab" onmouseover="showfight()" onclick="hidefight()"><a style="height:100%;width:100%;"></a></div>'
+ '<div style="color:#542C0F;line-height: 35px; font-size: 12px; font-weight: bold;width:800px;position:absolute;top:0px;left:0px;height:30px;background:url(http://www.imgboot.com/images/enigmabran...no-repeat;">'
+ '<a style="border-bottom:1px #542C0F dotted; color: #542C0F;" href="http://reborn.bestbb.net">REBORN CHAT</a></div>'
+ '<div id="fightframe" style="position:absolute;top:30px;bottom:3px;left:4px;" onmouseover="displayfight()">Mouse over this area to load the fight</div>'
+ '<div style="width:800px;position:absolute;bottom:0px;left:0px;height:3px;background:url(http://www.imgboot.com/images/enigmabran...no-repeat;"></div>';

GM_addStyle("#fightbar { background:url(http://www.imgboot.com/images/enigmabran...gmid.gif); padding-top:33px; width:800px; position:fixed; left:-802px; top:15px; bottom:50px; border:1px black solid; z-index:50;");
GM_addStyle("#fightbar:hover { left:0px; }");
GM_addStyle("#fighttab { background:url(http://i44.tinypic.com/ehaypt.jpg); width:35px; height:50px; position:absolute; right:-26px; top:300px; } ");
GM_addStyle("#fighttab:hover { cursor: pointer; } ");

document.getElementById("fightbar").innerHTML = wkHTML;

///// End of script /////
Find all posts by this user
Quote this message in a reply
03-09-2009, 09:17 PM
Post: #2
RE: Chat log out???
Hi you have added this chat room in user script? or its in your wbesite??

if you have done it in user scripts! then do one thing add two frames! one for game and other for chat! than will not F5's entire browser! just that frame!


tHnaks
P!
Find all posts by this user
Quote this message in a reply
09-06-2009, 08:57 AM
Post: #3
RE: Chat log out???
(03-09-2009 09:17 PM)manjifera Wrote:  Hi you have added this chat room in user script? or its in your wbesite??

if you have done it in user scripts! then do one thing add two frames! one for game and other for chat! than will not F5's entire browser! just that frame!


tHnaks
P!



Please can you do that or someone else who knows java programming...i am noob about that

Thx,thx,thx,to much thanks!!!
Find all posts by this user
Quote this message in a reply
09-06-2009, 10:27 AM
Post: #4
RE: Chat log out???
...please,or someone can assist me how to do this?!

Forward thx Smile))
Find all posts by this user
Quote this message in a reply
10-28-2009, 03:30 AM
Post: #5
RE: Chat log out???
it is not hard.
Javi se ako ti treba jos
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: