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
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 07-27-2010, 11:21 AM   #1
DWB
Registered User
 
Industry Role:
Join Date: Jul 2003
Location: Encrypted. Access denied.
Posts: 31,779
Is it possible to inject a background color into someone else's iframe?

I need to turn a iframe with a white bg into a black bg.

Is there anyway to do this?


<IFRAME SRC="http://www.xxxxxx.com/table/xxxxxx/xxxxxx.html?affiliate_id=XXXXXX" width=950 height=1710 frameborder="no" scrolling="no"></IFRAME>
DWB is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-27-2010, 11:32 AM   #2
CDSmith
Too lazy to set a custom title
 
CDSmith's Avatar
 
Industry Role:
Join Date: May 2001
Location: My network is hosted at TECHIEMEDIA.net ...Wait, you meant where am *I* located at? Oh... okay, I'm in Winnipeg, Canada. Oops. :)
Posts: 51,460
Simplest way I know is just ask the owner of the Iframe to make a second version of their page/image, with a black background, and issue you a new iframe for it.

:D
__________________
Promote Wildmatch, ImLive, Sexier.com, and more!!

ALWAYS THE HIGHEST PAYOUTS: Big Bux/ImLive SIGNUP ON NOW!!!

Put some PUSSYCA$H in your pocket.
ICQ me at: 31024634
CDSmith is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-27-2010, 11:34 AM   #3
fuzebox
making it rain
 
fuzebox's Avatar
 
Industry Role:
Join Date: Oct 2003
Location: seattle
Posts: 22,102
You can attach a stylesheet via javascript on the parent page.

Code:
var cssLink = document.createElement("link") 
cssLink.href = "style.css"; 
cssLink .rel = "stylesheet"; 
cssLink .type = "text/css"; 
frames['frame1'].document.body.appendChild(cssLink);
fuzebox is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-27-2010, 11:41 AM   #4
ottopottomouse
She is ugly, bad luck.
 
ottopottomouse's Avatar
 
Industry Role:
Join Date: Jan 2010
Posts: 13,177
http://www.webmasterworld.com/forum21/11217.htm
__________________
↑ see post ↑
13101
ottopottomouse is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-27-2010, 03:42 PM   #5
DWB
Registered User
 
Industry Role:
Join Date: Jul 2003
Location: Encrypted. Access denied.
Posts: 31,779
None of that worked. I think when it calls their page it overwrites what I make.

No worries, thank for trying to help. I will contact them to try to get a different one.
DWB is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-27-2010, 04:31 PM   #6
Varius
Confirmed User
 
Industry Role:
Join Date: Jun 2004
Location: New York, NY
Posts: 6,890
If you use any programming language, you can do that easily.

Example, with PHP:

- Fetch the iframe page, for example with cURL
- Replace the background color white part with black
- Output

You can also use some jQuery/javascript to do the replacing as soon as the iframe loads, though this may cause a flicker if your user is on a slow connection.
__________________
Skype variuscr - Email varius AT gmail
Varius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-27-2010, 05:44 PM   #7
CaptainHowdy
Too lazy to set a custom title
 
CaptainHowdy's Avatar
 
Industry Role:
Join Date: Dec 2004
Location: Happy in the dark.
Posts: 93,524
That sounds like a pain in the ass...
__________________
Tjeezers.cam plus all sites $12.000,00.
Transfer within 24 hours.
CaptainHowdy is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2010, 12:14 AM   #8
JD
Too lazy to set a custom title
 
Industry Role:
Join Date: Sep 2003
Posts: 22,651
Quote:
Originally Posted by fuzebox View Post
You can attach a stylesheet via javascript on the parent page.

Code:
var cssLink = document.createElement("link") 
cssLink.href = "style.css"; 
cssLink .rel = "stylesheet"; 
cssLink .type = "text/css"; 
frames['frame1'].document.body.appendChild(cssLink);
last i knew, IE blocks changing of iframes with js
JD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2010, 03:24 AM   #9
Chosen
 
Industry Role:
Join Date: Aug 2001
Posts: 63,151
Not sure if it's possible at all...
Chosen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2010, 03:27 AM   #10
munki
Do Fun Shit.
 
munki's Avatar
 
Industry Role:
Join Date: Dec 2004
Location: OC
Posts: 13,393
Quote:
Originally Posted by Varius View Post
If you use any programming language, you can do that easily.

Example, with PHP:

- Fetch the iframe page, for example with cURL
- Replace the background color white part with black
- Output

You can also use some jQuery/javascript to do the replacing as soon as the iframe loads, though this may cause a flicker if your user is on a slow connection.
__________________

I have the simplest tastes. I am always satisfied with the best.” -Oscar Wilde
munki 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



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.