By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,939 Members | 1,541 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,939 IT Pros & Developers. It's quick & easy.

Please Help, New site QUICK

P: n/a
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.

Oct 22 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
vi*******@gmail.com 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?

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Oct 22 '05 #2

P: n/a
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

Oct 22 '05 #3

P: n/a
vi*******@gmail.com 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

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Oct 22 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.