Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / html popup suggestions?

Author
Message
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 21st Aug 2013 21:54
The mock-up image basically shows what I want to do. Dim the website's background and display a popup to show additional content. This is not another window or child window, but basically a DIV. If the background and box could fade in/out that would be preferred.


I will probably just go with HighSlide since I'm familiar with it through past use. But was wondering what else is out there, maybe a better or more lightweight alternative. JQuery does have many nice features and plugins available, but it's a massive JS library that I'd prefer to avoid.

Anyone have experience or heard of any other libraries?

MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 21st Aug 2013 21:59
LightBox?

Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 21st Aug 2013 22:09 Edited at: 21st Aug 2013 22:12
I forgot about that. It was a lightweight version to something else, wasn't it? (thickbox?)

Looking it up lead me to leightbox (forgot to mention it needs to support iframes), which then lead me to this link:
http://line25.com/articles/rounding-up-the-top-10-jquery-lightbox-scripts

I'm liking shadowbox so far, the library is 36kb however. I guess that's not really that bad.

MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 21st Aug 2013 22:36
Cool, and good luck!

jQuery.com should have everything you need really...

Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 21st Aug 2013 23:06
Jquery is almost more than 3x the size. I just don't like loading unnecessary javascript when I don't have to.

Now that I have shadowbox implemented, I'm not sure I like the idea anymore.
http://zimnox.com/3fires/

spooky
23
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 21st Aug 2013 23:29
I would not worry about size of jQuery. Browser will cache it after first load anyway, plus it gives you access to lots of nice cross browser functionality.

When I was a web developer I tried and used a lot of popup type scripts to popup images, html, videos, etc and found most of them had issues or were just plain rubbish.

I highly recommend Colorbox, which requires jQuery;

http://www.jacklmoore.com/colorbox

One site I recently did all the techy work on, including using Colorbox can be found here;

http://www.spicersofhythe.co.uk/product.cfm/p/894/Priory-Delights

(Try clicking on the View large Image link on that page)

Boo!
Nickydude
Retired Moderator
19
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 22nd Aug 2013 00:09
Try www.DynamicDrive.com.

I reject your reality and substitute my own...
Indicium
18
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 22nd Aug 2013 01:16
Yeah if you're using something like Google's CDN, the size of jQuery shouldn't be an issue.


They see me coding, they hating. http://indi-indicium.blogspot.co.uk/
Jimpo
21
Years of Service
User Offline
Joined: 9th Apr 2005
Location:
Posted: 22nd Aug 2013 03:02
You can try YUI. It's setup to only pull in the components you want, rather than the entire library. So hopefully it's lightweight.

Popup windows are called panels. This should help:
http://yuilibrary.com/yui/docs/panel/

Ortu
DBPro Master
18
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 22nd Aug 2013 05:36 Edited at: 22nd Aug 2013 05:39
I'd personally just use jQuery, it's simple, clean and reliable, but I whipped this up in plain vanilla javascript for you just for fun:

It is bare bones to be sure, just 2 divs, 2 functions and some css, but it should get the job done and the demo.html is only 7kb even including the junk filler content. It is about as lightweight as it can get I think.

Tested to work in IE7+ & FF, should be fine in Chrome but haven't tested it.

fade in/out speed is controllable in the function parameters, the rest can be tweeked in the css. it should work with iframes as it dumps the content passed in into a div as html.

stick these classes in a stylesheet:



this in a .js script:



and these two divs in your html:



here's a quick demo in a single demo.html file (7kb):



I'm gonna be king of the moon dots!
Libervurto
20
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 28th Aug 2013 18:06 Edited at: 28th Aug 2013 18:10
Quote: "Now that I have shadowbox implemented, I'm not sure I like the idea anymore."

I see what you were going for with that idea. Maybe if you made the frame wider so there's no horizontal scrolling it would be nicer. I still think it is a good idea so don't give up on it just yet.

My additional opinions that no one asked for:
* I like the wood, gives it a cozy feel.
* When seeing the main image, the first thing that struck my mind was that the place is empty. I actually thought it was a 3D render, which sort of tells you how lifeless it looks. It's a nice looking place, don't get me wrong, but for some reason it bothered me to see it empty. The emptiness is an unsettling contrast to the coziness of the wood and the soft filter on the main image. I'm not an expert, that was just my honest reaction.
* The "Drink", "Dine", "Relax", "Enjoy" text, with their jaunty angles, are crying out to be clicked on, but they are just text. Personally, I think these words would be better placed under the logo, like "DRINK · DINE · RELAX · ENJOY".)
* I don't like that the page doesn't fit in the screen (vertically), even though it contains very little. Or do I just have an abnormally small screen?
* I'm not a fan of those pseudo polaroids. I get where you are coming from, you are saying this is a place where you will create good memories. I think it's just their placement and the tags that I don't like. Maybe if it were reworked I would like it. What if you moved the "menu" one down to the middle so that they are all along the bottom of the main image? And made the tags more uniform and fitting with the cozy theme (cyan is not cozy).



Formerly OBese87.

Login to post a reply

Server time is: 2026-07-03 09:54:10
Your offset time is: 2026-07-03 09:54:10