+ Reply to Thread
Results 1 to 7 of 7

Thread: Php

  1. #1
    richm8026 is offline x10 Sophmore richm8026 is an unknown quantity at this point
    Join Date
    Feb 2008
    Posts
    138

    Php

    I'm curious, can you make Slideable Menus using PHP, as in when you click the main Heading button, it'll collapse or expand... I've been wondering this for a while now, and never got around to asking if it's possible

  2. #2
    Salvatos's Avatar
    Salvatos is offline x10 Lieutenant Salvatos is an unknown quantity at this point
    Join Date
    Jun 2006
    Location
    Québec, Canada
    Posts
    271

    Re: Php

    As far as I know that can be used with PHP as well as HTML or anything, but what you use to make it is actually JavaScript, although some people do it with Flash.
    I don't think you can do it strictly in PHP but JavaScript has those functions triggered by events that can be used with other languages (if user clicks link, do this, if user hovers mouse, do that, etc.).

    I don't know much about JS myself but I know you can easily find tutorials for what you are looking for. Just Google "javascript menu tutorial" for example and you should get plenty.
    Last edited by Salvatos; 08-27-2008 at 11:20 AM.

  3. #3
    Dan's Avatar
    Dan
    Dan is offline
    Lord Of The Keys Dan is an unknown quantity at this point
    Join Date
    Aug 2007
    Location
    UK
    Posts
    1,258

    Re: Php

    You can make things like that in PHP alone where you click or hover over a button and another menu appears, but it is not possible to make it actually look like it's sliding in PHP, you would need to use Flash or JavaScript for that.
    Thanks,
    Dan
    _______________
    Retired Staff

  4. #4
    freecrm's Avatar
    freecrm is offline x10 Elder freecrm is an unknown quantity at this point
    Join Date
    May 2008
    Location
    UK
    Posts
    629

    Re: Php

    Quote Originally Posted by Dan View Post
    You can make things like that in PHP alone where you click or hover over a button and another menu appears.....
    Cool - how?

    This has massive implications for dynamic drop-down menus and I would love to know how its done.

    I currently use all JS.

    By the way - in response to the first post, Javascipt is the better option, rather than flash as the Javascript "interprets" standard menu items which are picked up by search engines easily - this is not the case with flash.

  5. #5
    Salvatos's Avatar
    Salvatos is offline x10 Lieutenant Salvatos is an unknown quantity at this point
    Join Date
    Jun 2006
    Location
    Québec, Canada
    Posts
    271

    Re: Php

    Yep I mentioned Flash 'cause I know some use it but I don't like the idea ^^

    And well Dan, you got me curious too :P

  6. #6
    marshian's Avatar
    marshian is offline x10 Elder marshian is an unknown quantity at this point
    Join Date
    Jan 2008
    Location
    Belgium
    Posts
    526

    Re: Php

    PHP is server-side, sliding menu's is client-side <-- see my point? You can't use PHP to make sliding menu's... You need some sort of client-side language/application to do that. (JavaScript being a good option.)
    Real programmers don't document their code - if it was hard to write, it should be hard to understand.

  7. #7
    freecrm's Avatar
    freecrm is offline x10 Elder freecrm is an unknown quantity at this point
    Join Date
    May 2008
    Location
    UK
    Posts
    629

    Re: Php

    Quote Originally Posted by marshian View Post
    PHP is server-side, sliding menu's is client-side <-- see my point? You can't use PHP to make sliding menu's... You need some sort of client-side language/application to do that. (JavaScript being a good option.)
    Thought that was the case!

+ Reply to Thread

Similar Threads

  1. Ever Been Suspended For Using PHP?
    By dragoneye_xp in forum Off Topic
    Replies: 26
    Last Post: 08-16-2009, 07:17 PM
  2. [PHP] Variables in PHP
    By Bryon in forum Tutorials
    Replies: 15
    Last Post: 01-29-2009, 09:46 AM
  3. php errors galore
    By DMG Online in forum Scripts & 3rd Party Apps
    Replies: 9
    Last Post: 05-17-2008, 06:23 AM
  4. Process PHP from a MySQL array
    By tnl2k7 in forum Programming Help
    Replies: 12
    Last Post: 05-05-2008, 10:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers