[SOLVED] Opening a custom sized window ...

JavaScript and client side scripting.

Moderator: General Moderators

Jonelle
Forum Newbie
Posts: 18
Joined: Sat Sep 11, 2004 8:08 pm

Post 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.
User avatar
Joe
Forum Regular
Posts: 939
Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow

Post by Joe »

Where exactly are you stuck now?
Jonelle
Forum Newbie
Posts: 18
Joined: Sat Sep 11, 2004 8:08 pm

Post 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.
Post Reply