PDA

View Full Version : Open offsite webpage below header



Defender90
02-21-2008, 02:57 PM
1) Script Title: Sorry for the easy question. How do you do open an offsite web page below your page header.

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/newwindow2.htm
I want it to work like this site.

http://www.sterlingkitchens.com/productsdetailcab.html
3) Describe problem:
I can figure out how this is done. Any help? Sorry for the basic question Im a beginner.

jscheuer1
02-21-2008, 04:58 PM
Do you want it to be on your page, like become a part of your page down there where the links are? Or do you actually want it in a new window, just one that doesn't block the view of your header?

Defender90
02-21-2008, 05:27 PM
In the page below the header. Just how is is here.

click on Formica and it opens the site within the body and the header/nav stays.


http://www.sterlingkitchens.com/productsdetailcount.html


thanks

jscheuer1
02-21-2008, 05:48 PM
You have a frameset, so you don't need and should not use any script for that. Just get rid of:


target="blank"

from the links, ex:


<a href="http://www.aristokraft.com" target="blank">Aristokraft
Cabinetry</a>

Dump the highlighted part. If you do want a new window, use the target="_blank" with the links that you want to open in a new window.

It's very simple with framesets.

However, some sites have code on their pages that will take over the whole window unless you launch them in their own window. There is nothing you can do about that.

Defender90
02-21-2008, 06:07 PM
Sorry for the confusion. That isn't my site, I want to build one like it where you can open the manufactures website under your header. Just how it works with the Formica link. I have my header page built but am not sure what the code is to open each Mfg'rs website within my site with a working header/nav bar.

Thanks

jscheuer1
02-21-2008, 06:36 PM
You still don't need the script you are referring to. There are other scripts that could be used, as well as ways to do it without javascript. There are many options, a frameset like the one on the site you used as an example is just one possibility. All of the various methods that one could use have drawbacks from the point of view that they either limit what you can do on the page, or come with requirements as far as what the user's browser must be capable of and set up to do. All except for server side includes, which are somewhat complicated in certain ways because they rely upon the host.

In any case, this is not a question (at this point) for the Dynamic Drive Scripts Help section.

I think you would be best off in the Looking for a Script or Service section, as you don't even seem to know what you want to use, or - if you would like to use a frameset, the HTML section would be a good choice.

Defender90
02-21-2008, 06:41 PM
Thanks for the help.


I figured it out and have it working.
I will check out the other section....

Thanks again for your time.