hi
i have this code in my site that will popup a alert box when some one has been invite to chat what i want to do is replace this alert box with my custom alert box the problem is my site is using templates along with php so it would be like this chat.html and chat.php and i have no clue how to make the custom alert box show up on the template any idea how i can do this?i have the code for the custom alert box but its a lot of code to put up here thanks...
<?php
$sql = "SELECT * FROM chat_conversation WHERE member2_id='".$_SESSION[U_ID]."' AND active='1' AND invite_alert='1' ";
$dbu->query($sql);
if($dbu->move_next())
{
$cid=$dbu->f('chat_conversation_id');
$dbu->query("update chat_conversation set
invite_alert='0'
where
chat_conversation_id='".$cid."'"
);
?>
<script language="javascript">
if (confirm("A Member Has Invited You To Chat. Click Ok To View. ('Clicking Ok Will Not Accept The Chat Invite It Will Show You Who Has Invited You To Chat')")) window.open("http://www.singlespleasures.com/member/index.php?pag=chat_activity", "NewWin","menubar=0,resizable=1,width=550,height=550,scrollbars=1");
</script>