Another lame iFrame ? for you guys...

LMSInc.

New member
Oct 21, 2009
325
5
0
Ok, I've searched around here, as well as a few other forums, and G, and most of the answers are either confusing (maybe just to my stupid ass), or they are for something specific that doesn't help me (CPA offers and such).

So, my question is...

I'll use WF as an example for this :)

Say I wanted to create a page on wlckedfire.com (didn't check that), which would iFrame wickedfire.com, so if a user from here clicked on the link to wlckedfire.com, they could see wickedfire.com framed in the background, so they could still see their User CP etc.

All I want to do is frame a site, and insert my own DIV over a small section..

Fuck, did that make any sense?

Shit... Hold on, let me get out Photoshop for a quick example...

Ok, here is the pic... So, say I posted a link in a thread to www.wlckedfire.com/home.html, it would show this below, but still show the WF link, and the user info, so if the user wanted to click on anything ELSE (besides my DIV), they would be able to, and would return back to the real website. Get it?

Could someone give me a quick rundown of how to accomplish this? All I need is 1 simple stupid DIV, but this isn't my area of expertise... Obviously...

iframej.jpg
 


did you try floating a <div/> over an iframe? No clue if that would work but it would be my first stop as its very easy.
 
Hey guys, thanks! Checking out the first 2 suggestions now...

To Max and tjewsky, no, this isn't about iFraming any submits or anything like that, it's more about testing than anything, on a small unknown social networking site full of idiots.

No CPA fraud involved in this one :)
 
You can create a transparent div and position it absolute over the iframe. You'll be able to see whats under the div but the problem is you won't be able to click anything. Since its rendered on top, you cant click through it.

Also shouldn't this be in design section?
 
You cannot modify or in any way access the content of an iframe. You can't even access the actual URL of the iframe. As said, you can position a div above the iframe but anything under it wont be clickable
 
Make an iframe that takes up 100% of screen and set its position as 'relative' via css. Make another div with your desired height/width, positioning 'absolute' and position it (using top and left/right) to be over the part of the iframed page that you want to control. Use a linkable transparent gif with the width/height of the 'clickable' spot and you should be all set.
 
What about if you pulled the source to the other page dynamically, and just changed the code for the part you want to be different? I guess it depends on the application, if this is something that requires user cookies, obviously that won't work.
 
What about if you pulled the source to the other page dynamically, and just changed the code for the part you want to be different? I guess it depends on the application, if this is something that requires user cookies, obviously that won't work.

Unless you're talking about scraping the page and then changing the code and then displaying it, this is not possible with javascript