Page 2 of 2

Posted: Wed Sep 22, 2004 11:33 am
by Jonelle
I didn't program this site, it was passed on to me to complete, so I'm just as lost as you are.

However, I did try the script, and it didn't work out, it caused a few errors ... Hmmm ... so I'm stuck again.

Posted: Wed Sep 22, 2004 12:06 pm
by Joe
Where exactly are you stuck now?

Posted: Wed Sep 22, 2004 12:52 pm
by Jonelle
Alright, I came up with a completely different approach ...

I created a separate js file with the functions similar to this one:

Code: Select all

function launchTour() 
{
    var win = "width=500,height=450,left=100,top=100,copyhistory=no,directories=no,menubar=no,location=no,resizable=no,scrollbars=yes";
    window.open("tour/index.htm",'quicktour',win);
    return false;
}
Then in the php file, I put:

Code: Select all

<?php
if ( $logged['member'] )
			$_page_cont[0]['TMI_Chat'] = TopCodeMenuItem ( (_t("Chat")), "chat\flashchat.php", $site[url],0,"target=_blank" );
		else
	        $_page_cont[0]['TMI_Chat'] = "<a class=bottommenu href="javascript: void(0);" onClick="return launchTour();">"._t("Quick Tour")."</a>";
?>
And it worked.