
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.
Image pop-up windows
Pop-ups are nice, but ...
Question
Just how can you get images of different sizes to pop up in a new window with no scrollbars and no space around the image without zillions of lines of code?
Answer
Use one small script and pass it some 'parameters' about the size you want any window to be.
And there's a special little feature in the pop-ups on this page. You can't click anything else until you close the pop-up window. Go ahead and give it a try before you look at the source code.
If you want to buy a low mileage car, or see where I work ... click an image to see a larger version:
How does it all work? You can look at the source code 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.
|

|
|