Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help.

 
Thread Tools
Old 02-22-2019, 02:29 PM   #1
Cameltoepro
Confirmed User
 
Cameltoepro's Avatar
 
Industry Role:
Join Date: Sep 2012
Posts: 818
Iframe open in new tab

Have a question. I have gooled this to death. Yet, nothing I have found works right. I'm using a Iframe on a blog. The Iframe works great. Yet, I'm wanting to make so when the suffer clicks on the Iframe it opens in a different tab. Here is my current code: [iframe src="https://imlive.com/wmaster2.ashx?wid=xxxxxxxx&LinkID=701&promocode=BC ODEL0000002_00000&QueryID=1&from=freevideo6"]

Is this workable?
__________________
40 to50% Rev Share On Everything. No Costs To You. You Get All Your Money! Update Every 7 Days Over 13.000 Images And Videos! Click Here To Start Making Money


Sell your movies or images and
get your own site
Cameltoepro is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2019, 03:08 PM   #2
roxpoxy
Registered User
 
roxpoxy's Avatar
 
Industry Role:
Join Date: Jan 2015
Posts: 87
may be a bit tricky, I would try to break out of the frame with a bit of javascript then re-directing.
something like these:
https://css-tricks.com/snippets/java...out-of-iframe/
https://stackoverflow.com/questions/...-parent-window
__________________
roxpoxy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2019, 04:37 PM   #3
sarettah
I'll make you famous...
 
sarettah's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: In the middle
Posts: 8,511
Quote:
Originally Posted by Cameltoepro View Post
Have a question. I have gooled this to death. Yet, nothing I have found works right. I'm using a Iframe on a blog. The Iframe works great. Yet, I'm wanting to make so when the suffer clicks on the Iframe it opens in a different tab. Here is my current code: [iframe src="https://imlive.com/wmaster2.ashx?wid=xxxxxxxx&LinkID=701&promocode=BC ODEL0000002_00000&QueryID=1&from=freevideo6"]

Is this workable?
Put a div with an anchor tag over the iframe.

<a href=urlyouwanttoopen target=_blank>
<div>
<iframe>
</iframe>
</div>
</a>

Be aware that opening in a new tab can trigger popup blockers.

.
__________________
Check out the Free Cams at Camfoxes.com.

Hot 18 Year Olds and Nothing But 18 year olds on Cam.

There is a cult of ignorance in the United States, and there always has been. The strain of anti-intellectualism has been a constant thread winding its way through our political and cultural life, nurtured by the false notion that democracy means that "my ignorance is just as good as your knowledge."
Isaac Asimov, Column in Newsweek (21 January 1980)
sarettah is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2019, 04:43 PM   #4
Cameltoepro
Confirmed User
 
Cameltoepro's Avatar
 
Industry Role:
Join Date: Sep 2012
Posts: 818
Thats true..im going to try all of them
__________________
40 to50% Rev Share On Everything. No Costs To You. You Get All Your Money! Update Every 7 Days Over 13.000 Images And Videos! Click Here To Start Making Money


Sell your movies or images and
get your own site
Cameltoepro is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-24-2019, 07:42 AM   #5
acason
Registered User
 
Industry Role:
Join Date: Jan 2019
Posts: 74
Get with file get contents.
__________________
acason is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-24-2019, 07:58 AM   #6
Cameltoepro
Confirmed User
 
Cameltoepro's Avatar
 
Industry Role:
Join Date: Sep 2012
Posts: 818
Yeah..nothing works right..so just went with banners
__________________
40 to50% Rev Share On Everything. No Costs To You. You Get All Your Money! Update Every 7 Days Over 13.000 Images And Videos! Click Here To Start Making Money


Sell your movies or images and
get your own site
Cameltoepro is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-24-2019, 10:37 AM   #7
sarettah
I'll make you famous...
 
sarettah's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: In the middle
Posts: 8,511
Ok, I screwed up what I put up. I hate when I do that

You don't need a div wrapping around the iframe, you need a div overlaying the iframe.

Anyway, I put a demo page up for you at Cameltoepro's Iframe test

When you click anywhere on the iframe it opens a new tab/window for the same url as the iframe. You can, of course make the url anything you want.

I used absolute positioning to put the overlay directly over the iframe. You could do a div that overlays the entire page and you would not have to do the positioning on the iframe but then any click on the page would go to the url.

The code in there for the pertinent section is:

<!-- destination url -->
<a target=_blank href=https://imlive.com/hostlist.ashx?cat=1&Roomid=10,160&fromsearch=detai l&gallery=1&captionid=1>

<iframe style="position:absolute;top:50px;left:50px;width: 500px;height:500px;" src=https://imlive.com/hostlist.ashx?cat=1&Roomid=10,160&fromsearch=detai l&gallery=1&captionid=1 scrolling=no></iframe>

<!-- This div overlays the iframe -->
<div style="position:absolute;top:50px;left:50px;width: 500px;height:500px;"></div>

</a>


Tested in Chrome, FF and Opera.

.
__________________
Check out the Free Cams at Camfoxes.com.

Hot 18 Year Olds and Nothing But 18 year olds on Cam.

There is a cult of ignorance in the United States, and there always has been. The strain of anti-intellectualism has been a constant thread winding its way through our political and cultural life, nurtured by the false notion that democracy means that "my ignorance is just as good as your knowledge."
Isaac Asimov, Column in Newsweek (21 January 1980)
sarettah is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-24-2019, 10:57 AM   #8
sarettah
I'll make you famous...
 
sarettah's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: In the middle
Posts: 8,511
The anchor tag in there does not have to come before the iframe. It can be coded after the iframe if that code makes more sense when you look at it.

<iframe style="position:absolute;top:50px;left:50px;width: 500px;height:500px;" src=https://imlive.com/hostlist.ashx?cat=1&Roomid=10,160&fromsearch=detai l&gallery=1&captionid=1 scrolling=no></iframe>

<!-- destination url -->
<a target=_blank href=https://imlive.com/hostlist.ashx?cat=1&Roomid=10,160&fromsearch=detai l&gallery=1&captionid=1>

<!-- This div overlays the iframe -->
<div style="position:absolute;top:50px;left:50px;width: 500px;height:500px;"></div>

</a>

That works the same as the other code I believe.

Anyway, I hope that helps with the situation.

.
__________________
Check out the Free Cams at Camfoxes.com.

Hot 18 Year Olds and Nothing But 18 year olds on Cam.

There is a cult of ignorance in the United States, and there always has been. The strain of anti-intellectualism has been a constant thread winding its way through our political and cultural life, nurtured by the false notion that democracy means that "my ignorance is just as good as your knowledge."
Isaac Asimov, Column in Newsweek (21 January 1980)
sarettah is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-24-2019, 12:30 PM   #9
Cameltoepro
Confirmed User
 
Cameltoepro's Avatar
 
Industry Role:
Join Date: Sep 2012
Posts: 818
Damn. Thanks..I like the way it looks..I will let you know how it works..😀
__________________
40 to50% Rev Share On Everything. No Costs To You. You Get All Your Money! Update Every 7 Days Over 13.000 Images And Videos! Click Here To Start Making Money


Sell your movies or images and
get your own site
Cameltoepro is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks

Tags
iframe, tab, workable, clicks, code, [iframe, current, suffer, question, found, death, gooled, blog
Thread Tools




©2000-, AVN Media Network Inc



Powered by vBulletin
Copyright 2000- Jelsoft Enterprises Limited.