Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
How can I cleanup my messy video code it's custom so I am confused
Old 08-18-2007, 01:13 AM How can I cleanup my messy video code it's custom so I am confused
goheadtry's Avatar
Webmaster Talker

Posts: 730
Name: John
Location: United States of America, California
Trades: 0
HI I was Wondering HoW I Could Do valid video with this Form? on my site

PHP Code:
<table bgcolor="#FFFFFF" width="95%%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><tr>
      <td colspan="3"><center>
        <p><?php include "rater.php";?></p>
        <p>
        <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
        <script type="text/javascript">
function MM_CheckFlashVersion(reqVerStr,msg){
  with(navigator){
    var isIE  = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);
    var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
    if (!isIE || !isWin){  
      var flashVer = -1;
      if (plugins && plugins.length > 0){
        var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";
        desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc;
        if (desc == "") flashVer = -1;
        else{
          var descArr = desc.split(" ");
          var tempArrMajor = descArr[2].split(".");
          var verMajor = tempArrMajor[0];
          var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r");
          var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;
          flashVer =  parseFloat(verMajor + "." + verMinor);
        }
      }
      // WebTV has Flash Player 4 or lower -- too low for video
      else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0;

      var verArr = reqVerStr.split(",");
      var reqVer = parseFloat(verArr[0] + "." + verArr[2]);
  
      if (flashVer < reqVer){
        if (confirm(msg))
          window.location = "http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
      }
    }
  } 
}
        </script>
        <body onLoad="MM_CheckFlashVersion('7,0,0,0','Content on this page requires a newer version of Macromedia Flash Player. Do you want to download it now?');">
        <div align="center">
          <script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0','width','447','height','401','id','FLVPlayer','src','FLVPlayer_Progressive','flashvars','&MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName=http://www.technologyforever.com/vidd/<?php echo $vfile?>&autoPlay=true&autoRewind=true','quality','high','scale','noscale','name','FLVPlayer','salign','lt','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','FLVPlayer_Progressive' ); //end AC code
        </script>
          <noscript>
            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="447" height="401" id="FLVPlayer">
              <param name="movie" value="FLVPlayer_Progressive.swf" />
              <param name="salign" value="lt" />
              <param name="quality" value="high" />
              <param name="scale" value="noscale" />
              <param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName=http://www.technologyforever.com/vidd/<?php echo $vfile?>&autoPlay=true&autoRewind=true" />
              <embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName=http://www.technologyforever.com/vidd/<?php echo $vfile?>&autoPlay=true&autoRewind=true" quality="high" scale="noscale" width="447" height="401" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />                    
          </object>
          </noscript>
          </p>
        </div>
        <table width="95%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td><div align="center">
                  <h1 class="style500"><?php echo "$group";?></span></h1>
                </div></td>
              </tr>
              <tr>
                <td><div align="center"><?php echo "$sect";?></div>                  <div align="center"></div></td>
              </tr>
              
              <tr>
                <td><div align="center">
                  <p>
                    <textarea name="textarea" cols="80" rows="5"><?php echo "$dsrptn";?></textarea>
                  </p>
                  <table width="87%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td width="13%" align="center" valign="top"><div align="right"><strong>URL:</strong></div></td>
                      <td width="87%" valign="top"><form id="form1" name="form1" method="post" action="">
                          <label>
                          <input name="textfield2" type="text" value="http://www.technologyforever.com<?php print $_SERVER['REQUEST_URI'] ;?>" size="80" />
                          </label>
                      </form></td>
                    </tr>
                    <tr>
                      <td colspan="2"><div align="center"></div></td>
                    </tr>
                    <tr>
                      <td><div align="right"></div></td>
                      <td>&nbsp;</td>
                    </tr>
                  </table>
                  <p>&nbsp;</p>
                </div></td>
              </tr>
              <tr>
                <td height="2"></td>
              </tr>
            </table>
            <p></p></td>
          </tr>
        </table>
        <p>        </p>
        <p></p>
</center>
</td>
    </tr></td>
  </tr>
</table>
__________________
Free $1 gift card when you signup at
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

goheadtry is offline
Reply With Quote
View Public Profile Visit goheadtry's homepage!
 
 
Register now for full access!
Reply     « Reply to How can I cleanup my messy video code it's custom so I am confused
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.07996 seconds with 12 queries