Forum Moderators: open
So, i have a http://www.theirsite.asp?referrer=etc link which i include in my main page which gives the impression that the whole site is on my main page.
However, when the user clicks the 'go' button, it then goes to the other sites url.
Without using frames, is there a way that i can make the results appear on my site and my url, so that the user thinks it is all on mysite.com and not theirsite.com?
[edited by: tedster at 2:46 pm (utc) on Aug. 14, 2003]
The way I do it, is via frames set to only show 1 pixel width, thus by using a series of 1 pixel pages, I have been able to build very clean "swap sites"... Working out the initial code parameters was a **** to make it fluid, but I'm now running 3 sites this way - 2 are mine, and the 3rd belongs to a client, that links to one of mine.
Here is the basic code, the way I use it:
<HTML>
<HEAD>
<TITLE> MySite.com</TITLE><FRAMESET ROWS="100,*" BORDER=0>
<FRAME SRC="header.htm" SCROLLING=NO>
<FRAMESET COLS="125,1, *" BORDER=0>
<FRAME SRC="navbar-home.htm" NAME="navbar">
<FRAME SRC="spacer.htm">
<FRAMESET ROWS="1,*" BORDER=0>
<FRAME SRC="spacer.htm" SCROLLING=NO>
<FRAME SRC="www.OtherSite.com/blahblahblah.htm" NAME="main">
</FRAMESET>
</FRAMESET>
</FRAMESET>
<BODY BGCOLOR="F7F7F7" TEXT="#000080" LINK="#000080" VLINK="#000080" ALINK="#000080" TOPMARGIN="0" MARGINHEIGHT="0" LEFTMARGIN="0" MARGINWIDTH="0">
</BODY>
</HTML>
What this INDEX page is doing, is calling up 5 child pages, with 1 of them being sourced remotely.
The 2 instances of "spacer.htm", are the 1 pixel pages that seperate with a pinline.
It is frames, pure and simple... but frames that work!
It's easier to show, than it is to explain, so here is the actual page, where the code came from. You can see for yourself what I have done. The way this is setup, the [FORUMS] page is technically the remote url.
<edit>
I have designed the page this way, so as to heavily utilize Javascript and CSS, to create the navigational bar, without plain text or the use of any images, other than those that are placed in the header frame. I own the site, and began working on it last week, so if you like any of what you see, you can feel free to "borrow" code from it.
Another example is at <edit> -- This is the clients' site that links to one of mine. Once again, the [FORUMS] happen to be the remote URL, and in fact, this was first site I built this way (still very much in the build process)
* I know were not supposed to post sites, but he asked, and as I stated, it's easier to understand once actually seen.
[edited by: tedster at 2:29 pm (utc) on Aug. 14, 2003]
The CSS "effects" are the key to these sites, and are burried in the series of NAVBAR files.
The way the sites are being developed, requires a number a index-AAA.htm, index-BBB.htm, index-CCC.htm, etc pages to function properly. Each index page, then calls it's own reference NAVBAR page, in the same format as above. Each index/navbar page is a clone of the others, yet with a different URL and reference point for the selected target.
This actually creates a very confusing backside loop that requires close attention to detail, but it seems to function quite well for the end user.
As with an Excel file, you can bury a ton of information in what is essentially an invisible frame...
One could easily go the other direction as well, and setup a frame site with nothing but the 1 pixel "borders", and thus make it appear not to be frames at all, and still keep the proper header information and parent URL. The negative uses of this approach far outweigh the positive ones though!