scrollbars in pop up image windows
scrollbars in pop up image windows
hello
does anybody know how to enable the scrollbars in the popup image windows!?
does anybody know how to enable the scrollbars in the popup image windows!?
if I understand your question then you have to set the property in the file image_zoom.php
insert in line 45
but as far as I konw the window is resized to the content dimsensions so no scroll bars occurs by default.
and oliver hasn't set the property to false so if the content is bigger than the window, the scrollbars should be displayed.
but probably I'm on the wrong track.
insert in line 45
Code: Select all
\twindow.scrollbars=true;\n
and oliver hasn't set the property to false so if the content is bigger than the window, the scrollbars should be displayed.
but probably I'm on the wrong track.
Hallo an alle 
Habe das gleiche Problem, dass ich Images auf meiner Page habe, bei denen das PopUp-Fenster nicht ausreichend groß ist. Der IE6 zeigt nur den Fensterinhalt an und es gibt keine Möglichkeit z.B. per Maus-Rad zu scrollen . Beim Firefox funktioniert das Scrollen per Maus-Rad ohne weiteres. (was nicht viel weiterhilft, da immer noch zu viele mit dem IE unterwges sind
)
Beispiel: http://www.schattenspieler.de/index.php ... 18,0,0,1,0
da auf den Zeitungsartikel "Rheinische Post - 21.01.2005" klicken.
Habe auch versucht den Code \twindow.scrollbars=true;\n wie oben beschrieben einzufügen - das interessiert das Script aber überhaupt nicht. Wo / wie soll das Script in Zeile 45 der image_zoom.php denn eingetragen werden? Bei mir schaut das so aus:

Habe das gleiche Problem, dass ich Images auf meiner Page habe, bei denen das PopUp-Fenster nicht ausreichend groß ist. Der IE6 zeigt nur den Fensterinhalt an und es gibt keine Möglichkeit z.B. per Maus-Rad zu scrollen . Beim Firefox funktioniert das Scrollen per Maus-Rad ohne weiteres. (was nicht viel weiterhilft, da immer noch zu viele mit dem IE unterwges sind

Beispiel: http://www.schattenspieler.de/index.php ... 18,0,0,1,0

Habe auch versucht den Code \twindow.scrollbars=true;\n wie oben beschrieben einzufügen - das interessiert das Script aber überhaupt nicht. Wo / wie soll das Script in Zeile 45 der image_zoom.php denn eingetragen werden? Bei mir schaut das so aus:
Wo soll das denn da rein- oder rangequetscht werden?if($imginfo) {
echo "<script language=\"JavaScript\" type=\"text/javascript\">\n<!--\nfunction ResizeAndCenter(){\n" ;
echo "\twindow.resizeTo(".($imginfo[0]+10).",".($imginfo[1]+30).");\n\twindow.focus();\n}\n//-->\n</script>\n";
}
Oh - sry. Here we go:
i´ve also problems with the content-size in popups, when the content (-> image) is bigger than the the screen-resolution.
For example (try @ screen-res. 1024*768):
http://www.schattenspieler.de/index.php ... 18,0,0,1,0
Try there the newspaper-article "Rheinische Post - 21.01.2005"
If I use IE6, the lower contentpart is cut off - there´s no way to scroll down (with mousewheel or arrow-keys). If I use Firefox, I can scroll with the mousewheel or either the arrow-keys (but in this case only a few user would
try the mousewheel / keys to scroll, because they miss the scrollbars). Another Point is, that there are more IE User than Firefox User in the WWW.
So I want to add scrollbars to the popups in case of showing Images in original size, but the hint to put the code \twindow.scrollbars=true;\n in the script line 45 (image_zoom.php) failed - nothing happens. But I´m not 100% shure that my coding was right ...
So can anyone help me, what or where I´ve to paste what kind of code to get popups with scollbars?
i´ve also problems with the content-size in popups, when the content (-> image) is bigger than the the screen-resolution.
For example (try @ screen-res. 1024*768):
http://www.schattenspieler.de/index.php ... 18,0,0,1,0
Try there the newspaper-article "Rheinische Post - 21.01.2005"
If I use IE6, the lower contentpart is cut off - there´s no way to scroll down (with mousewheel or arrow-keys). If I use Firefox, I can scroll with the mousewheel or either the arrow-keys (but in this case only a few user would
try the mousewheel / keys to scroll, because they miss the scrollbars). Another Point is, that there are more IE User than Firefox User in the WWW.
So I want to add scrollbars to the popups in case of showing Images in original size, but the hint to put the code \twindow.scrollbars=true;\n in the script line 45 (image_zoom.php) failed - nothing happens. But I´m not 100% shure that my coding was right ...
So can anyone help me, what or where I´ve to paste what kind of code to get popups with scollbars?
That´s the original code - what change are needed to get popups ? wrote: if($imginfo) {
echo "<script language="JavaScript" type="text/javascript">\n<!--\nfunction ResizeAndCenter(){\n" ;
echo "\twindow.resizeTo(".($imginfo[0]+10).",".($imginfo[1]+30).");\n\twindow.focus();\n}\n//-->\n</script>\n";
}
Got it!
open front.func.inc.php in "include/inc_front"
then change this:
Notice the added ,scrollbars=yes,resizable=yes'
open front.func.inc.php in "include/inc_front"
then change this:
Code: Select all
// if click enlarge the image
$open_popup_link = "image_zoom.php?show=".$imagelist[$key]["zoomimage"];
$table .= "<a href=\"".$open_popup_link."\" onClick=\"window.open('".$open_popup_link."','previewpic','width=";
$table .= $imagelist[$key]["zoomw"].",height=".$imagelist[$key]["zoomh"].",scrollbars=yes,resizable=yes');return false;\">";
$table .= $list_img_temp."</a>";