GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Webmaster Q & Fuckin' A (https://gfy.com/forumdisplay.php?f=27)
-   -   onclick popup script not working with iframe? (https://gfy.com/showthread.php?t=1096104)

levd 01-12-2013 10:42 AM

onclick popup script not working with iframe?
 
Hi there,

Wondering if anyone can help me get my onclick popup script working with iframes on my site.
This onclick script works awesome, if a visitor click somewhere on my page the pop is working however not on iframe i included.
Anyone knows how to get this working?

LEVD

levd 02-03-2013 06:57 AM

Still looking for a solution..anyone?

sarettah 02-03-2013 09:45 AM

Quote:

Originally Posted by levd (Post 19459605)
Still looking for a solution..anyone?

I am not sure of the best solution but you could put a transparent div over the iframe to capture the click and then hide the div so that they can actually click into the iframe.

Other than that you might be able to pass the click from the iframe back to the parent and make it work like that.

.

levd 02-06-2013 02:56 AM

Hi M8,

Something like this <div style="filter:alpha(opacity=50); opacity:0.5;">iframe</div>
But what do you mean with hide it after that?

LEVD

sarettah 02-06-2013 11:52 AM

Quote:

Originally Posted by levd (Post 19466888)
Hi M8,

Something like this <div style="filter:alpha(opacity=50); opacity:0.5;">iframe</div>
But what do you mean with hide it after that?

LEVD

A while back I put up a test of what I am talking about here http://www.partyafterdark.com/poptest/firstpage.htm

I am using a transparent gif in a div over the whole page. When you click on it it launches a new page in another tab and sets the div to display:none.

You could do the same thing on top of an iframe. Do a view source on it.

.

levd 02-07-2013 01:36 PM

Pretty awesome :) this works!

sarettah 02-07-2013 08:24 PM

Quote:

Originally Posted by levd (Post 19469497)
Pretty awesome :) this works!

Glad it worked for you :thumbsup

.

levd 02-08-2013 05:24 AM

btw: i found a pretty advanced pop script that actually pops under also in Chrome, the ones i had always popped over in chrome.
It has a lot of settings, i dont understand all of them, willing to share it with you, if you could be so kind to look at it and look at the settings and let me know.
Can i contact you?

sarettah 02-08-2013 07:47 AM

Quote:

Originally Posted by levd (Post 19470488)
btw: i found a pretty advanced pop script that actually pops under also in Chrome, the ones i had always popped over in chrome.
It has a lot of settings, i dont understand all of them, willing to share it with you, if you could be so kind to look at it and look at the settings and let me know.
Can i contact you?

Sure, I will take a look. I won't promise anything. Email is sarettah at hatterasdesigns dot com. ICQ is 2155399

.


All times are GMT -7. The time now is 03:56 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc