about halfadot giving something back ...

What you are about to see contains 'simple' javascript. The code on this page is fully cross-browser compliant (versions 4 and beyond). To see how it works, study the source code - later.

Images nicely in a new page
Pop-ups are nice (see this page for an example), but ...

Question
If I make a link to an image and click it, the image appears on the left of a new page with a white (or default) colour background. Can I do better - without writing a new page for every image I want to see?

Answer
Yes - you need one 'extra' page that describes how to display any of your big pictures, and a little javascript to unscramble the information passed from the link on this page. The javascript on the 'next page' simply unscrambles that information for you using the location.search.substr(1).split("?") function to get everthing past the ? in the URL.

Click either image to see a large picture in a new page:

my office - click for larger image who knows - click for larger image


How does it all work? You can look at the source code of this page and the big image page and help yourself. There are enough comments in the source code to make it simple for you to adapt this code for your own pages.

Credits

Please leave the code credits alone. Sharing is what makes the Internet such a great experience, but always give credit where it is due. If you found this site helpful, please take a moment and help someone less fortunate - click the Hunger Site link.


Copyright © 2000 www.halfadot.com

policies  | about  | contact  | home

visit the web design site