Jump to content

Frames


jayjayfinney

Recommended Posts

I got hold of a premade php script the other day, it's a search engine. What happens is that the results are displayed in a frame on the search php page, however when a link is clicked the site is opened within the frame (with my site borders/adverts around it) and not on the complete page (if u get wot i mean?)

Now i want 2 add a 'remove frame' text which will be hyperlinked to remove the frame and display what ever site is currently in the frame, but in whole.

 

Below is the PHP scirpt for the frame, on the search site:::

 

<div style="width: 100%; height: 100%; float: left; display:block; overflow:hidden;" >

<?php

}

?>

 

 

 

<?php

$iii=0;

while ($iii < $num1) {

$position_id=mysql_result($result1,$iii,"position_id");

$default=mysql_result($result1,$iii,"default");

$urlcode1=mysql_result($result1,$iii,"code1");

$urlcode2=mysql_result($result1,$iii,"code2");

$myval = "";

?>

<?php

 

if ($default==1)

{

$myval=$urlcode1.$SearchVal.$urlcode2;

}

else

{

$myval="";

}

?>

<iframe src='<?php echo $myval; ?>' id="frame<?php echo $position_id; ?>" onload="frameload(<?php echo $position_id; ?>)" scrolling="yes" width="100%" frameborder="0" height="85%"></iframe>

<?php

$iii++;

}

?>

 

</div>

 

Thank you :D

Link to comment
https://forums.phpfreaks.com/topic/204675-frames/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.