Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Javascript 

Shadowbox ad pops up after button clicked

EDIT: fixed it myself

Hey guys,

So what I am trying to do is when a user presses a button on my website I want the shadowbox ad to appear. I'm just having trouble calling it of setting it up right because at the moment the script is made for the ad to pop up as soon as a user has entered but want it only to pop up if a user clicks button.

Could anyone help me out with this.


Here is the code:

Had to use pastebin because hf wasn't letting me post code
Do you have a page where we can see this in action? You'll probably need to override the event handler which instructs the popup to appear, and then set up a separate event handler (button onclick) which replicates that function call.
(Dec 8, 2016 07:54 PM)D3xus Wrote:  Do you have a page where we can see this in action? You'll probably need to override the event handler which instructs the popup to appear, and then set up a separate event handler (button onclick) which replicates that function call.

Figured it out in the end, wasn't to hard hit went about it in a different way. Thanks for the reply though
(Dec 8, 2016 07:55 PM)Mr Reddington Wrote:  Figured it out in the end, wasn't to hard hit went about it in a different way. Thanks for the reply though
Not a problem. Shoot me a message if you have other JS questions.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[PHP] by EffexionFeb 12, 2019 03:34 AM 0 188 Feb 12, 2019 03:34 AM
Last Post: Effexion
[PHP] by Dale CarnegieMay 4, 2018 02:52 PM 7 170 May 4, 2018 02:52 PM
Last Post: Bluffer
[PHP] by mr.crackerJan 15, 2015 01:32 PM 4 552 Jan 15, 2015 01:32 PM
Last Post: +Haze