Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Mar 2011
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Iframe Link Issue

    Code:
    <a href="http://upload.wikimedia.org/wikipedia/commons/6/6e/Golf_Swing_Animation.gif"  target="animation">Golfer</a>
    
    <br><br>
    
    <iframe name="animation" height="600px" width="100%" seamless></iframe>
    My question is, how can I make this link also display text underneath the image? For example "Above is a picture of a golf swing"

  2. #2
    Master Coder sunfighter's Avatar
    Join Date
    Jan 2011
    Location
    Washington
    Posts
    6,424
    Thanks
    30
    Thanked 878 Times in 876 Posts
    FYI your code does nothing to the iframe. It goes to http://upload.wikimedia.org/wikipedia... because your using an anchor.
    Use <iframe src="http://upload.wikimedia.org/wikipedia/commons/6/6e/Golf_Swing_Animation.gif"
    id="addtext" name="animation" height="600px" width="100%" seamless></iframe>

    An easy answer is to put the text under the iframe.
    Code:
    <div style="text-align:center;">
    <iframe src="http://upload.wikimedia.org/wikipedia/commons/6/6e/Golf_Swing_Animation.gif"
    id="addtext" name="animation" height="560px" width="560px" scrolling="no" frameborder="0" seamless>
    </iframe>
    <br />Above is a picture of a golf swing
    </div>
    Last edited by sunfighter; 09-14-2013 at 05:42 PM.
    Evolution - The non-random survival of random variants.
    Physics is actually atoms trying to understand themselves.


 

Posting Permissions

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