0

my question is:

it is a video game website.

it has a main page, that has a frameset. one frame is the menu bar. the other is the content.

i have got a menu at the top of the page.

the menu has got a few links (options/buttons) e.g. pc, wii, ps3, xbox.

i want the user to press the button on the menu bar (e.g. pc) and in the contents the appropiate page will appear (the page that i have e.g. pc page).

how do i do that? how do i direct a button to open another page (in the content), while using frames in teh same context.

please html solution only

4
Contributors
6
Replies
7
Views
6 Years
Discussion Span
Last Post by Arkinder
0
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Web with Frames</title>
</head>

<frameset rows="46,*" cols="*" framespacing="0" frameborder="no" border="0">
  <frame src="top.html" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" />
  <frame src="content.html" name="contentFrame" id="contentFrame" />
</frameset>
<noframes><body>
</body>
</noframes></html>

Download this FILES (Example Frames)
http://almacen.tmbteam.com/file.php?file=e83bd51fcc2de4d2fade674e269e4834

1

Another FILE is not correct... The Correct file is:
http://almacen.tmbteam.com/file.php?file=90e6a5b538d2d768bd5fcc587716f4bf

---
For open another page (in the content), while using frames in teh same context.

You should write on page:
Example: Wii Page

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Wii Page</title><style type="text/css">
<!--
.style2 {font-size: 100px}
-->
</style></head>

<body>
<div align="center">
  <p><strong><span class="style2">WII Site</span></strong></p>
  <p><a href="http://www.google.com" target="_blank">LINK TO ANOTHER PAGE OUT</a></p>
</div>
</body>
</html>
Votes + Comments
thank you, it works now
0

i got it. it works now

i use <a href="filename.html" target="content"></a>

it will open me tha page at contents.

Thank you

0

The target attribute is becoming/is deprecated, and frames are just a bad idea. This was written two years ago, but remains accurate today.

The best way to accomplish this is through a scripting language such as JavaScript, or as VulcanDesign said, jQuery - a JavaScript library that takes away the long coding for animated web effects.

Regards, Arkinder

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.