PDA

View Full Version : Alternatives to iframe



cheatpark
February 28th, 2002, 12:31
Are there any alternatives and if yes what are they?

Dusty
February 28th, 2002, 13:03
Regular frames.

cheatpark
February 28th, 2002, 13:06
Any others? This is for a banner exchange script. I insert some html code and part of a php file appears in the page...back to what I was saying. Any other ways?

Dusty
February 28th, 2002, 13:13
Well... normally you'd just have an <img> tag, but I'm assuming this isn't a regular banner exchange? You could try putting <script language="JavaScript" src="http://yourhost/script.php"></script> on the remote servers, then have the PHP file on your server print out whatever it is it's printing out as JavaScript. For example:

<?php

print "document.write(\"<img src=\\\"banner.gif\\\">\");";

?>

Apsylus
February 28th, 2002, 18:53
a cross between Javascript/layers and CSS might work, it'd be a pain in the posterirer to Code but would work well in the end :chinese2:

Christopher
March 1st, 2002, 16:56
Why not use an include command? SSI or PHP? Or would that not work? :rolleyes:

Dusty
March 1st, 2002, 18:12
It's for a banner exchange, which I'd assume means the bit that calls the banner is going to be on a remote server. That means SSI is out. PHP could be done, but it's asking a bit much of members to not only support PHP but to rename all their pages .php just for the exchange. My suggestion would be to take my suggestion :).

keith
March 1st, 2002, 18:17
so many people substitute tables for iframes. just use tables and save netscape users the frustration of not being able to view your page correctly.

Dusty
March 1st, 2002, 18:19
I think you missed the second post that explained what the iFrame was for... and Netscape 6.x supports iFrames.

keith
March 1st, 2002, 19:36
hey you're right, totally skipped over that part... don't mind me.

Kaliber
March 1st, 2002, 20:46
just use dynamic variables, for example


<a href="http://www.cheatpark.net/exchange/click.php?userid=x" target=_blank><img src="http://www.cheatpark.net/exchange/banner.php?id=x"></a>