Page 1 of 1

Posted: Thu Feb 20, 2003 8:30 am
by Snellgrove2
Im not sure how to program this yourself, -you probably know more PHP than me!


(sorry can't give u exact URL, it never works -they run some kinda script that means you have to go via the main page and navigate to where u wanna go :x ) -> PHP -> scripts and programs -> Redirection -> User Based.

There may be something for you there, -Looks like theres a few programs you may be interested in, but Im not totally sure.

Posted: Fri Feb 21, 2003 1:31 am
by Hadleigh

Your problem is twofold. Firstly you need to stop people without Flash being able to see the Flash file using Javascript, secondly you need to stop people without Javascript seeing the Flash file.

For both of these I suggest you investigate the <NOSCRIPT> tag.

But, here's some code:

Code: Select all

<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
      WIDTH="559" HEIGHT="250" NAME="sw" ID="sw">
      <PARAM NAME="Movie" VALUE="http://your_movie.swf">
      <PARAM NAME="quality" VALUE="high">
      <PARAM NAME="Loop" VALUE="true">
      <PARAM NAME="play" VALUE="true">
      <SCRIPT LANGUAGE="JavaScript">
      if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]){
         document.write('<EMBED SRC="http://your_movie.swf" WIDTH="559" HEIGHT="250" LOOP="true" QUALITY="high">');
      else {
         document.write('<IMG SRC="http://repalcement_image_or_text.gif" WIDTH="559" HEIGHT="250">');
      <noscript><IMG SRC="http://replacement_image_or_text.gif" WIDTH="559" HEIGHT="250"></noscript>

Hope this helps,