Member
Member
kevito   2006-06-09, 22:43
#1

I know the use of iframes is generally frowned upon, but that's what my buddy wants for his portfolio site, and I couldn't convince him otherwise.

So, first, is it possible with zenphoto? And are there any examples or guidance you can give me as to how to set this up? Instead of the multi-level/click setup of zenphoto that comes stock, I want to set the gallery up with thumbnails to the right of the image in a vertically scrollable iframe. Upon clicking a thumbnail the image will load to the left of it... kind of like this (flipped):
http://www.dcs.wisc.edu/LSA/memf/album_2005/index.htm

thanks

Member
Member
kevito   2006-06-13, 07:07
#2

bump. anyone? iframes?

Member
Member
DarrellD   2006-06-13, 15:44
#3

Hmm... I dunno. That's kinda difficult since I frames loads a completely different file. You'd have to probably include some custom javascript using the DOM to access that iframe and change it's location value. Once that's done, then your javascript code should refresh that iframe.

Theoretically, that's how you'd do it, but since i'm not to big on Javascript, I'm not too sure about it.

Member
Member
kevito   2006-06-14, 06:11
#4

thanks for posting, I'm not experienced with javascript... but I'll have a look around and if I figure it out will post back here.

Member
Member
kevito   2006-06-19, 22:46
#5

no dice. I'm resorting to building a static gallery from scratch for this site. I spent a couple days looking around for other galleries that have iframe support built in, or ways to modify them, and came up with nothing. Still listening if anybody here has any advice. The custom javascript/DOM suggestion is beyond my capabilities.

here's another example of a site I'm referencing:
http://www.joeciardiello.com/pages/music/music_main.html

Developer
Developer
trisweb   2006-06-20, 03:30
#6

GameDudeX has got it -- basically, you should be able to do this as easily in Zenphoto as you would with static HTML -- it's all about what clicking the thumbnails does in your case. I believe it's as simple as naming the iframe something, and using link instead of the link to the image page. Look it up, you might find more.

Anyway, it should be easy. You just have to change the layout of album.php, to add an iframe, and change what the image links do.

Member
Member
kevito   2006-06-21, 04:20
#7

awesome! I'm on to something here. No javascript either, thumbnails are in a mock-frame made with just css and there is still one iframe where the image.php loads. I'll post a link when I get the site finished up.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.