Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Apr 2005
    Posts
    56
    Plugin Contributions
    0

    Default In pop up window- need to adjust size and hide scrollbar

    I created a link in more_information sidebox to a popup window which displays some information about my products.

    Added the following -$more_information[] = '<a href="http://www.mlsfabrications.com/colorsizechart.php" target="_blank" >' . 'Color & Size Chart' . '</a>';

    Quick Question: what code do I add to make the pop up a certain size and without scrollbar.

    Please see www.mlsfabrications.com ->'Color chart'

    Thanks guys!
    ZenRajan
    dotnet programmers, checkout my new forum - www.dotnetworld.net

  2. #2
    Join Date
    Apr 2005
    Posts
    56
    Plugin Contributions
    0

    Default Re: In pop up window- need to adjust size and hide scrollbar

    Hi,
    I tried this :

    $more_information[] = '<a href="http://www.mlsfabrications.com/colorsizechart.php" target="_blank" toolbar="no" width="250" height=250">' . 'Rhinestones' . '</a>';


    but this does not bring the desired results. It does not open a new browser window with the desired height and width.

    Would really appreciate if someone could help out.

    Thanks
    ZenRajan
    dotnet programmers, checkout my new forum - www.dotnetworld.net

  3. #3
    Join Date
    Aug 2006
    Location
    Kihikihi, New Zealand
    Posts
    230
    Plugin Contributions
    3

    Default Re: In pop up window- need to adjust size and hide scrollbar

    I have had the same problems before, and now have a script installed that does resize any photo automatically.

    Copy this text inside a new file named something like jscript_popup.php and place in your /shop/includes/templates/YOUR_TEMPLATE/jscript:
    Code:
    <SCRIPT LANGUAGE="JavaScript">
    
    function CaricaFoto(img){
      foto1= new Image();
      foto1.src=(img);
      Controlla(img);
    }
    function Controlla(img){
      if((foto1.width!=0)&&(foto1.height!=0)){
        viewFoto(img);
      }
      else{
        funzione="Controlla('"+img+"')";
        intervallo=setTimeout(funzione,20);
      }
    }
    function viewFoto(img){
      largh=foto1.width+20;
      altez=foto1.height+20;
      stringa="width="+largh+",height="+altez;
      finestra=window.open(img,"",stringa);
    }
    </script>
    And then link your images in this way:
    Code:
    <a href="javascript:CaricaFoto('http://IMAGE_PATH/YOUR_PIC.jpg')">
    <alt="YOUR IMAGE TEXT " src="http://IMAGE_PATH/YOUR_PIC.jpg" /></a>
    Hope this will help :)

    Goshawk

  4. #4
    Join Date
    Jan 2006
    Location
    Kentwood, Louisiana, United States
    Posts
    117
    Plugin Contributions
    0

    Default Re: In pop up window- need to adjust size and hide scrollbar

    How do you get the popup window to automatically resize itself to the size of the large image? I need to put in large images that show my clip art at actual size (96 dpi) and the size is different for each clip art product. My site is: http://horse-logos.com Thanks for any help with this issue.

  5. #5
    Join Date
    Aug 2006
    Location
    Kihikihi, New Zealand
    Posts
    230
    Plugin Contributions
    3

    Default Re: In pop up window- need to adjust size and hide scrollbar

    Quote Originally Posted by jonisolis View Post
    How do you get the popup window to automatically resize itself to the size of the large image? I need to put in large images that show my clip art at actual size (96 dpi) and the size is different for each clip art product. My site is: http://horse-logos.com Thanks for any help with this issue.
    This is automatic, and written in the script. Sorry about the Italian, but that is the best script I could find

 

 

Similar Threads

  1. how to remove/hide unwated copy in the pop-up shipping estimator window?
    By Inudat1966 in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 20 Jul 2010, 07:21 PM
  2. Size of Pop Up Window
    By CoolCarPartsOnline in forum General Questions
    Replies: 0
    Last Post: 6 Dec 2009, 12:26 AM
  3. Enlarged image pop up window size
    By raunharman in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 30 Jan 2009, 01:30 PM

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