I want to control the size of the new window that opens when one clicks on a banner. At The moment the new window in Firefox is full size. I want a window about 450 square.......can anyone help????
Regards
EMMDEE
I want to control the size of the new window that opens when one clicks on a banner. At The moment the new window in Firefox is full size. I want a window about 450 square.......can anyone help????
Regards
EMMDEE
You can try this code and modify to your link and size:
use or not use the scrollbars entry.Code:<a href="http://www.some_link.com/" onclick="window.open (this.href, 'child', 'height=400,width=300,scrollbars'); return false">some designation</a>
Zen-Venom Get Bitten
Thanks Kobra
Will try this and post again later
All the best
Emmdee
Thanks Kobra but I'm still having probs......
Zen 1.2.7
functions/banners.php
Line 154....This is what needs to be altered, but your suggestion doesnt seem to work....errors
{
if ($banner->fields['banners_open_new_windows'] == '1') {
$banner_string = '<a href="' . zen_href_link(FILENAME_REDIRECT, 'action=banner&goto=' . $banner->fields['banners_id']) . '" target="_blank">' . zen_image(DIR_WS_IMAGES . $banner->fields['banners_image'], $banner->fields['banners_title']) . '</a>';
}
regards
emmdee
What you have posted is php code and what I provided is html code.
I really am terrible at code, especially php.
The code posted is some of that that builds the page dynamically from parts of other files. Some where in these calls there exists some definition of the window size/control.
By my posting back this will bring this back to the top and hope that another with more php expertise can assist.
Zen-Venom Get Bitten
Bump :)
I am wondering how to do this also.