471,603 Members | 1,439 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,603 software developers and data experts.

iframe content locking?

3
hello I would like the first 200 dots of iframe content to be skipped (so the iframe content top is 200 dots from the real top). it should not be able to scroll up those 200 dots. how can that be done?
Sep 18 '07 #1
3 1578
coat
3
I tried to integrate a frame in a php page but it dis rupts the page. codes are posted below. can anyone assist integration?

http://img233.imageshack.us/my.php?image=nowze4.jpg

Expand|Select|Wrap|Line Numbers
  1. <?php
  2. // Modified in 0.6.1 by Ralph
  3. // Creates initial welcome section when manager starts
  4. if(IN_ETOMITE_SYSTEM!="true") die($_lang["include_ordering_error"]);
  5. unset($_SESSION['itemname']); // clear this, because it's only set for logging purposes
  6.  
  7. if(!isset($settings_version) || $settings_version!=$version) {
  8.   // seems to be a new install - send the user to the configuration page
  9. ?>
  10.  
  11. <script type="text/javascript">document.location.href="index.php?a=17";</script>
  12.  
  13. <?php
  14.   exit;
  15. }
  16.  
  17. // do some config checks
  18. include_once "config_check.inc.php";
  19. ?>
  20.  
  21. <div class="subTitle">
  22.   <span class="floatRight">
  23.     <img src="media/images/_tx_.gif" width="1" height="5" /><br />
  24.     <?php echo $site_name ;?>&nbsp;-&nbsp;
  25.     <?php echo $_lang["home"]; ?>
  26.   </span>
  27. </div>
  28.  
  29. <script type="text/javascript">
  30. function checkIM() {
  31.   im_on = document.settings.im_plugin[0].checked; // check if im_plugin is on
  32.   if(im_on==true) {
  33.     showHide(/imRow/, 1);
  34.   }
  35. }
  36.  
  37. function showHide(what, onoff){
  38.  
  39.   var all = document.getElementsByTagName( "*" );
  40.   var l = all.length;
  41.   var buttonRe = what;
  42.   var id, el, stylevar;
  43.  
  44.   if(onoff==1) {
  45.     stylevar = "<?php echo $displayStyle; ?>";
  46.   } else {
  47.     stylevar = "none";
  48.   }
  49.  
  50.   for ( var i = 0; i < l; i++ ) {
  51.     el = all[i]
  52.     id = el.id;
  53.     if ( id == "" ) continue;
  54.     if (buttonRe.test(id)) {
  55.       el.style.display = stylevar;
  56.     }
  57.   }
  58. }
  59. </script>
  60.  
  61. <link type="text/css" rel="stylesheet" href="media/style/tabs.css" />
  62. <script type="text/javascript" src="media/script/tabpane.js"></script>
  63.  
  64. <div class="tab-pane" id="welcomePane">
  65.  
  66.  
  67. <!-- Welcome Panel -->
  68. <div class="tab-page" id="tabPage1">
  69.   <div class="tab">
  70.   <img src='media/images/misc/dot.gif' alt="." />&nbsp;<?php echo $_lang["welcome_title"]; ?>
  71.   </div>
  72.   <div class="sectionBody">
  73.     <table border="0" cellpadding="5" wdith="100%">
  74.       <tr>
  75.         <td width="10%" align="right">
  76.         <img src='media/images/misc/logo.gif' alt='<?php echo $_lang["etomite_slogan"]; ?>' />
  77.       </td>
  78.       <td valign="top">
  79.  
  80.   <?php
  81.   echo '<span class="menuHeader">'.$statMsg.'</span>';
  82.   ?>
  83.  
  84.     </td>
  85.     </tr>
  86.       <?php if($_SESSION['permissions']['messages']==1) { ?>
  87.     <tr>
  88.     <td colspan="2">
  89.       <i>
  90.       <a href="index.php?a=10">
  91.         <img src="media/images/icons/messages.gif" align="absmiddle" border=0>
  92.       </a>&nbsp;
  93.       <?php printf($_lang["welcome_messages"], $_SESSION['nrtotalmessages'], $_SESSION['nrnewmessages']); ?>
  94.       </i>
  95.     </td>
  96.     </tr>
  97.       <?php } ?>
  98.   </table>
  99.   </div>
  100. </div>
  101.  
  102. <!-- Check Last Visitors -->
  103. <div class="tab-page" id="tabPage2">
  104.   <div class="tab">
  105.     <img src='media/images/misc/dot.gif' alt="." />&nbsp;<?php echo $_lang["configcheck_title"]; ?>
  106.   </div>
  107.   <iframe id="framemove" src="http://url.url/folder/page.php" />
  108. </div>
  109.  
  110. <?php
  111. //  Debug code for displaying helpful cookie and session information during development
  112. $debug = false;
  113. if($debug == true) {
  114.   $sessionid = session_id();
  115.   $sessionname = session_name();
  116.  
  117.   echo "<center>
  118.   Current Session ID: $sessionid<br />
  119.   Current Session Name: $sessionname<br />
  120.   </center>
  121.   ";
  122.  
  123.   print_r($_COOKIE);
  124.   echo "<br /><br />";
  125.   print_r($_SESSION);
  126. }
  127. ?>
  128.  
Css file
Expand|Select|Wrap|Line Numbers
  1. .dynamic-tab-pane-control.tab-pane {
  2. position:relative;
  3. margin:10px;
  4. width:auto;
  5. }
  6.  
  7. .dynamic-tab-pane-control .tab-row .tab {
  8. font-size:11px;
  9. cursor:pointer;
  10. display:inline;
  11. margin:0px; /*-3px 1px 2px;*/
  12. /*float:left;*/
  13. padding:2px 15px 3px 15px;
  14. z-index:1;
  15. position:relative;
  16. top:0;
  17. background-position:top left;
  18. background-repeat: repeat-x;
  19. background:#D7E7FB;
  20. border:1px solid #003399;
  21. border-bottom:0;
  22. background-image: url("../images/misc/buttonbar.gif");
  23. }
  24.  
  25. .dynamic-tab-pane-control .tab-row .tab.hover {
  26. background-position:top left;
  27. background-repeat: repeat-x;
  28. background:white;
  29. border:1px solid #003399;
  30. border-bottom:0;
  31. background-image: url("../images/misc/buttonbar_gs.gif");
  32. }
  33.  
  34. .dynamic-tab-pane-control .tab-row .tab.selected {
  35. z-index:3;
  36. padding:2px 6px 5px 7px;
  37. /*margin:1px -3px -2px 0px;*/
  38. top:-2px;
  39. background:white;
  40. border:1px solid #003399;
  41. border-bottom:0;
  42. }
  43.  
  44. .dynamic-tab-pane-control .tab-row .tab span {
  45. font-size:11px;
  46. color:#003399;
  47. font-weight:normal;
  48. text-decoration:none;
  49. }
  50.  
  51. .dynamic-tab-pane-control .tab-page {
  52. clear:both;
  53. background:white;
  54. border:1px solid #003399;
  55. z-index:2;
  56. position:relative;
  57. top:2px;
  58. font-family:Message-Box;
  59. padding:10px;
  60. }
  61.  
  62. .dynamic-tab-pane-control .url-page {
  63. clear:both;
  64. background:white;
  65. border:1px solid #003399;
  66. z-index:2;
  67. position:relative;
  68. top:2px;
  69. font-family:Message-Box;
  70. }
  71.  
  72. .dynamic-tab-pane-control .tab-row {
  73. z-index:1;
  74. white-space:nowrap;
  75. }
  76.  
  77. .framemove {
  78.    width: 100%;
  79.    height: 100%;
  80.    overflow: auto;
  81.    position: absolute;
  82.    top: -200px;
  83.    right: 0;
  84. }
  85.  
Sep 23 '07 #2
drhowarddrfine
7,435 Expert 4TB
By 'dots', I assume you mean 'px'. Can't you give it a 200px margin?
Sep 23 '07 #3
coat
3
yes pixels. code above al ready does but it needs proper integration
Sep 23 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Catherine Lynn Smith | last post: by
4 posts views Thread by Keon | last post: by
3 posts views Thread by Stevie_mac | last post: by
3 posts views Thread by PCgeek | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by MichaelMortimer | last post: by
reply views Thread by CCCYYYY | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.