![]() |
need some code help please
I am working on an iframe which is to become a sub page of a domain of mine.
the contents within the iframe are a cobranded page from an affiliate program. The iframe is coded with a status bar message to hide the reflink urls from appearing in the status bar. I next added a couple of times, no right click scripts & none of them work. which code can I use to disable right click on/in an iframe? Also I want to hide or disable viewing of the source code. When I click view source code from the page, I get the source code of the page contained inside the iframe. When I click view source code in the windows toolbar, I get the source code of my own page with the iframe. any suggestions. It is for a cobranded site from an affiliate program & I am trying to integrate it to look & feel as if it were all on the same domain, hence the Iframe. PS, I know several no right click scripts & codes & am familiar with writing them, but they don't work on Iframes? I need one that works on Iframes, to prevent right click of the offsite page as well as Iframe itself. & disable source code |
i dont htink you can hide the code of the iframe , because you dont control it.. but you can control your pages right click
|
Quote:
|
you could do it in php by using ssi to include the page your trying to iframe , then just add any no click script to the page
|
another thing I need help with is the height of the Iframe.
the width of the contained page is consistent, however, the height always changes, therefore If I set a fixed height, it could either be too big, or too small depending on what content is displayed on the contained page. I've been googling, but am unable to find the code for autosizing the iframe to autosize to the height of the contained page. Can anyone offer assistance in this? thanks |
Quote:
yeah, hmm.. maybe I should php include the external page onto an internal .php page instead of using Iframe... thanks, I'm going to look into how to set that up. |
if the content within the frame is yours, check the referrer and if its the page thats loading the iframe, insert (or activate) the no right click code
|
Quote:
|
Quote:
$url = "http://somesite.com"; $html = file_get_contents($url); echo $html; ?> |
Quote:
thanks very much. You saved me some headaches. It solved another problem I was having with the Iframe too. :thumbsup |
Quote:
|
Quote:
|
| All times are GMT -7. The time now is 11:42 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123