Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Viewing Multiple Web Sites in a single Web Page

Status
Not open for further replies.

lucid1133

Programmer
Jan 3, 2004
2
0
0
CA
Hi Everyone,
I'd like to create a web page with several websites in it
so that they can all be viewed as once by scrolling down.
I'm looking to create something like I'm wondering if there's a way to do this using frames
i.e. have a frameset with each of the frames having the
appropriate web site as the src. But I'd like the frames
to take up as much space as needed to display the
entire page of the website. Then I could just use the
scrolling of my browser window to scroll down to the
appropriate frame.
Any ideas if/how this could be done ?
I've tried the following but, obviously, it doesn't work
since the scroll bars are individual to each frame.
I'd like for the frames themselves to have no scrollbars
but to extend downwards in the page and then to have
just a single scroll bar to scroll down the page to
access all the sites (as in
<html>
<frameset rows=&quot;33%,33%,33%&quot;>

<frame src=&quot; />
<frame src=&quot; <frame src=&quot; />

</frameset>
</html>

Any other suggestions for how this could be accomplished ?
Javascript ? JSP ?
I need to do this for my boss, and he insists on
viewing multiple web sites in a single scrollable
browser window...
Thanks :)
 
Try using the iframe tag...i'm not sure if this is cross-browser but i know if you put an iframe then a new line it should work...sort of... The script at quickbrowse.com looks like a complicated script so the iframe thing won't look anything like quickbrowse.com...if your boss wants a page thats exactly like quickbrowse then its gonna take alot of work an its gonna take more than just an iframe
heres a rough script that could do it.
Code:
<iframe src=&quot;cnn.com&quot; width=&quot;100%&quot; height=&quot;100%&quot; style=&quot;border:0px&quot;><br><iframe src=&quot;yahoo.com&quot; width=&quot;100%&quot; height=&quot;100%&quot; style=&quot;border:0px&quot;><br>...
I just threw this together I'm not sure if it'll work but its deffiently gonna need some tweaking...just post back here if you need more help or if this is not what your looking for...
Jammer1221
 
Hi Lucid,

the way you want to set this up can work in most cases. Remember however, that some sites have JavaScript in it, which prevents them from being framed. You might think that your code is not working, but actually you cannot force a site into a frame on your own page, if the programmer on the other site is smart enough.

btw, the code for preventing a site from being framed, is:

<script language=&quot;JavaScript&quot;>
if (top.location != self.location)
{
top.location = self.location;
}

Just put this right before the </head> tag in your HTML.
It works for frames as well as iframes.

On the other hand, the number of sites where this technique is being used, is relatively small.

Greetings, Dutch
 
yup, I thought of using SSI's but I'd have to strip
out multiple HTML tags, CSS, JavaScript etc and
then the page wouldn't maintain it's original
functionality...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top