Hi Guys! I've been searching around for a browser-friendly iframe code and I know the basic iframe code, but wanted to know if someone can give me a good one to use that works for all browsers and is best to use when doing ppc advertising and using iframe for the offer. Appreciate it!
I think the normal iframe code works on 95% of browsers I gues only very old version of browsers don't support iframes
Use php/shtml includes instead of iframes. Better browser compatibility. IE7 blocks iframes on default.
You're joking o.0 !?! It seems all they did in IE7 was block stuff which could possibly be used maliciously; as opposed to actually conjuring up real solutions.. Anyway, back on topic... As Kaizoku said, use php includes <?php include('http://domain.com/path/to/file/with/advert.html'); ... ?> PHP:
Very bad idea! This could lead to malicious php execution on your own server which could(can+has) lead to server compromise. From memory you should be using something like this http://us.php.net/function.file-get-contents. But never include(); for remote files that are not your own.
<? echo file_get_contents("http://localhost/style.css"); ?> <? $moo = file_get_contents("http://localhost/style.css"); echo $moo; ?> PHP: Replace the url of course Hope this helps. I am also shocked that IE7 blocks iframes? Another step in anti standards direction.