Menu

#6 fullscreen - patch - very simple

open
nobody
None
5
2001-11-20
2001-11-20
No

first, add to the header part of view.php:

<!--
/*
Full Screen Window Opener Script-
Š Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/
function fullwin(targeturl){
window.open(targeturl,"","fullscreen,scrollbars")
}
//-->
</script>

second, add directly after the dispsize - form:

// andre patch - fullscreen
print "<form>\n";
print "<input type=\"button\" onClick=\"fullwin('";
print "view.php?album=".
$album ."&pic=" .$pic . "&start=" .
$start . "&picindex=" . $picindex . "&user=" .
$username;
print "')\" value=\"FullScreen\">\n";
print "</form>";

i found the feature usefull especially when dealing
with huge images / when the album is integrated in
frames of a webpage. so the user has a chance to
escape frames and watch pics in fullscreen mode. and
yes its hatefull javascript, but this javascript works
with ALL browsers 100%

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.