V
vivek9856
I am making a website and I need help promptly. Here is the code first
off
-----File Header.htm-----
<HTML>
<HEAD>
<TITLE>Black Hawk Down</TITLE>
</HEAD>
<LINK REL=stylesheet TYPE="text/css" HREF="style.css">
<BODY>
<H4 ALIGN=CENTER><A HREF="index.htm" TARGET="win-main"
class="links">Home</A> <span class="links"> |
</span> <A
HREF="http://inquirer.philly.com/packages/somalia/sitemap.asp"
TARGET="win-main" class="links">Black Hawk Down Info</A></H4>
<CENTER><IMG SRC="blackhawk.jpg" width="310" height="129"><P
class="largeTxt" align="center">Black Hawk Down</P>
</CENTER>
<BR>
<TABLE BORDER="3" BORDERCOLOR="#CC9900" ALIGN="CENTER" CELLPADDING="4"
WIDTH="85%" SUMMARY="hoverin">
<TR ALIGN="CENTER">
<TD WIDTH="14%" class="hoverin" onMouseOver="this.className='hoverout'"
onMouseOut="this.className='hoverin'"
onClick="document.location.href='http://www.google.com';"
style="cursor
ointer;cursor:hand"><A HREF="UA.htm" TARGET="win-main"
class="links">Urban Assult</A></TD>
<TD WIDTH="14%" class="hoverin" onMouseOver="this.className='hoverout'"
onMouseOut="this.className='hoverin'"
onClick="document.location.href='http://www.google.com';"
style="cursor
ointer;cursor:hand"><A HREF="BridgeSe.htm"
TARGET="win-main" class="links">Bridge SE</A></TD>
<TD WIDTH="14%" class="hoverin" onMouseOver="this.className='hoverout'"
onMouseOut="this.className='hoverin'"
onClick="document.location.href='http://www.google.com';"
style="cursor
ointer;cursor:hand"><A HREF="Events.htm"
TARGET="win-main" class="links">Events</A></TD>
<TD WIDTH="14%" class="hoverin" onMouseOver="this.className='hoverout'"
onMouseOut="this.className='hoverin'"
onClick="document.location.href='http://www.google.com';"
style="cursor
ointer;cursor:hand"><A HREF="Stats.htm"
TARGET="win-main" class="links">Stastics</A></TD>
<TD WIDTH="14%" class="hoverin" onMouseOver="this.className='hoverout'"
onMouseOut="this.className='hoverin'"
onClick="document.location.href='http://www.google.com';"
style="cursor
ointer;cursor:hand"><A HREF="Feedback.htm"
TARGET="win-main" class="links">Questions</A></TD>
<TD WIDTH="14%" class="hoverin" onMouseOver="this.className='hoverout'"
onMouseOut="this.className='hoverin'"
onClick="document.location.href='http://www.google.com';"
style="cursor
ointer;cursor:hand"><A HREF="Links.htm"
TARGET="win-main" class="links">Links</A></TD>
</TR>
</TABLE>
</BODY>
</HTML>
-----File Home.htm-----
<!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=iso-8859-1"
/>
<title>Black Hawk Down</title>
</head>
<frameset rows="290,*" frameborder="no" border="0" framespacing="0">
<frame src="header.htm" name="topFrame" scrolling="No"
noresize="noresize" id="topFrame" />
<frame src="index.htm" name="win-main" id="mainFrame" />
</frameset>
<noframes><body>
</body>
</noframes></html>
-----File Index.htm-----
<!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=iso-8859-1"
/>
<title>Black Hawk Down</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<P align="center">TEST TEXT and RANDOM TEXT</P>
</body>
</html>
My problem is that in the Header file, the menu bar has a onclick
command that when a cursor moves over the table cell, the table will be
highlited and when clicked on, it will open google.com. There is text
inside the cells. (The links are wrong, dont worry about them) What I
want to happen is when I click on the table cell or link in the table
cell, it will open the window in the frame "win-main". Now, if I click
on the link, the site opens in the "TopFrame". How do I make it open in
the win-main frame. Please help me because its for a class project.
Thanks.
off
-----File Header.htm-----
<HTML>
<HEAD>
<TITLE>Black Hawk Down</TITLE>
</HEAD>
<LINK REL=stylesheet TYPE="text/css" HREF="style.css">
<BODY>
<H4 ALIGN=CENTER><A HREF="index.htm" TARGET="win-main"
class="links">Home</A> <span class="links"> |
</span> <A
HREF="http://inquirer.philly.com/packages/somalia/sitemap.asp"
TARGET="win-main" class="links">Black Hawk Down Info</A></H4>
<CENTER><IMG SRC="blackhawk.jpg" width="310" height="129"><P
class="largeTxt" align="center">Black Hawk Down</P>
</CENTER>
<BR>
<TABLE BORDER="3" BORDERCOLOR="#CC9900" ALIGN="CENTER" CELLPADDING="4"
WIDTH="85%" SUMMARY="hoverin">
<TR ALIGN="CENTER">
<TD WIDTH="14%" class="hoverin" onMouseOver="this.className='hoverout'"
onMouseOut="this.className='hoverin'"
onClick="document.location.href='http://www.google.com';"
style="cursor
class="links">Urban Assult</A></TD>
<TD WIDTH="14%" class="hoverin" onMouseOver="this.className='hoverout'"
onMouseOut="this.className='hoverin'"
onClick="document.location.href='http://www.google.com';"
style="cursor
TARGET="win-main" class="links">Bridge SE</A></TD>
<TD WIDTH="14%" class="hoverin" onMouseOver="this.className='hoverout'"
onMouseOut="this.className='hoverin'"
onClick="document.location.href='http://www.google.com';"
style="cursor
TARGET="win-main" class="links">Events</A></TD>
<TD WIDTH="14%" class="hoverin" onMouseOver="this.className='hoverout'"
onMouseOut="this.className='hoverin'"
onClick="document.location.href='http://www.google.com';"
style="cursor
TARGET="win-main" class="links">Stastics</A></TD>
<TD WIDTH="14%" class="hoverin" onMouseOver="this.className='hoverout'"
onMouseOut="this.className='hoverin'"
onClick="document.location.href='http://www.google.com';"
style="cursor
TARGET="win-main" class="links">Questions</A></TD>
<TD WIDTH="14%" class="hoverin" onMouseOver="this.className='hoverout'"
onMouseOut="this.className='hoverin'"
onClick="document.location.href='http://www.google.com';"
style="cursor
TARGET="win-main" class="links">Links</A></TD>
</TR>
</TABLE>
</BODY>
</HTML>
-----File Home.htm-----
<!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=iso-8859-1"
/>
<title>Black Hawk Down</title>
</head>
<frameset rows="290,*" frameborder="no" border="0" framespacing="0">
<frame src="header.htm" name="topFrame" scrolling="No"
noresize="noresize" id="topFrame" />
<frame src="index.htm" name="win-main" id="mainFrame" />
</frameset>
<noframes><body>
</body>
</noframes></html>
-----File Index.htm-----
<!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=iso-8859-1"
/>
<title>Black Hawk Down</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<P align="center">TEST TEXT and RANDOM TEXT</P>
</body>
</html>
My problem is that in the Header file, the menu bar has a onclick
command that when a cursor moves over the table cell, the table will be
highlited and when clicked on, it will open google.com. There is text
inside the cells. (The links are wrong, dont worry about them) What I
want to happen is when I click on the table cell or link in the table
cell, it will open the window in the frame "win-main". Now, if I click
on the link, the site opens in the "TopFrame". How do I make it open in
the win-main frame. Please help me because its for a class project.
Thanks.