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
