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.
[SOLVED] Opening a custom sized window ...
Moderator: General Moderators
Alright, I came up with a completely different approach ...
I created a separate js file with the functions similar to this one:
Then in the php file, I put:
And it worked.
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;
}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>";
?>