SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Nov 2005
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Top Frame banner

    Hello,
    I was wondering how you go about to have a top banner frame stay on when someone clicks on a link.
    Like let say you go to google and when you click on a link to go to like fastfords.com a google banner/frame is on top and the bottom half is the website of the link you clicked on. I just want it so every link clicked on has this banner on top( with an option to close the top frame or to go back to my web page.

    Something like on http://slackernetwork.com when click on link.

    I have some page index.html on that page have link <a href=www.somelink.com </a> and that link is on page without frames...

    What I need to insert on <a href tag to get this.

  2. #2
    Caveat surfer Buddy Bradley's Avatar
    Join Date
    May 2003
    Location
    Cambridge, UK
    Posts
    2,366
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You use a frameset and the target attribute to direct links in the top frame to open in the bottom frame.

  3. #3
    SitePoint Enthusiast
    Join Date
    Nov 2005
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Please can you be more specific...

    I have this:

    1. Index.html file with link <a href=www.somesite.com></a> (this page don't contain frames)

    2. frameset.html with:

    Code:
    <!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>Untitled Document</title>
    </head>
    
    <frameset rows="80,*,80" frameborder="no" border="0" framespacing="0">
      <frame src="topframe.html" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
      <frame src="mainframe.html" name="mainFrame" id="mainFrame" title="mainFrame" />
      <frame src="bottomframe.html" name="bottomFrame" scrolling="No" noresize="noresize" id="bottomFrame" title="bottomFrame" />
    </frameset>
    <noframes><body>
    </body>
    </noframes></html>

    2. topframe.html with:

    Code:
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>top</title>
    </head>
    top frame
    <body>
    asdasdasdasdsa
    </body>
    </html>

    3. mainframe.html with:

    Code:
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>midle frame</title>
    </head>
    
    <body>
    midle
    </body>
    </html>
    4. bottomframe.html with:

    Code:
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>bottom frame</title>
    </head>
    
    <body>
    
    </body>
    </html>

    And what I must insert on link on Index.html? I suppose <a href=www.somesite.com target=".... but dont know what? name of frame or name of frameset and then name of name of midle frame?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •