Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: z5 on February 13, 2003, 05:30:26 PM

Title: picture gallery, javascript and amiga browsers
Post by: z5 on February 13, 2003, 05:30:26 PM
Hi

i  want to make a picture gallery for my website. I want thumbs (the small pictures) and also one big picture on the same screen (i don't like popups).

If i click on a thumb, then the big picture should be loaded on the same page, without reloading the rest of the page.

Seems javascript is the only way to achieve this. But do amiga browsers support javascript? And is there any other solution, in php for example?

as always, thanks for the replies!
Title: Re: picture gallery, javascript and amiga browsers
Post by: SilvrDrgn on February 13, 2003, 06:10:23 PM
Yes, Amiga browsers support JavaScript.  iBrowse v2.3 has the best support right now.  However, you shouldn't need it anyway.  If a user loads the thumbnails page and then clicks on one of them,  fast reloading of the entire page of thumbnails plus the big picture should be automatic.  If the thumbnail URLs don't change, the browser's cache should load the images from disk or RAM rather than redownloading them from the net.  If that's still not what you want, then JavaScript would be the way to go because PHP is on the server side and the whole page would likely have to be re-downloaded anyway.
Title: Re: picture gallery, javascript and amiga browsers
Post by: Targhan on February 13, 2003, 06:15:21 PM
While this isn't exactly what you want, try getting "Gallery" off of the Aminet.  Point it to the directory on your local machine with the pictures, it creates the thumbs and a gallery page for you.  It also creates frames, so navigation on the site is easy.  It's straight html, so Amiga browsers aren't going to have any problem at all.

In fact, you could probably take the resulting pages, run them through an editor with find/replace, and add target="_NewWindow" to all of the picture links to get the pop-up effect.

Hope that helps.
Title: Re: picture gallery, javascript and amiga browsers
Post by: BouncingAyatollah on February 13, 2003, 10:12:25 PM
Off the top of my head you could have the thumbs in a strip, say, in one frame and the big picture in another, simply reload the bigger frame per click - no reloading of the thumbs part.

Or with clever naming etc., you might be able to get an onClick event for each thumb to change the .src of the big picture, kind of a like a "big rollover". Not too keen on Javascript myself though, always seems a bit finnicky...