Please Help, New site QUICK

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • vivek9856@gmail.com

    Please Help, New site QUICK

    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">H ome</A> &nbsp; &nbsp; <span class="links"> |
    </span>&nbsp; &nbsp; <A
    HREF="http://inquirer.philly .com/packages/somalia/sitemap.asp"
    TARGET="win-main" class="links">B lack 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="#C C9900" ALIGN="CENTER" CELLPADDING="4"
    WIDTH="85%" SUMMARY="hoveri n">
    <TR ALIGN="CENTER">

    <TD WIDTH="14%" class="hoverin" onMouseOver="th is.className='h overout'"
    onMouseOut="thi s.className='ho verin'"
    onClick="docume nt.location.hre f='http://www.google.com' ;"
    style="cursor:p ointer;cursor:h and"><A HREF="UA.htm" TARGET="win-main"
    class="links">U rban Assult</A></TD>

    <TD WIDTH="14%" class="hoverin" onMouseOver="th is.className='h overout'"
    onMouseOut="thi s.className='ho verin'"
    onClick="docume nt.location.hre f='http://www.google.com' ;"
    style="cursor:p ointer;cursor:h and"><A HREF="BridgeSe. htm"
    TARGET="win-main" class="links">B ridge SE</A></TD>

    <TD WIDTH="14%" class="hoverin" onMouseOver="th is.className='h overout'"
    onMouseOut="thi s.className='ho verin'"
    onClick="docume nt.location.hre f='http://www.google.com' ;"
    style="cursor:p ointer;cursor:h and"><A HREF="Events.ht m"
    TARGET="win-main" class="links">E vents</A></TD>

    <TD WIDTH="14%" class="hoverin" onMouseOver="th is.className='h overout'"
    onMouseOut="thi s.className='ho verin'"
    onClick="docume nt.location.hre f='http://www.google.com' ;"
    style="cursor:p ointer;cursor:h and"><A HREF="Stats.htm "
    TARGET="win-main" class="links">S tastics</A></TD>

    <TD WIDTH="14%" class="hoverin" onMouseOver="th is.className='h overout'"
    onMouseOut="thi s.className='ho verin'"
    onClick="docume nt.location.hre f='http://www.google.com' ;"
    style="cursor:p ointer;cursor:h and"><A HREF="Feedback. htm"
    TARGET="win-main" class="links">Q uestions</A></TD>

    <TD WIDTH="14%" class="hoverin" onMouseOver="th is.className='h overout'"
    onMouseOut="thi s.className='ho verin'"
    onClick="docume nt.location.hre f='http://www.google.com' ;"
    style="cursor:p ointer;cursor:h and"><A HREF="Links.htm "
    TARGET="win-main" class="links">L inks</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="nores ize" 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.dt d">
    <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.

  • Randy Webb

    #2
    Re: Please Help, New site QUICK

    vivek9856@gmail .com said the following on 10/21/2005 8:58 PM:
    [color=blue]
    > I am making a website and I need help promptly. Here is the code first
    > off
    >[/color]

    No, you are doing homework. There is a difference.
    [color=blue]
    > 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.[/color]

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

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

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

    [color=blue]
    > Please help me because its for a class project.[/color]

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

    --
    Randy
    comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly

    Comment

    • vivek9856@gmail.com

      #3
      Re: Please Help, New site QUICK

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

      <TD WIDTH="14%" class="hoverin" onMouseOver="th is.className='h overout'"
      onMouseOut="thi s.className='ho verin'"
      onClick="docume nt.location.hre f='http://www.google.com' ;"
      style="cursor:p ointer;cursor:h and"><A HREF="www.googl e.com"
      TARGET="win-main"
      class="links">U rban 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

      Comment

      • Randy Webb

        #4
        Re: Please Help, New site QUICK

        vivek9856@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.c om, 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.

        [color=blue]
        > First off, how do I set the target, or where?[/color]

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

        --
        Randy
        comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly

        Comment

        Working...