Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
go ahead... be a heretic
 
PerlMonks  

Re: clickable slide show perl

by pg (Canon)
on Dec 03, 2003 at 16:19 UTC ( [id://312015]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to clickable slide show perl

Take a look at Tk::Thumbnail, which can easily be used to render your list of pictures.

The thumbnails are by default clickable.

use Tk; use Tk::Thumbnail; use strict; my @thumbnails = ("ant_logo_small.gif", "current.gif", "group-logo.gif +"); my $mw = MainWindow->new; $mw->geometry("600x400"); my $thumb = $mw->Thumbnail(-images => \@thumbnails, -labels =>0, -widt +h => '50', -height => '50', -command =>\&openwin)->pack; MainLoop; sub openwin { my $tw = MainWindow->new; my $pic = $tw->Photo(-file=>$_[1]); $tw->Label(-image => $pic)->pack; };

Replies are listed 'Best First'.
Re: Re: clickable slide show perl
by jwlarson3rd (Acolyte) on Dec 03, 2003 at 21:41 UTC
    thanks for input unfortunately that module TK::Thumbnail doesn't exists on the server. I can already populate a generated page with image buttons using the info from the database. what I need to do is when the the onclick event is generated a slide show with next prev and exit button is generated. I was thinking sub routine jwlarson3rd

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://312015]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.