Results 1 to 6 of 6
  1. #1

    Resize Redirect new Window (Banners)

    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

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Resize Redirect new Window (Banners)

    You can try this code and modify to your link and size:
    Code:
    <a href="http://www.some_link.com/" onclick="window.open (this.href, 'child',
    'height=400,width=300,scrollbars'); return false">some 
    designation</a>
    use or not use the scrollbars entry.
    Zen-Venom Get Bitten

  3. #3

    Re: Resize Redirect new Window (Banners)

    Thanks Kobra
    Will try this and post again later
    All the best
    Emmdee

  4. #4

    Re: Resize Redirect new Window (Banners)

    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

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Resize Redirect new Window (Banners)

    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

  6. #6
    Join Date
    Feb 2006
    Posts
    40
    Plugin Contributions
    0

    Default Re: Resize Redirect new Window (Banners)

    Bump :)
    I am wondering how to do this also.

 

 

Similar Threads

  1. Resize Broswer Window
    By alfawebz in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 22 Apr 2011, 08:38 PM
  2. Resize Pop Up window according to image inside?
    By bobobo in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 19 Jan 2011, 04:34 AM
  3. How to prevent reload on browser window resize?
    By tbsmith in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 6 Jan 2010, 08:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg