SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Jul 2008
    Posts
    255
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can I use thickbox when a page loads?

    Hi,
    Something horrible wrecking my brain, I want to use thickbox to open a modal window then I open a page, is this possible?

    From what i can see it can only be used when a user clicks on a link with the thickbox class?

    If somebody has done it, can they please show me?

  2. #2
    SitePoint Member
    Join Date
    Oct 2008
    Location
    Snyder, TX, US
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    if you're using thickbox for jquery you should be able to call the tb_show function.
    Code JavaScript:
    $( function() {
    tb_show(caption, url, imageGroup);
    } );
    if you don't want a caption, use null
    if there's not an imageGroup, use false


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •