Put hyperlink on a Flash Banner

Discussion in 'HTML & Website Design' started by Funnycoolstuff, Sep 29, 2006.

  1. #1
    It's easy to hyperlink an image/picture.

    But how do we do it for a flash banner? Of course the hyperlink can be done if we have the fla file, but if the flash banner is aleady compiled, then is there a way to put hyperlink on the swf file?

    :eek:
     
    Funnycoolstuff, Sep 29, 2006 IP
  2. StrangeLife

    StrangeLife Well-Known Member

    Messages:
    269
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    140
    #2
    Hmm, tricky question, I dont know the answer but an idea you could try is to:

    1.insert the swf file into your html file.
    2.Create a div in your style sheet the same size as your banner and have it to float over the banner.
    3.I'm not sure if you can do this, but see if you can make your floating div a hyperlink.

    Thats all i can think of. :s
     
    StrangeLife, Sep 29, 2006 IP
  3. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #3
    Not tested with flash object, but is valid.
    
    html, body {
        margin: 0;
        padding: 0;
        }
        
    div {
        width: 350px;
        border: 1px solid gray;
        text-align: center;
        }
        
    object {
        width: 300px;
        margin: 40px auto;
        border: 1px solid black;
        }
    ===========
    <div>
      <a href="#">
        <object type="image/jpeg" data="../bullseye.jpg">
          <p>alternative content</p>
        </object>
      </a>
    </div>
    Code (markup):
    Margins and borders added for clarity.

    cheers,

    gary
     
    kk5st, Sep 30, 2006 IP
  4. phree_radical

    phree_radical Peon

    Messages:
    563
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #4
    FLASHPLAYER
    <div style="clear:both; display:none; margin-top:-HEIGHTpx;">
    <a href="whatever"><img width="WIDTH" height="HEIGHT"></a>
    </div>

    Would that work... p;
     
    phree_radical, Sep 30, 2006 IP
  5. thevenerablez

    thevenerablez Peon

    Messages:
    44
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    In Flash, go to Window>>Behaviors. Then, click on the plus sign on the top left corner and select Go To Web Page and type in the URL.
     
    thevenerablez, Sep 30, 2006 IP
  6. Kirtan

    Kirtan Peon

    Messages:
    104
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    He said the banner is already compiled. So No Flash here to use. I think the first reply will work for sure.
     
    Kirtan, Oct 1, 2006 IP