Simple problem

A

Anonymous

Guest
Im not sure how to program this yourself, -you probably know more PHP than me!

Buutttt.......

(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 )

hotscripts.com -> 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.
 
Hi,

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:
<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
		CODEBASE="http://active.macromedia.com/flash/cabs/swflash.cab#version=3,0,0,11"
		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">');
		}
		</SCRIPT>
		</OBJECT>
		<noscript><IMG SRC="http://replacement_image_or_text.gif" WIDTH="559" HEIGHT="250"></noscript>

Hope this helps,

Hadleigh
 
Back
Top