Click to See Complete Forum and Search --> : How does this website work? (Frames)


tburton
04-09-2005, 01:22 AM
Hi, I've been trying to figure out for a while how a frame website is set up. This website is very strange, but it's exactly what I want. It uses a permanent frame, that doesn't move at all. It just stays there the entire time, and all the website action goes on to the right. How would this website be set up?

http://filmmuziek.xs4all.nl/

the tree
04-09-2005, 01:38 AM
Did you even think about looking at the source code?
Anyway, this is really just a misuse of frames and would be a lot better achived using the overflow property in css.

tburton
04-09-2005, 12:19 PM
Okay, I checked out the coding and I see exactly how that website works now, and I have my own little test page made up that works perfectly.

A while back, I posted a question wondering how I could get the computer to remember that a link had been pressed, and therefore close it down after it had been used. I was told that cookies would work, so that over many webpages, the computer would remember that a certain button had been pressed.

However, I now notice that using frames, I could keep one webpage running the entire time, while the other webpage runs to the side. Wouldn't this work the exact same way as cookies? It would be much simpler - all I would have to do is somehow get the computer to recognize which page is running to the right, so that when the button is pressed, it will go to the right page. (This is all for my Millionaire game).

For example, in the main page in the right frame, I would have the $100 question. There would be a question, and four answers, and let's say the person knew the answer. They click "A" and they get it right. Now, they go on to the $200 question, also in the right frame. Now, if they want help, they could click a button on the left side of the screen, in the other frame that remains running the entire time the webpage is up. However, how would the left frame know to show the hint for the $200 question, not the $100 question? Would there be a way for it to look over and check which question the user is on? Hopefully this makes sense.

It would be nice if I could figure this problem out. Any help would be appreciated. Thanks!

tburton
04-09-2005, 12:29 PM
I'm guessing that I would have to have the left frame set up something like this, with the right code, of course. (This is the one with the hints in it):

if question = "$100.html" then <a href = "100hint.html">
if question = "$200.html" then <a href = "200hint.html">

So, it would look over to the frame on the right, see that the user is on the website "$200.html" and go to the "200hint.html" website. This sounds like it would work, but I'm completely guessing. I don't really know what the code would be at all.

Hopefully this is possible...

tburton
04-10-2005, 12:07 AM
So, anyone have any suggestions?

ray326
04-10-2005, 08:10 PM
My first cut at that would be to use a Javascript object (array?) in the navigation page to maintain link click state and disable pressed links. I think that's what you're asking about anyway; links that you can only click once.