jayjayfinney Posted June 13, 2010 Share Posted June 13, 2010 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 Link to comment https://forums.phpfreaks.com/topic/204675-frames/ Share on other sites More sharing options...
ohdang888 Posted June 13, 2010 Share Posted June 13, 2010 have you tried yourself? Link to comment https://forums.phpfreaks.com/topic/204675-frames/#findComment-1071588 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.