Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: embed tags help  (Read 11334 times)

0 Members and 1 Guest are viewing this topic.

soybean



    Genius
  • The first soybean ever to learn the computer.
  • Thanked: 469
  • Computer: Specs
  • Experience: Experienced
  • OS: Windows 10
Re: embed tags help
« Reply #15 on: July 23, 2010, 06:22:33 AM »
I used this

<embed src="rain.wav" hidden=true autostart=true loop=true>
<noembed>
<bgsound src="rain.wav" loop=infinite>
</noembed>

So, that code tells the browser to play rain.wav if it recognizes the <embed>tag.  But, if it does not recognize that tag, then play rain.wav. Right?  In other words, doggone it, browser, you're gonna play rain.wav whether you like or not. 

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: embed tags help
« Reply #16 on: July 23, 2010, 06:27:34 AM »
In other words, doggone it, browser, you're gonna play rain.wav whether you like or not. 

At which point, the user is likely the press the back button wether the page author likes it or not.  ;D
I was trying to dereference Null Pointers before it was cool.

nymph4

    Topic Starter


    Specialist

    Re: embed tags help
    « Reply #17 on: July 23, 2010, 01:01:58 PM »
    Does this code

    <embed src="people.wav" hidden=true autostart=true loop=true>

    need an  </embed>  tag at the end???


    And if the broswer will use this second code   with I need to put a  hidden tag for it??

    <noembed>
    <bgsound src="people.wav" loop=infinite>
    </noembed>

    kpac

    • Web moderator
    • Moderator


    • Hacker

    • kpac®
    • Thanked: 184
      • Yes
      • Yes
      • Yes
    • Certifications: List
    • Computer: Specs
    • Experience: Expert
    • OS: Windows 7
    Re: embed tags help
    « Reply #18 on: July 23, 2010, 01:15:53 PM »
    Quote
    need an  </embed>  tag at the end???
    No, end with />.

    Quote
    And if the broswer will use this second code   with I need to put a  hidden tag for it??
    Don't understand the question (even though it's not a question). If the browser doesn't support the <embed> tag then the code inside the <noembed> tag will be used.

    2x3i5x



      Expert
    • Thanked: 134
    • Computer: Specs
    • Experience: Familiar
    • OS: Windows 10
    Re: embed tags help
    « Reply #19 on: July 23, 2010, 02:59:45 PM »
    If the user's browser does not support the <embed> tag, the code inside it will be executed. Although I've never seen or heard of that tag before.

    Read here: http://www.xs4all.nl/~dimaroan/htl/TAG_NOEMBED.html

    nymph4

      Topic Starter


      Specialist

      Re: embed tags help
      « Reply #20 on: July 23, 2010, 03:13:53 PM »
      I ment because I am useing two code at one time sould it be like this

      <embed src="rain.wav" hidden=true autostart=true loop=true>
      <noembed>
      <bgsound src="rain.wav" hidden=true loop=infinite>
      </noembed>

      Because if the browser can play with the first code  that tells it to hid the player.

      But if it can't play with the first code it will use the second code  so do I have to ad a  Hidden tag to the second code to hid the player for the second code?????????????


      kpac

      • Web moderator
      • Moderator


      • Hacker

      • kpac®
      • Thanked: 184
        • Yes
        • Yes
        • Yes
      • Certifications: List
      • Computer: Specs
      • Experience: Expert
      • OS: Windows 7
      Re: embed tags help
      « Reply #21 on: July 23, 2010, 03:29:17 PM »
      You have to learn how to do research for yourself.

      Quote
      I ment because I am useing two code at one time sould it be like this
      Use Google for this.

      Quote
      Because if the browser can play with the first code  that tells it to hid the player.
      Forget about hiding it for a minute.

      Quote
      But if it can't play with the first code it will use the second code  so do I have to ad a  Hidden tag to the second code to hid the player for the second code?
      No. If the browser doesn't support the <embed> tag it doesn't support the <embed> tag!

      2x3i5x



        Expert
      • Thanked: 134
      • Computer: Specs
      • Experience: Familiar
      • OS: Windows 10
      Re: embed tags help
      « Reply #22 on: July 23, 2010, 04:22:40 PM »
      or you could go to allexperts and ask your questions there for free and an expert would be able to help you out.  :)

      nymph4

        Topic Starter


        Specialist

        Re: embed tags help
        « Reply #23 on: July 28, 2010, 02:30:11 PM »
        This code works great

        <embed src="rain.wav" hidden=true autostart=true loop=true>
        <noembed>
        <bgsound src="rain.wav" loop=infinite>
        </noembed>

        I just want to know why the first code says True and the secound says  Infinite?

        They both can't say True or Infinite I rtyed.
        I just want to know why??

        nymph4

          Topic Starter


          Specialist

          Re: embed tags help
          « Reply #24 on: August 22, 2010, 10:22:12 AM »
          I use the code

          <embed src="people.wav" hidden=true autostart=true loop=true>
          <noembed>
          <bgsound src="people.wav" loop=infinite>
          </noembed>

          And it plays onw time and that is all. So I try Loop=2  and still no good.

          What do I do to get my sound file play say 2. times or  Loop???

          I even try repeat.

          I would like the code to work for Firefox and Internet Explorer

          nymph4

            Topic Starter


            Specialist

            Re: embed tags help
            « Reply #25 on: August 22, 2010, 12:30:55 PM »
            Sorry I did some looking on the net and found

            <embed src="people.wav">
            <noembed>
            <bgsound src="people.wav">
            </noembed>

            It works but it wont repeat the sound.

            I don't want to mass up the code but can I ad repeat or Loop=2  and how???

            I try but I think I may be puting it in the rong place