[Javascript] Quick question on passing reference to url

Aaron Bassett aaronbassett at gmail.com
Wed Nov 29 16:31:38 CST 2006


Might be a bit hefty file size wise for what you want but lightbox is quite
nice for opening image overlays

http://www.huddletogether.com/projects/lightbox2/

the original version (just drop the 2 from url) is a little bit lighter or
google for lightbox clones there was one done using moo.fx and
prototypelite.js which has a smaller filesize

But on a separate note please look into progressive enhancement - what
happens to the poor souls who dont have browsers which recognize the
javascript protocol or who don't have a javascript enabled browser, what do
they get instead???


On 11/29/06, Nathan V. Patwardhan <nvp at noopy.org> wrote:
>
> On Thu, Nov 30, 2006 at 05:30:41AM +1100, David Chance wrote:
> :
> : What I'm looking to do is basically just have an image
> : displayed, then when clicking on it a new window opens that I
> : can size and include a close link in it.
> [snip]
>
> :   generator.document.write('<A
> HREF="javascript:ImageWindow(ImgUrl)"><IMG SRC='ImgUrl' width="300">');
>
> Maybe what you'd meant was (untested):
>
>     generator.document.write('<A
> HREF="javascript:ImageWindow(ImgUrl)"><IMG SRC="' + ImgUrl + '"
> width="300">');
>
> Make sure that ImgUrl is in the scope that you'd expect, too.
>
> --
> Nathan V. Patwardhan
> nvp at noopy.org
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20061129/01277618/attachment.htm>


More information about the Javascript mailing list