Skip to content
View in the app

A better way to browse. Learn more.

Guys from Andromeda Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Need help with Broomcloset redirect idea

Featured Replies

Hey gang!

 

I'm working on an idea, and I was hoping I could get some technical help.

 

I'd like to add a Lightbox that loads automatically when someone visits a page at the Broomcloset. The idea is the include links to the Two Guys' website, the Kickstarter, and this forum -- that way people reaching one of the site's subpages via Google will be up-to-date on all the latest happenings (and, hopefully, will then rush off and pledge $10,000 to the SpaceVenture).

 

I know almost nothing about Java, so if anyone has any ideas on how I could make this happen, I'd appreciate the input.

 

Thanks!

 

Jess

That's JavaScript, not Java.

 

All you need is some server-side wrapper to include the relevant JavaScript code in every page. If you were already using server-side includes to present your layout, that should be pretty easy. Otherwise, you'd have to copy and paste that into every page (or move all your pages to an archives directory and work some .htaccess magic to redirect them to one page that included the originally-requested page but also the Lightbox code)

It uses JavaScript, not Java. It is fairly self explanatory on the page you listed. The download is just the css, js and images that you need to upload to your site.

 

Put the

<script src="js/jquery-1.7.2.min.js"></script>
<script src="js/lightbox.js"></script>
<link href="css/lightbox.css" rel="stylesheet" />
in the header of your pages and link to the images like the following

<a href="images/image-1.jpg" rel="lightbox[roadtrip]">image #1</a>
  • Author

Thanks, pcj! I'm still trying to figure it all out, but your example definitely helps. Ideally, I'd like to tinker with the "look and feel" of the Lightbox a bit, but I'm guessing that's the easy part.

 

I haven't done any real web design in almost a decade, and I never really tinkered with JavaScript at all, so I appreciate all the help. For now, my goal is to direct people to the Kickstarter, but once the website merger is complete, it seems like a reasonable way to both send people to the new site and keep the old one around as a "virtual museum" (as some have requested).

 

Jess

  • Author

pcj -- Do you happen to know where I would make changes to the width and height of the Lightbox? Am I correct in assuming that other styling features (colors, fonts) can be made by editing the target HTML document?

 

Thanks again! You're a huge help...

 

Jess

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.