SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Hybrid View

  1. #1
    Xbox why have you forsaken me? moospot's Avatar
    Join Date
    Feb 2001
    Location
    Clearwater, FL
    Posts
    3,615
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how do I get a link within an iframe to display on my main page ?

    I have a problem..I was using DHTML and CSS Layers until my client pointed out that he was very computer illiterate and wants a very BASIC layout that he can understand (read: simple)

    Original Page: http://www.rolanddescombes.com/studio/gallery2.asp

    New Page: http://www.rolanddescombes.com/studio/gallery.asp

    Yeah, its in an iframe, what's even worse is that page is in a frameset! Anyways, that's a whole different story.

    I need the link from the iframe to be displayed in the main page (and not in the iframe) and I can't figure out how to do it?

    Any ideas?

  2. #2
    SitePoint Guru Vincent Puglia's Avatar
    Join Date
    Feb 2000
    Location
    where the World once stood
    Posts
    700
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi

    did you try something like this?

    <a href="#" onMouseover= "top.location='http://members.aol.com/grassblad'">dfdfd</a>

    'top' should refer to the topmost frame/window. If your iframe were composed of frames, you may have to try: top.top.location

    Vinny
    Where the World Once Stood
    the blades of grass
    cut me still

  3. #3
    Xbox why have you forsaken me? moospot's Avatar
    Join Date
    Feb 2001
    Location
    Clearwater, FL
    Posts
    3,615
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I will give it a shot..Thanks

  4. #4
    Xbox why have you forsaken me? moospot's Avatar
    Join Date
    Feb 2001
    Location
    Clearwater, FL
    Posts
    3,615
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That seems to just load up the page again when its clicked. Here is my code in the iframe

    Code:
    <a href="#" onMouseOver="top.location='http://www.rolanddescombes.com/studio/gallery.asp'"><img src="/Studio/Assets/product_images/thumbs/Branch.jpg" border="0"></a>
    Obviously it is loading the URL I put in there, but I want it to display the image...hmmm maybe i need a layer

    Will this work?

    Code:
    <a href="#" onMouseOver="top.location.ImageLyr='/Studio/Assets/product_images/thumbs/Branch.jpg"><img src="/Studio/Assets/product_images/thumbs/Branch.jpg" border="0"></a>

  5. #5
    SitePoint Guru Vincent Puglia's Avatar
    Join Date
    Feb 2000
    Location
    where the World once stood
    Posts
    700
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, maybe I'm confused (been known to happen

    Which of the following are you are trying to do?
    1) replace the main document with the image in the iframe?
    2) replace a div/layer in the main document with the image in the iframe?
    3) pop a window with the image in the iframe?
    4) replace an image tag in the main document with the image in the iframe?
    5) option 1 above, but with the iframe still on the page.

    when I went to the 'new page' you posted, the first option (above) occurred.

    remember: you have to have 'someplace' to put the image.

    Vinny
    Where the World Once Stood
    the blades of grass
    cut me still


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
  •