ezimage operator with onload event

ezimage operator with onload event

Sunday 14 September 2003 8:18:37 pm - 3 replies

Modified on Sunday 14 September 2003 8:49:42 pm by RW Wood

Author Message

Paul Forsyth

Monday 15 September 2003 12:39:15 am

Have you tried:

preloadImages({"path/img1.gif"|ezimage})

Ezimage will output a string with the quotes in place so you dont need to wrap the call.

Paul

RW Wood

Monday 15 September 2003 11:45:25 am

I'll give it a try, but what then happens to the quote that needs to be before preloadImages and after the last ) ? You can't nest double quotes inside double quotes, and I don't think the preloadImage function will work if it's wrapped in single quotes.

Or am I wrong?

Thanks
RWW

Sébastien Prud'homme

Wednesday 17 September 2003 7:25:58 am

I use this in my templates :

onLoad='preloadImages({"roll1b.jpg"|ezimage})'

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.