Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Having trouble with my chat room...
Old 12-16-2008, 12:26 PM Having trouble with my chat room...
Junior Talker

Posts: 2
Name: Thiery
Trades: 0
This is my first post so I apologize in advance if this is the wrong section to post in or if my post layout is wrong.

I run a website and I'd ideally like a chat room which opens similar to this: http://www.streamwebtown.com/index.php (click "test your live streaming" at the top of the page; I'd like the chat room to load like this)

I'm hosting the chat room here: http://stream.freepl.co.cc/chat.php

This is the code I came up with:

Code:
<script type="text/javascript">

function dialog() {
  Dialog.alert("Test of alert panel, check out debug window after closing it", 
               {windowParameters: {className: "alphacube", width:500, height:400}, okLabel: "close", 
                ok:function(win) {debug("validate alert panel"); return true;}, cancel:function(win) {debug("validate cancel panel"); return true;}}); win.toFront();  WindowStore.init();
}
var date = new Date();
date.setYear(date.getYear()+1903);
  
win1 = new Window('1', {className: "alphacube", title: "<b>FREEPL Chat</b>", 
								  top:100, left:300, width:500, height:400, 
								  resizable: true, url: "http://stream.freepl.co.cc/chat.php", showEffect:Effect.BlindDown, hideEffect: Effect.SwitchOff, draggable:true, wiredDrag: true}); win1.toFront(); 
</script>
I then used this as my link to open the chat room:

Code:
<a href="#" onclick="win1.show();" class="toggleopacity2">
    test</a>
The chat room isn't opening though so I guess something is wrong. Can someone please correct my script, or do I need to add some CSS or something?

Thanks in advance... and hope you can help
FREEPL is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to Having trouble with my chat room...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.10048 seconds with 12 queries