<embed> compability

Discussion in 'HTML & Website Design' started by kapadokis, Oct 28, 2009.

  1. #1
    I made a html file with an effect and I want to add this to my site

    I used the <embed> tad like this

    <embed width="300px" height="250px" src="myfile.html" />

    In Google Chrome works fine but in Firefox and IE appears me a message that need a plug-in to play it.

    Have u got any ideas?????
     
    kapadokis, Oct 28, 2009 IP
  2. CodedCaffeine

    CodedCaffeine Peon

    Messages:
    130
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The <embed> tag is used to add embedded content (videos, flash, etc) into an html page. You're probably looking for the <iframe> tag, which allows you to embed html files into a webpage.

    Example:

    <iframe src="myfile.html" style="width:300px;height:250px;" />
     
    CodedCaffeine, Oct 28, 2009 IP
  3. kapadokis

    kapadokis Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    <iframe> is different to <frame>???
     
    kapadokis, Oct 28, 2009 IP
  4. CodedCaffeine

    CodedCaffeine Peon

    Messages:
    130
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yes. <iframe> stands for inline frame, while <frame> is a frameset.

    So when you use the <frame> tag, it defines places where you can display multiple views within one html file.

    <iframe> is meant to embed an html page (or similar) into a select portion of a page, and it's essentially an embeded html file that displays within this "box" that it will make.
     
    CodedCaffeine, Oct 28, 2009 IP
  5. kapadokis

    kapadokis Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yes but why when I use iframe the rest of the page does not load??

    I have an smf forum and the categories board which is above the iframe doesn't load. Why is that?
     
    kapadokis, Oct 28, 2009 IP
  6. CodedCaffeine

    CodedCaffeine Peon

    Messages:
    130
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #6
    You might have an error in your syntax with your source code. It could also be from the page that's being loaded within the iframe that has a syntax error as well.
     
    CodedCaffeine, Oct 28, 2009 IP