SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2000
    Location
    Leeds, UK
    Posts
    76
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>

    &lt;SCRIPT&gt;
    //checking for frames # ## ##########################
    if(self.name==top.name){
    location.href="index2.html?home"
    }
    &lt;/SCRIPT&gt;

    [/code]

    How could I incorperate a sound into this, before the user is redirected to the URL...

    I'm not really sure you will understand what I mean, so i'll have a go at explaining:

    My site uses frames, if the user looks at the HTML and accesses a lone page, without the frames, the user gets redirected back to the main page with the frames (thats what the script above is), how though, could I incorperate a sound which once finished playing, then redirected the user to the page like normal. Hopefully this will clear things up a little, thanks.

    Hell.

  2. #2
    SitePoint Guru Vincent Puglia's Avatar
    Join Date
    Feb 2000
    Location
    where the World once stood
    Posts
    700
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    Did you try document.write()-ing the necessary code just before the location.href?

    if(self....)
    {
    document.write("&lt;embed....");
    location.href.....
    }

    Vinny

    ------------------
    my site:GrassBlade: cut&paste javascript
    moderator at:The JavaScript Place Forums
    Javascript City

  3. #3
    SitePoint Enthusiast
    Join Date
    Jun 2000
    Location
    Leeds, UK
    Posts
    76
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nope, that didn't work

    Any other ideas?

    Hell.

  4. #4
    Fluffy Kitten Programmer~ Elledan's Avatar
    Join Date
    Jun 2000
    Location
    Netherlands
    Posts
    1,356
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why would you want a sound with redirect?

    ------------------
    Webmaster
    www.emudreams.web.com


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
  •