New Unblockable Popup

Tuesday September 25, 2007

I created a variant of the popular unblockable popup that fades into the page instead of flying in from the top of the page.

Click here to check it out!

comments Comments

Where is this?

by Jerry

Coz I can't find it


Click the link....

by Marty

<a href="http://www.bmgadg.com/fade_ad.php">Right Here</a>


Other popup

by PJ

I like the popup with the "geek" more ... Can I also grab that code?

Thanks


Working on it

by Marty

I'll work on getting it on the site this weekend. Check back...


Thanks

by PJ

That would be great, I saw it and I was really impressed... Please fix it asap, because it's HOT on my website. Thanks!!


Bug in the Fade funtion?

by Andy Schmidt

The hide function doesn't seem to work for all visitors. In our office we have several IE7 systems where the never ends up in a differnt z-Level - but never actually totally fades away. On other systems (same patch level of IE7) it works.

I looked at the Fade() function and I noticed TWO things:

1. when amt reaches 0, it would best best to set visibility to "hidden" so that the rollover doesn't display the ALT text.

2. I fail to see WHEN the fade() iterations ever end. It seems that there is NO condition in place where the SetTimeout is NOT executed - even if amt has reached 0.

I adjusted the code to address both these issues:

function fade(amt) { if((t == 100 && amt <= t) || (t == 0 && amt >= t)) setFade(amt);

if(amt == t && t==0) { moveUp(-1); // Hide DIV after faded out and stop interval var obj; if (document.layers) obj = document.layers.fa; else if (document.all) obj = document.all.fa; else if (document.getElementById) obj = document.getElementById("fa"); obj.style.visibility="hidden";

return; } amt += (t > 0)? 10:-10; if(timer!=null) clearInterval(timer); timer = setTimeout("fade("+amt+")", 20); }


Thanks for the fix

by Marty

I'll work this fix into the code ASAP!


New Version

by Marty

I've created a new version of both fade ads. This version is more simplified and I hope more cross-browser compatible. Please download the new version(s) and let me know if they work ok or not.


post comment Post a Comment
Name:
Heading:
Comments:
(BBCode OK)
Captcha Image:captcha
Characters: