By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,933 Members | 1,243 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,933 IT Pros & Developers. It's quick & easy.

Anchor/Link "onload like" event listener or prototype?

Cristian Pinheiro
P: 1
Hello guys,

I was playing with Image Thumbnail Viewer (ITV) and found one problem, see for more details and how it works.

Now the problem is that the ITV gets executed for the first time on document's onload method.

When the page has few thumb images there are no problems. But when you have big galeries, the behavior of anchors/links isn't the desired until the ITV runs.

So I found one "possible" solution: Is that possible to run ITV code every time an anchor is created on the page, instead wait for the onload method (something like prototype anchor object or add an event listener to anchors)?

That way one will get the desired ITV behavior before onload method.

Hope you understand what I mean.

Thanks in advance!
Feb 3 '08 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 15k+
P: 16,027
Welcome to TSDN!

The problem will most probably be caused by the images not being loaded. You can try using the image onload property (not standard, but usually supported).
Feb 4 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.