Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Member unclekyky's Avatar
    Join Date
    Sep 2003
    Posts
    62
    Member #
    2938
    Ok i have a page at http://www.webjunky.us/home.php. Only on some pages the content is in the purple box. I want the content on all the pages to be in the purple div. My code is as follows:
    PHP Code:
    <? 

    function content()
        {
        switch( 
    $_GET['a'] ) {
            case 
    'layouts' 
               include 
    'layouts.php';
                break;
            case 
    'tuts' :
                include 
    'tutorials.php';
                break;
            case 
    'graphics' :
                   include 
    'grpahics.php';
                break;
            case 
    'affiliates' :
                include 
    'affiliates.php';
                break;
            case 
    'contact' :
                    include 
    'contact.php';
                break;
            default:
                   include 
    'index.php';
                break;
            }
        }

    ?>
    <HTML>
    <HEAD>
    <TITLE>blue2</TITLE>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
    </HEAD>
    <BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 style="background:url(C:\Data\Kyle\webjunky\blue\images\background.gif); background-repeat:repeat-y;">


    <TABLE WIDTH=750 BORDER=0 CELLPADDING=0 CELLSPACING=0>
        <TR>
            
        <TD> <img src="images/blue2_01.gif" width=750 height=388 alt=""></TD>
        </TR>
        <TR>
            <TD>
                <IMG SRC="images/blue2_02.gif" WIDTH=750 HEIGHT=12 ALT=""></TD>
        </TR>
    </TABLE>

    <div style="position: absolute; left: 9; top: 130; border: 1pt black solid; width: 145; background-color: #E3E9F4">
    <table border="0" align="center">
    <tr>
    <td>
    <center>
    <? include "links.php"?>
    </center>
    </td>
    </tr>
    </table>
    </div>
    <div style="position: absolute; left: 190; top: 130; border: 1pt black solid; width: 545; background-color: #E3E9F4">

    <table border="0">
    <tr>
    <td>
    <? content(); ?>
    </td>
    </tr>
    </table>
    </div>

    </BODY>
    </HTML>

  2.  

  3. #2
    WDF Staff Wired's Avatar
    Join Date
    Apr 2003
    Posts
    7,656
    Member #
    1234
    Liked
    137 times
    Originally posted by unclekyky
    Code:
    <BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 style="background:url(C:\Data\Kyle\webjunky\blue\images\background.gif); background-repeat:repeat-y;">
    That image link probably needs to be changed unless you're hosting it on your own PC. Even then, you shouldn't need to go back to the C root, just your web root.

    Those errors you're getting might be breaking the code. Put some dummy info in there, or remove the offending code to test the purple div scenario.

    Also, when you click on the Graphics link, it changes the sidebar. Lastly, you might not want to have 3 separate emails in them. Less confusion, and if a spam bot sees your page, it'll only get one of your e-mail addresses, not all 3.
    The Rules
    Was another WDF member's post helpful? Click the like button below the post.

    Admin at houseofhelp.com

  4. #3
    Member unclekyky's Avatar
    Join Date
    Sep 2003
    Posts
    62
    Member #
    2938
    the problem was that the pages i was trying to include had a div that was wider than the div on the page i was puting them onto. Thanks for the help!


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 04:55 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com