SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2000
    Location
    Leeds, UK
    Posts
    76
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I already have the basis of this sorted, basically, my site uses frames, so therefore, if you access a single page, such as main.html, a sound is played, once the sound has been played, you get redirected back to the main page, so that the source cannot be copied (easily ). The problem I have, is getting the page to goto the URL once the sound has been played, I can do either of these seperately, but not one after the other, here is what I have so far

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>

    &lt;SCRIPT&gt;//checking for frames if(self.name==top.name){
    document.write("&lt;BGSOUND SRC='vegeta.wav'
    LOOP='infinate' autostart='true'
    hidden='true'&gt;")
    }else{location.href="index3.html?home" }&lt;/SCRIPT&gt;

    [/code]

    However, this doesn't really work because only the sound is played, and the URL is just ignored, is there anyway to get the sound played, then have the user redirected to the designated URL once it has been played?

    Thanks Very Much, Hell.

    &lt;&lt;&lt;Edited Code to prevent horizontal scrolling &gt;&gt;&gt;


    [This message has been edited by wluke (edited July 11, 2000).]

  2. #2
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    The code you have posted doesn't try to redirect the user if they aren't in frames. It only redirects the user if they are. Try moving the redirection out of the else clause and into the if clause.

    ------------------
    Wayne Luke - Sitepoint Forums Administrator
    Digital Magician Magazine - MetaQuark Creations (Coming Soon)
    sitepoint@digitalmagician.com

  3. #3
    SitePoint Guru CJ's Avatar
    Join Date
    Apr 2000
    Location
    Mechelen, Belgium, Europe
    Posts
    684
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The best way to make this effect is do it with Flash4. Nobody will be able to copy anything you make with Flash4.

    Christophe



    ------------------
    http://freesources.net - the ultimate webmaster resources site


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
  •