Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

Simple problem

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Postby Snellgrove2 » Thu Feb 20, 2003 8:30 am

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.
Snellgrove2
New php-forum User
New php-forum User
 
Posts: 5
Joined: Wed Feb 19, 2003 8:16 am
Location: South England

Postby Hadleigh » Fri Feb 21, 2003 1:31 am

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: Select all
<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
Hadleigh
New php-forum User
New php-forum User
 
Posts: 32
Joined: Tue Feb 04, 2003 10:32 am
Location: UK


Return to PHP coding => General

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.