Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8099591
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:27:28+00:00 2026-06-05T22:27:28+00:00

Ok, I have page one(index), fully functional and working fine as is with all

  • 0

Ok, I have page one(index), fully functional and working fine as is with all content loading into an iframe. However, due to the layout’s design, I wanted my portfolio to have more space for viewing, so I created another page for the portfolio (p.html). Now, since there is no way (that I know of or could figure out) to click a link on p.html and tell it to open for example home.html#top within the iframe named “content.” So, I toyed with some php and came up with the following code:

<?php
  switch($_GET['go']) { 
  case 'home': $src='pages/home.html#top'; break; 
  case 'about': $src='pages/about.html#top'; break; 
  case 'contact': $src='pages/contact.html#top'; break; 
  default: $src='pages/home.html'; break; 
} ?>

Then, on index.php, in the iframe I have <?=$src;?> set as the source.

Now, when you first load http://www.djcproductions.net, everything works fine, the default page home.html loads in the iframe as it should. However, click on any of the links in the nav bar and it will somehow class with my CSS for the content. If you pay attention when you first go to the site, and scroll down to the text, you can see the background image as the contentstyle.css file is set up for home.html to have a transparent background. But, once you click any link, that goes out the window and the background is not transparent EDIT and it also seems to shift the page loaded into the content iframe to the right about fifty pixels. So, since the default line of code for the home.html in the php code worked as it should, I thought maybe it was the #top messing stuff up. So, I removed all the #top tags from the links, and tried it again. Again, on load the page is fine, then I click a link and my whole index.php page loads into the iframe?! My mind is blown. Am I doing this all wrong, or is it just one stupid line I am missing or something?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T22:27:30+00:00Added an answer on June 5, 2026 at 10:27 pm

    On the issue of the About Us page not loading. Here is my summary of the issue.

    If I manually put http://www.djcproductions.net/index.php?go=about in the browser address bar, it all works. This means your PHP switch statement is happy as long as you supply the request paramter.

    When I look at your link, it has a target attribute:

    <a class="about" target="content" href="index.php?go=about">...
    

    This means it is loading the whole page into the iframe, which I’m pretty sure is not what you are trying to do.

    If you change your hyperlink to:

    <a class="about" href="index.php?go=about">...
    

    It will work. Equally, if you change it to:

    <a class="about" target="content" href="pages/about.html">...
    

    It will work.

    Just don’t use the target and the full page link together.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

ASP.NET MVC I have one page Index.aspx where I'm loading two usercontrols into divs.
I am working with sencha to build mobile app. I have created one page
I have one master page which applies to all pages in this website. On
I have many-to-one mappings working fine, but a one-to-many relationship between locations and location_times
I have one web page with an iframe. The iframe is on a different
I have one page website only using HTML, CSS and JavaScript. I want to
I have a page in one of my client's websites that generates an extensive
Can you setup a variable for javascript in one page and have another page
I have Application written with GWT 1.7. I have one page where I upload
Need some help from javascript gurus. I have one page where http://www.google.com/finance/converter is embedded

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.