Need help with iFrame code !

2 replies
I have an html frame, 450x450, that shows several rows of images. Each image is actually a link to a wmv movie.
When someone clicks on an image, I want the movie to open in the same frame where the images were, Instead of the images he will now see the movie. To go back to the images I will create a BACK button or something, but that's not the problem.
Can anyone help with the code?

Thanks.
#code #iframe
  • How about wrap the images in a <Div> container and use jQuery to replace the Div with the movie? I think that would most likely be the most involved, but a lot cleaner in the long run. And allow you to easily update it.

    Otherwise you can add

    Code:
    target="_self"
    to the links of the images

    example
    Code:
    <a href="http://www.mymovielink.com/mymovie.wmv" target="_self"><img src="myimage.jpg"></a>
    Signature
    AdvertMarketing »»» www.advertmarketing.com
    Now Accepting New Affiliates - Sign Up Today!
    Hassle-Free Payments | No Shaving
    {{ DiscussionBoard.errors[4659349].message }}
  • Profile picture of the author Unomateo
    I thought the default behavior for internal iframe links was to open in the same frame. What is happening so that it doesn't work

    I also like Robs Idea of using jQuery Ajax, that is what I would do also, but implementing an iFrame would be very simple
    {{ DiscussionBoard.errors[4672085].message }}

Trending Topics