HTML - PHP frame work help!

Discussion in 'PHP' started by XhennerzX, Aug 13, 2008.

  1. #1
    Hey, I've been having difficulty with my layout since it's made with frames.
    The menu frame scrolls down the left but i want it to be the whole website that scrolls and not the menu atall so that the menu is just a plain frame with no scrolling.

    anyways this is the code for the frames:

    </frameset>
    <frameset rows="25<?php if ($fetch->bar == "1"){ ?>,*<? } ?>" cols="*" framespacing="0" frameborder="NO" border="0">
    <?php if ($fetch->bar == "1"){ ?><frame src="" name="topFrame" scrolling="NO" noresize ><? } ?>
    <frameset rows="*" cols="187,*" framespacing="0" frameborder="NO" border="0">
    <frame src="menu.php" name="leftFrame" noresize>
    <frame src="updates.php" name="mainFrame">
    </frameset>
    </frameset>
    </frameset>
    <noframes></noframes>


    Any suggestions?

    Thanks

    Henry
     
    XhennerzX, Aug 13, 2008 IP
  2. Xemion

    Xemion Peon

    Messages:
    54
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I don't understand your problem. First off, I'd get rid of the frames. This can easily be accomplished through CSS/JS and your website will be easier to maintain and more SEO friendly.

    As I said, I don't fully understand what you're trying to accomplish (please rephrase), but it looks like to me your IF statements are mixed up. The first IF statement should be <?php if ($fetch->bar=="1"){?>25<?php } ?>
     
    Xemion, Aug 13, 2008 IP
  3. XhennerzX

    XhennerzX Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    what im trying to do is make the frame for the menu so that there is no scrollbar on it, and so that the whole webpage scrolls and not the menu frame
     
    XhennerzX, Aug 13, 2008 IP
  4. Xemion

    Xemion Peon

    Messages:
    54
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Ok, got it. thanks. Do you have an example link? Did you trying switching the if statement as I mentioned?
     
    Xemion, Aug 13, 2008 IP
  5. XhennerzX

    XhennerzX Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    XhennerzX, Aug 13, 2008 IP
  6. XhennerzX

    XhennerzX Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    yes i swapped the statements and nothing happened :)
     
    XhennerzX, Aug 13, 2008 IP
  7. Xemion

    Xemion Peon

    Messages:
    54
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    There's no frame on that page.
     
    Xemion, Aug 13, 2008 IP
  8. XhennerzX

    XhennerzX Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    sorry, the page is /main.php instead of mb.php
     
    XhennerzX, Aug 13, 2008 IP
  9. Xemion

    Xemion Peon

    Messages:
    54
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    The problem is that your menu is too tall. If you don't let visitors scroll, they can't see it all.
     
    Xemion, Aug 13, 2008 IP
  10. XhennerzX

    XhennerzX Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    oh ok, so would I just be best off if I deleted the frame and just had plain HTML? because that meens I would have to put something like<?php include("main.php");?> on every file and there is over 600 files !
     
    XhennerzX, Aug 13, 2008 IP
  11. Xemion

    Xemion Peon

    Messages:
    54
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #11
    That is definitely what I would do. You should probably have some sort of header and footer include on your files anyway (for future reference), in case these kind of things come up.

    You can also use a mutli-file search and replace like the one in Dreamweaver or search for some free utility online.
     
    Xemion, Aug 13, 2008 IP
  12. XhennerzX

    XhennerzX Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    yes I have dreamweaver. I do have a header, it is in the frame work, you see where it says mini.php, thats the header :p Anyway thanks Xemion! Good help! ANYONE WHO READ, I RECOMEND THIS PERSON FOR PROGRAMMING!
     
    XhennerzX, Aug 13, 2008 IP