473,225 Members | 1,401 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,225 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 1637
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

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

Similar topics

3
by: Catherine Lynn Smith | last post by:
I want to know the recommended way to handle scripting of/with containers such as an iframe. I have a page with border-navigation bars on the top/bottom/left/right and I want to use an iframe to...
4
by: Thomas | last post by:
Hi there, I have an iframe which is editable (designMode = "on") and want to resize it dynamically as the content grows (e.g. more lines of text is in there) and there the struggle starts. I...
2
by: Rich | last post by:
Is there any way I can check to see if a document is loaded into the iframe before I call onLoad (sort of an afterLoad). I'm loading up a page into an iframe. But because we use four servers...
4
by: Keon | last post by:
Hoi Do someone know how i can make the background of a iframe transparancy? I already tried it with filter: Alpha(Opacity=50,); but it also make the text transperancy. do someone know how to...
3
by: Stevie_mac | last post by:
It might be me but... I dont seem to get a Page_Load event when a opening an ASPX in an iFrame. I do geta Page_Load event when an item on the ASPX (inside the iFrame) is clicked but then...
6
by: paul | last post by:
HI! How do we send a variable from an Iframe page back to its parent? I have a script that calculates the iframe's window size but I need to know how to send that value back to its parent so I...
3
by: PCgeek | last post by:
sorry moved this over to javascript forum, didn't mean to post 2x! Hi guys, I'm trying to put the finishing touches on my website and could really use some help on this particular issue. My page...
2
riptide2049
by: riptide2049 | last post by:
I really have a problem here. I have a code that is suppost to take the href of a link from the right class;value of a link maked toreturn false. the value is a Media file the file is sent to...
1
by: vytas | last post by:
Hello, I'm using editable iFrame to allow users to edit html templates. Since some parts of the template should be "read-only", I'd like to know is it possible to lock part of iFrame content for...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.