Hi All,
I am using extremities 2 template. I have a link to an html page in the main menu. The link opens in a new window and the page displays fine. However, I the window to be a pop up window - not a full page.
For instance, I have abc.com as my main domain. In the Main Heading, I have a link to dogs.com/coupon.html. When someone clicks the link in my main heading at my website, the dogs.com/coupon.html page pops up.
I want the dogs.com/coupon.html page to be 100 x 100 - not a full page.
I dont think this is an issue with the code on the dogs.com page but how Joomla opens a new window. Correct? If anyone could answer my question, I would be forever greatful!
I have the following code in my dogs.com/coupon.html page:
<html>
<head>
<title>Coupon at Dogs.com</title>
<script language="JavaScript" type="text/javascript">
<!--
function open_win(what_link){
var the_url = "
http://www.dogs.com/coupon.html"
var the_x = 100;
var the_y = 100;
the_x -= 0;
the_y -= 0;
var how_wide = screen.availWidth;
var how_high = screen.availHeight;
if(what_link != ""){the_url=what_link;}
var the_toolbar = "yes";
var the_addressbar = "yes";
var the_directories = "yes";
var the_statusbar = "yes";
var the_menubar = "yes";
var the_scrollbars = "no";
var the_do_resize = "yes";
var the_copy_history = "yes";
top_pos = (how_high/2) - (the_y/2);
left_pos = (how_wide/2) - (the_x/2);
if (window.outerWidth ){
var option = "toolbar="+the_toolbar+",location="+the_addressbar+",directories="+the_directories+",status="+the_statusbar+",menubar="+the_menubar+",scrollbars="+the_scrollbars+",resizable="+the_do_resize+",outerWidth="+the_x+",outerHeight="+the_y+",copyhistory="+the_copy_history+",left="+left_pos+",top="+top_pos;
site=open(the_url, "DisplayWindow", option);
var Opera = (navigator.userAgent.indexOf('Opera') != -1);
if(Opera){
site.resizeTo(the_x,the_y);
site.moveTo(0,0);
}
}
else
{
var option = "toolbar="+the_toolbar+",location="+the_addressbar+",directories="+the_directories+",status="+the_statusbar+",menubar="+the_menubar+",scrollbars="+the_scrollbars+",resizable="+the_do_resize+",Width="+the_x+",Height="+the_y+",copyhistory="+the_copy_history+",left="+left_pos+",top="+top_pos;
site=open('', "DisplayWindow", option);
site.location=the_url;
if(site.open){site.focus();return false;}
site.resizeTo(the_x,the_y);
}
}
// -->
</script>
</head>
Can someone tell if this is possible with Mambo/Joomla?