Forums / Templates, Stylesheets, Page Layout / In pop up window- need to adjust size and hide scrollbar

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

Locked

Views: 2,231

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
15 Feb 2007, 6:07 AM
#1
zenrajan avatar

zenrajan

New Zenner

Join Date:
Apr 2005
Posts:
53
Plugin Contributions:
0

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 https://www.mlsfabrications.com ->'Color chart'

Thanks guys!

ZenRajan
dotnet programmers, checkout my new forum - https://www.dotnetworld.net

13 Mar 2007, 4:49 AM
#2
zenrajan avatar

zenrajan

New Zenner

Join Date:
Apr 2005
Posts:
53
Plugin Contributions:
0

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 - https://www.dotnetworld.net

14 Mar 2007, 2:01 PM
#3
goshawk avatar

goshawk

Zen Follower

Join Date:
Aug 2006
Location:
Kihikihi, New Zealand
Posts:
220
Plugin Contributions:
2

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:

<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:

<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

Time is but an illusion, there is only "now"!

17 Mar 2007, 4:42 PM
#4
jonisolis avatar

jonisolis

Zen Follower

Join Date:
Jan 2006
Location:
Kentwood, Louisiana, United States
Posts:
117
Plugin Contributions:
0

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.

17 Mar 2007, 11:45 PM
#5
goshawk avatar

goshawk

Zen Follower

Join Date:
Aug 2006
Location:
Kihikihi, New Zealand
Posts:
220
Plugin Contributions:
2

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

jonisolis:

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

Time is but an illusion, there is only "now"!