Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
|
Since focus is a singular event it must be on only one element at a time. It is also a native client-side JavaScript method, so it could be used like this:
Code:
jQuery(".lavaLamp a").each(function() {
this.focus();
this.blur();
});
I'm not saying this will work, I'm just speculating. I think you should be focusing on the .back class actually, since it actually holds background image. Be sure to do this after the lavaLamp plugin is actually activated, or it will be pointless.
Another idea is to place the lavaLamp activation code into a $(window).load(function(){}) event instead of the $(document).ready(function(){}) event, so that the browser will attempt to load all images before running the code.
|