Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • what do you mean by '#my-link'. sorry im a noob Commented Jun 25, 2011 at 22:34
  • #my-link is a selector that finds an element with an id="my-link". Commented Jun 25, 2011 at 22:36
  • @jared where can i put this link? in my index.php or the thickbox.js file? Commented Jun 25, 2011 at 22:54
  • With the first part of my answer I meant, that you already have an existing link on your page (e.g. index.php) that is there when thickbox initializes, that has attributes that thickbox is looking for, so after clicking on the link, the thickbox overlays shows up. In jQuery, you can call $(selector).click() to trigger all click event handlers bound to that element. Since thickbox registers click events, the overlay will open. Commented Jun 26, 2011 at 10:42