Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Quick question on passing reference to url
- From: aaronbassett at gmail.com (Aaron Bassett)
- Subject: [Javascript] Quick question on passing reference to url
- Date: Wed Nov 29 16:32:17 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@xxxxxxxxx> 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@xxxxxxxxx > _______________________________________________ > Javascript mailing list > Javascript@xxxxxxxxxx > https://lists.LaTech.edu/mailman/listinfo/javascript > -------------- next part -------------- An HTML attachment was scrubbed... URL: https://lists.LaTech.edu/pipermail/javascript/attachments/20061129/01277618/attachment.html
- References:
- [Javascript] Quick question on passing reference to url
- From: Flávio Gomes
- [Javascript] Quick question on passing reference to url
- From: David Chance
- [Javascript] Quick question on passing reference to url
- From: Nathan V. Patwardhan
- [Javascript] Quick question on passing reference to url
- Prev by Date: [Javascript] dynamically hide an element
- Next by Date: [Javascript] dynamically hide an element
- Previous by thread: [Javascript] Quick question on passing reference to url
- Next by thread: [Javascript] Array Numerical Sorting
- Index(es):