swap swf displayed in index.html,

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default swap swf displayed in index.html,

    This is a difficult one.. And I'm not sure anyone will be able to answer it or
    if I should be asking this question in the flash forum section.

    On my index page is a flash movie. My question is this ... I wish the user to
    see a different version/style of this movie depending on the time/date they
    visit the website i.e.

    I want the index page to load a daytime.swf between 6.00am to 6.00pm and a
    midnight.swf between 6.00pm to 6.00am.

    I know.. it's tough.

    Anyone got any ideas - or link to a tutorial on this.

    Kind Regards,
    Peter

    Peter Fettes Guest

  2. Similar Questions and Discussions

    1. Html newsletters displayed in Email
      This seems like an easy topic but it is not to be found in these forums. I contantly get emails that display an html page when opened. They are...
    2. swap flash swf source file in html
      Hi all. I have a flash file in my page (flash1.swf) When a user clicks on a html link, i want a javascript to swap flash1.swf for flash2.swf I...
    3. Swap swf in the html help of java script
      Hello, Please help me create a section on my site that would have a swf file in the center of the page. On the left and right of the swf flash...
    4. HTTP Header being displayed at top of HTML
      After rebuilding our web server from NT 4.0 IIS 4.0 to Windows 2000 IIS 5.0, I'm constantly getting HTTP Headers posted to the top of the HTML...
    5. In IE 6 only HTML listboxes are displayed
      Try asking in an IE group. This group is for programming ASP pages. Ray at work "Daniel" <daniel_krause@web.de> wrote in message...
  3. #2

    Default Re: swap swf displayed in index.html,

    you can use flash, or javascript, and probably a few others, but I would use
    flash because javascript can be disabled. Just look up the Date functions in
    the flash helps, you'll probably use Date.getHours(). But just know that Date
    functions get the informations from the viewer's computer so if their clock is
    wrong then it won't work right.

    Clukey Guest

  4. #3

    Default Re: swap swf displayed in index.html,


    Thank You,

    Do you know of any online tutorials too, on this subject.
    Peter Fettes Guest

  5. #4

    Default Re: swap swf displayed in index.html,

    I don't know of any tutorials, but it's really quite simple just follow these
    steps for flash

    1. create an empty movie the size of the "midnight" and "daytime" movies
    2. create an empty movie clip labeled "holder" and put it in the top left
    corner of the empty movie
    3. put this code into the frame with the "holder" mc:

    var d = new Date();
    var hour = d.getHours();
    if (hour>6 && hour<18) {
    _root.holder.loadMovie("daytime.swf");
    } else {
    _root.holder.loadMovie("midnight.swf");
    }

    That should do what you need it to.

    Clukey Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139