Results 1 to 4 of 4

Thread: How to use onload audio to index pages

  1. #1
    Join Date
    Apr 2008
    Posts
    240

    How to use onload audio to index pages

    Is it possible to enable the short wav sound into my index page as it loads using body onload. When i try to install the short wav file it get start in QuickTime playing it starts playing the sound instead of showing my page with the sound in the background...

  2. #2
    Join Date
    Dec 2008
    Posts
    161

    Re: How to use onload audio to index pages

    People DO NOT like AUDIO blasting out of their speakers, Just because you want it...It's a simple and fast way to put some sound into your site, however, and it's one of the most commonly used ways of inserting audio.

    <a href="file">

    Use the anchor tag, as shown above, to link to the sound file. If the reader wants to hear the sound they simply click on the link.

  3. #3
    Join Date
    Feb 2009
    Posts
    62

    Re: How to use onload audio to index pages

    I want to add a short wav sound into my index page as it loads using body onload.However this is done, the code must reside in an external file, otherwise I.E. will show a confirmation alert. The onLoad event is related to the document object, and to define it you use an event handler in the <body> tag. Another consideration is that if the plugin hasn't loaded by a previous document, it is likely to freeze the browser while it drags itself into memory; The "controls=true" portion of the code tells the browser to display a sound console, so that readers may stop, pause, or rewind the sound clip. so to avoid a blank screen, the embed must be generated at the end of the document.

  4. #4
    Join Date
    Feb 2006
    Posts
    172

    Re: How to use onload audio to index pages

    You can also specify an onUnload event for the <body> tag. I want to add a short wav sound into my index page as it loads using body onload.However this is done, the code must reside in an external file, otherwise I.E. will show a confirmation alert. This event will be triggered whenever the browser unloads the current document—this occurs when another page is loaded or when the browser window is closed.

    Last statement within <body> section:
    <SCRIPT type='text/javascript' src='soundload.js'>
    </SCRIPT>

Similar Threads

  1. How does Google crawl works and index pages
    By Courtenay in forum Technology & Internet
    Replies: 5
    Last Post: 03-02-2011, 07:37 PM
  2. How fast does Google crawl and index pages
    By Aideen in forum Technology & Internet
    Replies: 4
    Last Post: 26-01-2011, 12:27 AM
  3. You have chosen to open index.php? - Firefox not viewing pages
    By -Wamil- in forum Technology & Internet
    Replies: 5
    Last Post: 21-09-2010, 06:53 AM
  4. To know Onload function
    By Basaam in forum Software Development
    Replies: 2
    Last Post: 23-03-2009, 11:04 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,750,498,338.61392 seconds with 16 queries