Please Help, New site QUICK

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> &nbsp; &nbsp; <span class="links"> |
</span>&nbsp; &nbsp; <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:pointer;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:pointer;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:pointer;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:pointer;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:pointer;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:pointer;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.
 
R

Randy Webb

(e-mail address removed) said the following on 10/21/2005 8:58 PM:
I am making a website and I need help promptly. Here is the code first
off

No, you are doing homework. There is a difference.
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.

Yes, thats the way you have it coded. IMO it's stupid but thats the way
you have it.
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".

Then set the URL in both the link and the onclick to the same URL and
set the target attribute accordingly.
Now, if I click on the link, the site opens in the "TopFrame". How do
I make it open in the win-main frame.

comp.info.www.authoring.html is over there ========>

Please help me because its for a class project.

Do I get your grade and credit for it if I do it?
 
V

vivek9856

First off, how do I set the target, or where?

<TD WIDTH="14%" class="hoverin" onMouseOver="this.className='hoverout'"
onMouseOut="this.className='hoverin'"
onClick="document.location.href='http://www.google.com';"
style="cursor:pointer;cursor:hand"><A HREF="www.google.com"
TARGET="win-main"
class="links">Urban Assult</A></TD>

Now where on this line of code do I put the target and how? And if you
want credit in this assignment, I will give it to u. Just ask
 
R

Randy Webb

(e-mail address removed) said the following on 10/21/2005 9:31 PM:

Please quote what you are replying to.

If you want to post a followup via groups.google.com, don't use the
"Reply" link at the bottom of the article. Click on "show options" at
the top of the article, then click on the "Reply" at the bottom of the
article headers.

First off, how do I set the target, or where?

<a> elements have a target attribute that you are using in your link. In
the onClick, instead of setting document.location.href you set
parent.frames['frameNAMEnotID'].location.href
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top