Popup chatbox
3 posters
Page 1 of 1
Popup chatbox
I dont know much about html or javascript coding so please bear with me.
I would like the chatbox to pop up into a separate window (not tab) and be resized so its not full screen. Also, if possible, to make that window stay on top of other windows, but I doubt that's possible.
As of now, I made an HTML page with the following code that I would simplply provide a link to.
Also, I would like this link to be in the main menu, but I don't have an option to put any code into there. I can only provide an image, text, link and choose if it pops up or stays in the page.
I would like the chatbox to pop up into a separate window (not tab) and be resized so its not full screen. Also, if possible, to make that window stay on top of other windows, but I doubt that's possible.
As of now, I made an HTML page with the following code that I would simplply provide a link to.
- Code:
<HTML>
<HEAD>
<TITLE>ChatBox redirect</TITLE>
<meta HTTP-EQUIV="REFRESH" content="5; url=http://ussr.forum-nation.com/chatbox/chatbox.forum?">
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<SCRIPT LANUAGE="JavaScript 1.2">
<!--
function RSto() {window.resizeTo(800,600)}
//-->
</SCRIPT>
</HEAD>
<BODY onload="RSto()">
You will now be redirected
</BODY>
</HTML>
Also, I would like this link to be in the main menu, but I don't have an option to put any code into there. I can only provide an image, text, link and choose if it pops up or stays in the page.
lxrubin- New Member
- Posts : 15
Reputation : 0
Language : English
Re: Popup chatbox
<a href="javascript:newPopup('/chatbox/chatbox.forum?');">Open Chat</a>
Try that.
~CodyCFS
- Code:
<a href="javascript:newPopup('/chatbox/chatbox.forum?');">Open Chat</a>
Try that.
~CodyCFS
Re: Popup chatbox
That doesn't seem to do anything. I put it onto my homepage message just to test, and when I press the link, nothing happens
lxrubin- New Member
- Posts : 15
Reputation : 0
Language : English
Re: Popup chatbox
Sorry about that.
This one works.
~CodyCFS
- Code:
<script language="javascript">
var popupWindow = null;
function centeredPopup(url,winName,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
popupWindow = window.open(url,winName,settings)
}
</script>
<p><a href="http://www.clubfairshare.com/chatbox/chatbox.forum?" onclick="centeredPopup(this.href,'myWindow','500','300','yes');return false">Chat</a></p>
This one works.
~CodyCFS
Re: Popup chatbox
yes it does thank you very much
Now I have another question.. how do I put this link on the menu? Right now I just have it in my homepage message, but I want to reserve that for announcements and other text, not a link to the chatbox. Through the admin screen I can only do simple links, no code.
Now I have another question.. how do I put this link on the menu? Right now I just have it in my homepage message, but I want to reserve that for announcements and other text, not a link to the chatbox. Through the admin screen I can only do simple links, no code.
lxrubin- New Member
- Posts : 15
Reputation : 0
Language : English
Re: Popup chatbox
how about a link just below the menu? Is it possible for me to add my own buttons?
I guess I would just like a chat icon in the center just below the menu.
I guess I would just like a chat icon in the center just below the menu.
lxrubin- New Member
- Posts : 15
Reputation : 0
Language : English
Re: Popup chatbox
Not unless you have alot of experience and your forum is running phpBB2 or Invision.
Re: Popup chatbox
hmmm k i guess I figure something out
thanks for all your help!!! at least the popup part of my question is completely solved. It's doing exactly what I wanted, and without any un-needed redirection.
thanks for all your help!!! at least the popup part of my question is completely solved. It's doing exactly what I wanted, and without any un-needed redirection.
lxrubin- New Member
- Posts : 15
Reputation : 0
Language : English
Re: Popup chatbox
Thanks for this code CFS! Works great
I have a question that I posted here
https://help.forumotion.com/script-code-problems-f43/chat-room-occupancy-info-t71658.htm
If you know a way to do it?
I have a question that I posted here
https://help.forumotion.com/script-code-problems-f43/chat-room-occupancy-info-t71658.htm
If you know a way to do it?
Similar topics
» PunBB Chatbox popup message when a member logs into the chatbox?
» Popup Chatbox
» Forumotion Popup Chatbox?
» Make Home page Chatbox use a emoticons popup?
» How to create popup but no login popup ????
» Popup Chatbox
» Forumotion Popup Chatbox?
» Make Home page Chatbox use a emoticons popup?
» How to create popup but no login popup ????
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum