![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
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> |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Too lazy to set a custom title
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
making it rain
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); |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
She is ugly, bad luck.
Industry Role:
Join Date: Jan 2010
Posts: 13,177
|
__________________
↑ see post ↑ 13101 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Too lazy to set a custom title
Industry Role:
Join Date: Dec 2004
Location: Happy in the dark.
Posts: 93,524
|
That sounds like a pain in the ass...
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2003
Posts: 22,651
|
last i knew, IE blocks changing of iframes with js
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Industry Role:
Join Date: Aug 2001
Posts: 63,151
|
Not sure if it's possible at all...
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
Do Fun Shit.
Industry Role:
Join Date: Dec 2004
Location: OC
Posts: 13,393
|
Quote:
![]() ![]()
__________________
![]() “I have the simplest tastes. I am always satisfied with the best.” -Oscar Wilde |
|
![]() |
![]() ![]() ![]() ![]() ![]() |