AshleyQuick
07-06-2005, 08:15 PM
Here's the scenarios:
I have a page:
http://www.mysite.com/forums.htm
...which contains an iframe:
http://www.mysite.com/forums/
In the forums, I have a graphic allowing the user to bust out of the iframe and into "full screen" mode (which is simply a hyperlink with target=_top)
Is it possible to modify the code below to convert the "full screen" mode graphic to a spacer (effectively making it disappear) once they've gone full screen?
As you can see below, I've tried a couple different approaches (one is commented out). This code normally works but the iframe functionality is complicating things. :(
<table align="center" width="<?=$twidth?>" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<?php
if(basename($_SERVER["PHP_SELF"]) == '/forums/index.php') {
//if($_SERVER["PHP_SELF"] == '/forums/index.php') {
?>
<?php
?>
<td align="center" valign="middle" width="98%"><div align="right"><img src="images/spacer.gif" alt="" width="24" height="24" border="0"></div><!-- <span class="finfo"><?=$upb_info?></span><br> --><span class="tbar"><?=$tools?></span></td>
<?php
} else {
?>
<td align="center" valign="middle" width="98%"><div align="right"><a href="http://www.mysite.com/forums/" target="_top" title="Switch to Full Screen Mode"><img src="images/full.screen.gif" alt="" width="24" height="24" border="0"></a></div><!-- <span class="finfo"><?=$upb_info?></span><br> --><span class="tbar"><?=$tools?></span></td>
<?php
}
?>
</tr>
</table>
I have a page:
http://www.mysite.com/forums.htm
...which contains an iframe:
http://www.mysite.com/forums/
In the forums, I have a graphic allowing the user to bust out of the iframe and into "full screen" mode (which is simply a hyperlink with target=_top)
Is it possible to modify the code below to convert the "full screen" mode graphic to a spacer (effectively making it disappear) once they've gone full screen?
As you can see below, I've tried a couple different approaches (one is commented out). This code normally works but the iframe functionality is complicating things. :(
<table align="center" width="<?=$twidth?>" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<?php
if(basename($_SERVER["PHP_SELF"]) == '/forums/index.php') {
//if($_SERVER["PHP_SELF"] == '/forums/index.php') {
?>
<?php
?>
<td align="center" valign="middle" width="98%"><div align="right"><img src="images/spacer.gif" alt="" width="24" height="24" border="0"></div><!-- <span class="finfo"><?=$upb_info?></span><br> --><span class="tbar"><?=$tools?></span></td>
<?php
} else {
?>
<td align="center" valign="middle" width="98%"><div align="right"><a href="http://www.mysite.com/forums/" target="_top" title="Switch to Full Screen Mode"><img src="images/full.screen.gif" alt="" width="24" height="24" border="0"></a></div><!-- <span class="finfo"><?=$upb_info?></span><br> --><span class="tbar"><?=$tools?></span></td>
<?php
}
?>
</tr>
</table>