I'm not sure this is the right place for this, since it's not really something the Views module offers by default functionality. Here's to hoping someone can help anyway :) I have a list of videos in a view that I needed to add lightbox attributes for. Unfortunately I was unable to alter the links in the view settings to do this, so I turned to javascript. There were a number of examples of people who had needed the same solution for lightbox links in views and I borrowed some code from here -> (http://drupal.org/node/252260). Here's what I have below in my views header:

<script>
$(document).ready(function() {
   $(".views-field-title > a").each(function() {
     $(this).attr("href", $(this).attr("href") + "?format=simple");
     $(this).attr("rel", "lightframe");
     });
   Lightbox.initList() ;
});
</script>

This works great in firefox etc, but in IE, if I click a video link and watch it in its lightbox popup, and then click any other non-video link on the page, IE instantly hangs/freezes.

Comments

Sansui’s picture

Ok, scratch that... I removed the javascript from the header and was able to rewrite the link to include "rel" attribute directly. With the javascript removed from the header, internet explorer is still crashing after viewing a lightframe popup :(