iframe assistance

Discussion in 'HTML & Website Design' started by w1zard, Oct 1, 2007.

  1. #1
    Hello, thanks for taking the time to read my issue here. I'm trying to basically have all the links on my page open in the "iframe" I have on my page so users can cycle through without having to worry about jumping all over the website. The links will stay intact. Now I hotcoded this in notepad real quick to see if it would work and it does.

    <html>
    <body>
    <center><b><a href="http://cnn.com" 
    
    target="iframe1">Link</a></center></b>
    <br><br>
    <center><iframe name="iframe1" src="http://google.com" 
    
    height="200" width="500" frameborder=0></frame></center><br><br>
    <center>Test</center>
    
    
    </body>
    </html>
    Code (markup):
    So the issue must be my .swf/flash icons i'm using as the links. I'm using dreamweaver right now and I don't see a 'target' tag anywheres... am I supposed to be doing something else? Is there a special place I add the target tag so I can link to my iframe?

    Dreamweaver code:
    
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="108" height="46">
          <param name="BGCOLOR" value="" />
          <param name="movie" value="Mission.swf" />
          <param name="quality" value="high" />
          <embed src="Mission.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="108" height="46"></embed>
        </object>
    
    Code (markup):

    Thanks in advance.
     
    w1zard, Oct 1, 2007 IP
  2. soulscratch

    soulscratch Well-Known Member

    Messages:
    964
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    155
    #2
    AFAIK, you have to hard-code the "open in new window" in the flash (Actionscript) itself. I've never seen a target attribute open a flash swf in a new window.
     
    soulscratch, Oct 1, 2007 IP
  3. w1zard

    w1zard Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I have no real previous experience with flash based programming, and I don't want the links to open in a new window - I want the links to open in the iframe so everything stays on one page. Any idea? :)
     
    w1zard, Oct 1, 2007 IP
  4. theOtherOne

    theOtherOne Well-Known Member

    Messages:
    112
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    108
    #4
    If the buttons are generated through Dreamweaver I suppose that Dreamweaver has an option for the target frame.
    Option must be located just where you define link text & url for each button... but I am not quite sure ;)
     
    theOtherOne, Oct 1, 2007 IP