I'm not entirely sure what the problem is here, because - apart from the fact that your code makes absolutely no mention of a class of "rollover" - all you've done is state (with dubious accuracy) what your code does. Not what you want it to do. And the post title is no help because there are no DIVs mentioned in your script, and no example html to refer to.
Can you possibly expand on what it is that you want your script to do that it isn't (or don't want it to do that it is), and some sample html would probably help? On Jan 13, 8:12 am, cellis <[EMAIL PROTECTED]> wrote: > heres the deal, I've got some jq that looks for any <a> with a class > of .rollover , and its replacing the images of ALL of the images with > a surroudning <a> with a class of .rollover. Any ideas? > > <script type="text/javascript"> > $(document).ready(function(){ > > $(".menuImage").hover( > function() { > curr = $(this).find("img").attr("src"); > overlen = curr.length; > over = curr.substr(0, overlen-12); > over = over+'_over.gif'; > $(this).find("img").attr({ src: over}); > }, > function() { > $(this).find("img").attr({ src: curr}); > } > ) > > $(".menuImage").find("img").each(function(i) > { > temp = this.src; > prelen = temp.length; > pre = temp.substr(0, prelen-12); > pre = pre+'_over.gif'; > preload_image_object = new Image(); > preload_image_object.src = pre; > }); > }); > </script>