Smoothbox effect without clicking

Discussion in 'JavaScript' started by dumaas, Jan 15, 2009.

  1. #1
    Hi,

    I have a wordpress site where I'm sending customers to affiliate links using iframes inside smoothbox.

    I'd like to do some adwords test so that my landing page would open as it does now, but the affiliate link would be automatically opened also on top of the page using smoothbox effect. This should happen only if URI has some specific variable set.

    Can this be done, or does smoothbox/thickbox/lightview etc. effects always need a click?
     
    dumaas, Jan 15, 2009 IP
  2. dimitar christoff

    dimitar christoff Active Member

    Messages:
    882
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    90
    #2
    no, it can be done. anything can be done.

    consider the click as a simple event trigger that fires a pre-defined function with some parameters. you can just see what the function being called is and call it from elsewhere - as part of another function, another event like mouseenter / hover, on a timer after page load etc - you decide. sky's the limit :)
     
    dimitar christoff, Jan 16, 2009 IP