473,486 Members | 2,136 Online
Bytes | Software Development & Data Engineering Community
Create 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 2401
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
5293
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...
6
5606
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...
0
1256
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...
0
1829
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 &=...
0
919
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 &=...
69
13329
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...
18
21555
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...
1
1566
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 =...
0
864
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
2568
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.....
0
7100
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,...
0
7126
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6842
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...
0
7330
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...
0
4559
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...
0
3070
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
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 ...
1
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.