SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    reputation consultant ThaVincy's Avatar
    Join Date
    Mar 2003
    Location
    Flanders
    Posts
    523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need to create a google-images style frame

    Hi all,

    First, I'd like to establish that I'm not a fan of frames. However, to display external links "within" her site, a client asked me to create a page that shows a predefined header-frame on top and the external site in the main frame.

    She's looking for a system like when using Google Images, it shows a frame on top (including a "remove this frame") link and shows the actual site from which the image originated below. Try this link to see what I mean: http://images.google.be/imgres?imgur...%3D2%26hl%3Dnl

    Is there a certain piece of JS code I can insert in the top frame to display such a "remove this frame" link? I tried these but they didn't work:

    HTML Code:
    <a href="javascript:self.location.href=window.bottom.location.href">Remove frame</a>
    or

    HTML Code:
    <a href="window.bottom.location.href" target=_top>Remove frame</a>
    note: both times assuming 'bottom' is the name of the bottom frame displaying the external link.

    Any help? Thanks in advance.
    ThaVincy | redesigning your image
    Twizted Imagebuilding personal and corporate reputation solutions

  2. #2
    SitePoint Guru whisher's Avatar
    Join Date
    May 2006
    Location
    Kakiland
    Posts
    732
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi.
    You have to take a look http://answers.google.com/answers/threadview?id=484055 I tried it and all the ways works fine

    Bye.


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
  •