473,549 Members | 2,588 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

remove scroll and resize php embeded

1 New Member
I'm making a gallery made of php files in a directory.
When the php files embeded, I found scrolling effect beside showing
files and it's not showed at all. Anyone know of some php script that can fix this?

Expand|Select|Wrap|Line Numbers
  1. <?php
  2. echo "<ul";
  3.  
  4. $filearray = array(); 
  5. if ($fil = opendir("php00/")) {
  6. while (($file = readdir($fil)) !== false) {
  7. if ($file != "." && $file != "..") 
  8. $filearray[] = $file;
  9. $page = empty($_GET['page']) ? 1 : $_GET['page'];
  10. $num_per_page = 3;
  11. $total_pages = ceil(count($filearray)/$num_per_page);
  12.  
  13.  
  14. }
  15. }
  16.  
  17.  
  18. for($i = ($page - 1) * $num_per_page; $i < $page * $num_per_page; $i++) 
  19. {?>
  20. ><li><a href="img/<?php echo $filearray[$i]; ?>">
  21. <embed src="php00/<?php echo $filearray[$i];  ?>"  alt="<?php echo $filearray[$i]; ?>" />
  22. </a></li
  23. <?php }
  24.  
  25. closedir($fil);
  26. echo "></ul>";
  27. $pages = array();
  28. for($i = 1; $i <= $total_pages; $i++) {
  29. $pages[] = "<a href=\"".$_SERVER['PHP_SELF']."?page=".$i."\">".$i."</a>";
  30. }
  31. echo "Page: ".implode(" ", $pages);
  32. }
  33.  
  34.  
  35. ?>
Jun 17 '12 #1
1 2413
Dormilich
8,658 Recognized Expert Moderator Expert
since PHP is a server-side language, it cannot affect how its result is displayed.
Jun 18 '12 #2

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

Similar topics

4
5295
by: Matt | last post by:
When the user resize the browser, the "Frequently Used Link" and "Table 1" and "Table 2" will shift to the left hand side, but table position is unchanged. I really have no idea how to fix that. I don't know what's the correct approach, I just try in different figures manually. Please advise. Thanks!! --------------------- test.html...
6
5623
by: David Hayes | last post by:
juglesh <juglesh@nospamRadioKDUG.com> wrote in "Re: how to maximize the browser window that fits the monitor size?" (Saturday, January 01, 2005 3:12 AM): > > >I want to maximize the browser window when I open a new window. > > function expand() { > window.moveTo(0,0); > window.resizeTo(screen.availWidth, screen.availHeight); > }
0
1261
by: Bob Rock | last post by:
Hello, is there a way to first know when a listview displays horizontal and/or vertical scroll bar (maybe an event is fired???) and then to resize the listview to make them disappear??? How much to resize the listview??? ... in other words how much pixels do scroll bars occupy??? Is it possible to discover the scroll bars size...
0
1837
by: satish jupalli via .NET 247 | last post by:
Hi all, I have a word Add-in from which i will open a word new document. For this document I want to remove maximize, resize option. I'm able to remove the resize option using stsyle &= (~(WS_THICKFRAME)); And applying this style to That window using user32.dll library imported function. Similarly I tried to remove maximize but its not...
0
925
by: satish jupalli | last post by:
Hi all, I have a word Add-in from which i will open a word new document. For this document I want to remove maximize, resize option. I'm able to remove the resize option using stsyle &= (~(WS_THICKFRAME)); And applying this style to That window using user32.dll library imported function. Similarly I tried to remove maximize but its not...
69
13369
by: RC | last post by:
I know how to do this in JavaScript by window.open("newFile.html", "newTarget", "scrollbars=no,resizable=0,width=200,height=200"); The browser will open a new window size 200x200, not allow resize and no auto horizontal, vertical scrolling bars. I am wonder can I do the similar inside a HTML file like
18
21567
by: gconrads | last post by:
OK, today is my twofer special on js questions. BTW: the method used here is working in Firefox I'm working on a script that switches the width of a Flash movie between 100% and 812 pixels depending on the innerwidth of the browser window. The point is when a flash movie is embedded for fullscreen usage (100%) it acts somewhat like a...
1
1572
by: prashweenet | last post by:
Hi I cannot remove the scrollbars in my application using scrollbars=no My browser is IE 6.0.2900 sp2 help much appricated Code snippet is below var sreturnval = window.showModalDialog( ClassChangeFrame.page?ObjectKey=FromOvw&Object_revision=ObjRev,dialogWidth:400px;dialogHeight:210px;help=no;scrollbars=no;status=no; ...
0
874
by: Nafly | last post by:
Dear Bro..... I dont know how to resize record mark columns in a grid. I tried it out in lots of way.. Can any one help me ? Please...
3
2578
by: PrabodhanP | last post by:
I have CSS based mouseover scrolling for divContent embeded in my webpage.It works fine in IE,but not working in mozilla-FF. It is located at the location.. http://www.integrityads.net/fashions/collection.htm Also it is not resolution compatible,i.e. alignment totally messed up when i increased the resolution.Please suggest. Code is as...
0
7532
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7971
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7491
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7823
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5101
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3491
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1956
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1068
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
776
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.