Drupal Technical
[SOLVED][Drupal Colorbox][Drupal 7] How to open Colorbox on page load?
Many Drupal users wanted to know how to open Colorbox on load. If you are faced with the same question with Colorbox in your Drupal site and wish to open a webpage in Colorbox when the page has finished loading then read on to find out more.
Just copy and paste the following code to one of your template files after the body tag.
(function ($) {
$(document).ready(function(){
$.fn.colorbox({href:'/node/124', open:true, iframe:true, width:817, height:500,overlayClose: false, escKey:false}
);
});
}(jQuery));
Hope that helps.
The easiest way to solve a Drupal issue is to hand it to the Drupal experts. We can provide a wide range of Drupal services to help you maintain and manage your Drupal websites. Get in touch with us to know more.
Reference: http://drupal.org/node/1300320