Jump to content

custom alert


fullyloaded

Recommended Posts

hi

is there anyway to change the alert popup box in my code to a simple custom one? i try to add one but had no luck i think it has to do with the if (confirm( but i could be wrong thanks...

 

<?php


$dbu=new mysql_db;

//*************************************************************************
    $sql = "SELECT * FROM chat_conver WHERE mem2_id='".$_SESSION[u_ID]."' AND active='1' AND invite_alert='1'  ";
    $dbu->query($sql);

    if($dbu->move_next())
{
	$cid=$dbu->f('chat_conver_id');
	$dbu->query("update chat_conver set
                             invite_alert='0'
                             where
                             chat_conver_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.mysite.com/", "NewWin","menubar=0,resizable=1,width=550,height=550,scrollbars=1");
</script>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.