Thanks for the ideas, the ideas I got on the mootools group:
http://groups.google.com/group/mootools-users
were more or less the same as ones posted here.
It seems to me setting the src as null, or putting links in the head,
is no less messy than doing it with JSON in the head, so i think I
will just go with JSON, eg:
var myJSONObject = {"images": [
{src": "http://www....", "width": "100", "height": "100",
"alt": "image description"},
{src": "http://www....", "width": "200", "height": "200",
"alt": "image description2"},
]
};
At least this way it is all in javascript objects to start off with. I
was hoping of a nice clean way to put the info in the html, but
setting the src of an image to null (hopefully) quickly enough before
the browser can request it, is a bit dicey for me.
On May 28, 11:54 am, Rory <[email protected]> wrote:
> You can put all your large images into the head of your document in
> <link> declarations:
>
> <link type="image/jpeg" href="http://domain/images/large/1.jpg">
> <link type="image/jpeg" href="http://domain/images/large/2.jpg">
> <link type="image/jpeg" href="http://domain/images/large/3.jpg">
>
> Then extract the href from the link when you need to insert a new img
> into the page. If you need more info, just append it in the query
> string:
>
> <link type="image/jpeg" rel="large" href="http://domain/images/large/
> 1.jpg?width=100&height=200&alt=Image+1">
--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
-~----------~----~----~----~------~----~------~--~---