+ Reply to Thread
Results 1 to 5 of 5

Thread: Need a script to play when page is opened and closed

  1. #1
    spudjumps is offline x10Hosting Member spudjumps is an unknown quantity at this point
    Join Date
    Jan 2008
    Posts
    3

    Need a script to play when page is opened and closed

    I need a source for a script. I have around 50 small files less than 400 kb, and would like a script that randomly picks one to play when the site is opened. The clips are around 20 secs each. I was also hoping to get a script to play a random sound when the user clicks the close window icon ( they would click the x to close the window, the sound would play and the window would close.) Does anyone have any info on this type of script and can we use java scripts on this host? These are sounds of dog barks, and in mp3 format - do I need to change them to a different file type since they're mp3s?
    Thanks:laugh::rant2:

  2. #2
    Zenax's Avatar
    Zenax is offline Lord Of The Keys Zenax is an unknown quantity at this point
    Join Date
    Jul 2006
    Location
    The Brilliant United Kingdom
    Posts
    1,339

    Re: Need a script to play when page is opened and closed

    the first question is whether or not you own the rights to the mp3 files. Second of all, my guess is that this would be written in javascript.
    Regards,
    Zenax

  3. #3
    diabolo's Avatar
    diabolo is offline Community Advocate diabolo is on a distinguished road
    Join Date
    Nov 2007
    Location
    Jersey Shore
    Posts
    1,683

    Re: Need a script to play when page is opened and closed

    <body onUnload="javascript: ...">
    you can do something fancy with that, when the browser closes, for the rest//I am unsure of yet

  4. #4
    spudjumps is offline x10Hosting Member spudjumps is an unknown quantity at this point
    Join Date
    Jan 2008
    Posts
    3

    Re: Need a script to play when page is opened and closed

    Yes, they are my personal scripts of my own dogs barking, howling and singing. Does anyone know where I would find a script like this? I don't want it to be repetitive with the same bark ever time the page opens, I would like the script to choose one of the group.

    Thanks

  5. #5
    charlies is offline x10Hosting Member charlies is an unknown quantity at this point
    Join Date
    Sep 2006
    Location
    Melbourne, Australia
    Posts
    39

    Re: Need a script to play when page is opened and closed

    I can do this for you...
    PM me with your offer in credits.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers