Jump to content


Scrollable PHP Navi.


9 replies to this topic

#1 BigDog

    Young Padawan

  • Members
  • Pip
  • 277 posts
  • Gender:Male
  • Location:Orange County, California
  • Interests:Running, building computers, PC games and BMX and programming.

Posted 23 November 2005 - 12:39 PM

Hey guys. I need help once again , but this time its on PHP Navigation.

http://www.competenc...?studio=service

<?php
$file = $_GET['studio'];
if(isset($folder) && isset($file)) {
include "".$folder."/".$file.".php";
} elseif (!isset($folder) && isset($file)) {
include "".$file.".php";
} elseif (!isset($file) && isset($folder)) {
include "".$folder."/index.php";
} else {
include "main.php";
}
?>

thats my code, and as you see in the link above, the site gets extended. Is there any way i can make it scrollable?
so the view/customer can just browse down?

#2 Av-

    I Feel Left Out

  • Members
  • PipPipPipPip
  • 1,971 posts
  • Gender:Male
  • Location:10 ft. below sea level

Posted 23 November 2005 - 01:18 PM

use divs

<div style="overflow:auto; width:100%; height:500px"><?php script here ?></div>

Edited by Avalanche, 23 November 2005 - 01:19 PM.


#3 BigDog

    Young Padawan

  • Members
  • Pip
  • 277 posts
  • Gender:Male
  • Location:Orange County, California
  • Interests:Running, building computers, PC games and BMX and programming.

Posted 23 November 2005 - 06:49 PM

:) Thank you!

I just need help one something else now. If you take a look at the site
http://www.competenc...g.com/studio17/
whenever i click on a link, it reloads the Flash on top. is it possible to make the PHP Navi to load like IFRAME. So it wont reload the whole page and just the Content area?

#4 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 24 November 2005 - 12:44 AM

http://www.pixel2life.com/forums/index.php...1&st=&p=&#entry <-- Same issue.

Search through the general website design forum. There's a couple of topics related to this in there (one of which should actually provide more info then the link i gave).

#5 Av-

    I Feel Left Out

  • Members
  • PipPipPipPip
  • 1,971 posts
  • Gender:Male
  • Location:10 ft. below sea level

Posted 24 November 2005 - 11:51 AM

so the only solution is by using frames ^_^

#6 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 24 November 2005 - 12:03 PM

Frames is actually only one option.
Another would be to use AJAX, but that causes compatibility issues, and requires a semi-good knowledge of JavaScript.
You could also do the entire site in flash.

#7 Av-

    I Feel Left Out

  • Members
  • PipPipPipPip
  • 1,971 posts
  • Gender:Male
  • Location:10 ft. below sea level

Posted 24 November 2005 - 06:17 PM

which would require a semi-good knowledge of flash
so you will either have to learn flash, or js :D

#8 BigDog

    Young Padawan

  • Members
  • Pip
  • 277 posts
  • Gender:Male
  • Location:Orange County, California
  • Interests:Running, building computers, PC games and BMX and programming.

Posted 24 November 2005 - 06:43 PM

Well, i gave up on that idea. I took out my PHP navigation and made it in to iframe.

-Thanks for your help guys

#9 Neil

    Past Staff Member

  • Members
  • Pip
  • 149 posts
  • Gender:Male
  • Location:Australia

Posted 29 November 2005 - 07:32 AM

Hey,

I might want to warn you about that php navigation that it has serious security issues involved with it and its vunerable to exploitation.

Please try to find another PHP navigation, eg This one

#10 BigDog

    Young Padawan

  • Members
  • Pip
  • 277 posts
  • Gender:Male
  • Location:Orange County, California
  • Interests:Running, building computers, PC games and BMX and programming.

Posted 29 November 2005 - 09:46 AM

Yes, i found that out once i got hacked :-)
thanks for the link





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users