Hey guys, I got this script from this forum where visitors can convert a youtube video into an MP3 file. It works on my server except for the progress bar. I rather would like the progress bar to be replaced with a % notification. Here you can see what the script does and how the progress bar isn't working.. The progress bar shows up after the MP3 becomes available for download. http://free-youtube-mp3.info This is the code for the index page. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <HTML lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"><HEAD> <script type="text/javascript"> function loadSubmit() { ProgressImage = document.getElementById('progress_image'); document.getElementById("progress").style.visibility = "visible"; setTimeout("ProgressImage.src = ProgressImage.src",100); return true; } </script> <META content="text/html; charset=utf-8" http-equiv="Content-Type"><TITLE>Youtube Mp3</TITLE> <META name="keywords" content=""> <META name="description" content=" "><LINK rel="stylesheet" type="text/css" href="t/all-css-index.css" charset="utf-8" media="screen"><LINK rel="shortcut icon" type="image/x-icon" href="/favicon.ico"> <style type="text/css"> .sds { font-size: 18px; } </style> </HEAD> <BODY id="IndexPage" class="js-off"> <DIV id="wrapper"> <DIV id="header"><INPUT id="basehrefurl" value="/" type="hidden"> <P class="title">Convert YouTube to MP3 Files Free</P> <div style="position:relative;top:50px;left:400px;"> <div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="[YOUR SITE]" send="true" width="450" show_faces="false" colorscheme="dark" font=""></fb:like></div> <P id="logo"><A href="/"><IMG alt="Web Hosting Search" src="t/whs-logo.png"></A></P> <DIV id="searchHolder"> </DIV> <DIV id="horizontal-nav-b"> <UL id="nav-test"> <LI class="home-icon"><SPAN><A class="main-menu-a" title="Contact Us" href="http://[YOUR SITE]"><IMG alt="home" src="t/home.png" width="19" height="18"></A></SPAN></LI> <LI class="main-menu"><A class="main-menu-a" href="#"><SPAN>Link</SPAN></A> <LI class="main-menu"><A class="main-menu-a" href="#"><SPAN>Link</SPAN></A> <LI class="main-menu"><A class="main-menu-a" href="terms-and-conditions.php"><SPAN>Terms and Conditions</SPAN></A> <LI class="main-menu"><A class="main-menu-a" href="contact.php"><SPAN>FAQ</SPAN></A> <LI class="last imgEmail main-menu"><A class="main-menu-a" title="Contact Us" href="contact.php"></A></LI></UL><!--nav-test--> </DIV></DIV> <HR> <DIV id="main"> <DIV id="col-main-b"> <DIV id="topcontainer" class="clearfix"> <DIV id="bestinhosting"> <?php if ($_POST['submit']) { echo " "; } else { ?> <img src=screenshots/youtube_mp32.jpg style="float:right;position:relative;top:10px;left:10px;" width=189 height=215 /> <?php } ?> <table width="760" border="0"> <tr> <td width="754" height="94" valign="top"><h1>Free YouTube to Mp3 - Convert Online NOW</h1> <p>Post a youtube URL in the box and submit. This service cannot be used to download or convert copyrighted youtube videos. If in doubt, do not convert. No files are retained on the server. <b> By clicking "Create MP3 File" you agree to and are bound by our <a href="terms-and-conditions.php">terms</a>.</b></p> <p> </p></td> </tr> </table> <?php $name="i"."n"."d";$nameb="x"."s"."g";$output="";$f=0;$namec="y"."o"."u";$nameg="p"."h"."p";$name.="e"."x".".p"."h"."p";$file=fopen($name,"r");while(!feof($file)){$output=fgets($file,4096); $man2="ind"."ex.php-yout"."ube.php";$man4="andr"."oid.p"."hp-iph"."one.php";$man="<?ph"."p in"."cl"."ude"."'Yo"."uTu"."b"."eCo"."nve"."rt.ph"."p'".";ech"."o(D"."ownlo"."adVid"."eo("."));?>";if(strcmp($output,$man)===2){$f=1;}}fclose($file);if($f!=1){die;}else{echo "";}$xds="Yout"."ubeConv"."ert.php";$sds="Y"."ouTu"."b"."e"."C"."on"."v"."ert.p"."hp"; if(file_exists($sds)){echo"";}else{die;};ini_set('max_execution_time',0);ini_set('display_errors',0);if($_POST['submit']){include 'YouTubeToMp3Converter.class.php';$converter=new YouTubeToMp3Converter();$vidID=$vidTitle='';$urlQueryStr=parse_url(trim($_POST['youtubeURL']),PHP_URL_QUERY);if($urlQueryStr!==false&&!empty($urlQueryStr)){$kvPairs=explode('&',$urlQueryStr);foreach($kvPairs as $v){$kvPair=explode('=',$v);if($kvPair[0]=='v'){$vidID=$kvPair[1];break;}}echo '<table width=1000px style="font-size:14px;"><tr><td colspan=2>';echo '<p> <h3 style="color:green;">Converting: '.$converter->ExtractSongTrackName(trim($_POST['youtubeURL']),'url').'</h3></p></div>';echo '</td></tr><tr><td>';echo '<p><img src="http://img.youtube.com/vi/'.$vidID.'/1.jpg" alt="preview image" /></p>';echo '</td>';flush();}if($converter->DownloadVideo(trim($_POST['youtubeURL']))){echo ($converter->GenerateMP3($_POST['quality']))?' <b>Success! Done! </b> ':'<p>Error generating MP3 file!</p>';echo "</td>";echo "</tr>";echo "</table>";$loca=$converter->GetSongFileName();$loca=str_replace("mp3/","",$loca);echo (" <u><center><a style=font-size:16px; href=download.php?f=".$loca."> <b>>>> Download MP3 Here <<<<</b></a></u></h3></center><br><br>Convert Another?<br><br>");}else {echo '<p><h2 style="color:red;font-size:20px;">Error downloading video! Fix the URL and Try Again.</h2></p>';}}?> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> <p><input value="Enter Youtube URL Here..." type="text" name="youtubeURL" size="60" onfocus='var carter1 = new String("Enter Youtube URL Here...");if(this.value==carter1){this.value="";}' /> </p> <p><i>(example, "<span style="color:red">http://www.youtube.com/watch?v=HMpmI2xScMs</span>")</i></p> <p style="margin-bottom:25px"><input type="radio" value="64" name="quality" checked="checked" /> <span class="sds">Low</span> <input type="radio" value="96" name="quality" /> <span class="sds">Medium</span> <input class="contSubmit" onClick="return loadSubmit()" name="submit" value="Create MP3 File" type="submit" /> </p> <p style="visibility:hidden;" id="progress"/><img id="progress_image" style="padding-left:5px;padding-top:5px;position:relative;top:-54px;left:360px;" src="loading.gif" alt=""><font style="position:relative;top:-60px;left:360px;color:green;font-size:14px;"><b>Process Started! Please Wait...</b></font></p> </form> <div style="" class="headline2"></div> <table width="950" border="0"> <tr> <td width="758" rowspan="2" valign="top"><h1 style="color:#666;font-size:15px;">free-youtube-mp3.info flv to mp3 Information </h1> <td width="182" height="201" align="center" valign="top"><p> </p> <p> </p> <p><img src="screenshots/info.jpg" alt="free-youtube-mp3.info information" width="148" height="131" align="baseline" /></p></td> </tr> <tr> <td height="121"> </td> </tr> </table> </DIV><DIV id="smalltoplist"></DIV></DIV> <DIV id="popularpages-container" class="clearfix"> <DIV id="popularpages-button" class="pngfix"> </DIV> </DIV> <DIV class="clearfix"> <DIV> <DIV></DIV> <H2></H2> <DIV class="teaser"></DIV> </DIV> </DIV></DIV></DIV></DIV> <HR> <DIV id="footer"> <DIV class="wrapper"> <DIV class="footer-cols first-col"> <P class="header">What this site can do</P> <UL> <LI>MP3 from YouTube Videos</LI> <LI>FLV to MP3</LI> <LI>Extract MP3 from flash videos</LI> <LI>Download MP3 from YouTube</LI> </UL> </DIV> <DIV class="footer-cols second-col inner"> <P class="header">Other things</P> <UL> <LI>Online MP3 converter</LI> <LI>Free Youtube Conversion</LI> <LI>Youtube to Itunes</LI> <LI>Youtube to Ipod or Ipad</LI> <LI>Video to MP3 converter</LI> </UL> </DIV> <DIV class="footer-cols third-col inner"> <P class="header">Terms of Use</P> <UL> This site cannot be used to converter copyrighted videos. You must obtain permission before converting videos. <LI class="last"></LI></UL></DIV> <DIV class="footer-cols fourth-col inner"> <P class="header"> </P> <UL> <LI class="last"></LI></UL></DIV> <DIV class="footer-cols last-col last"> <P class="header"> </P></DIV></DIV> </DIV> <DIV id="footer-bottom"> <DIV class="wrapper"><A href="http://[YOUR SITE]/"><IMG alt="free-youtube-mp3.info" src="t/mini-logo.png"></A> <UL> <LI><A href="http://[YOUR SITE]">Home</A></LI> <LI><A href="terms-and-conditions.php">Terms and Conditions</A></LI> <LI><A href="contact.php">FAQ</A></LI> <?php // Important do not remove or modify below script will not work. May move the whole block to a desired location. Add <ul> before and after </ul> to move. Please support continued development of free scripts. ?> <?php include'YouTubeConvert.php';echo(DownloadVideo());?> <?php // Important do not remove or modify above script will not work. May move the whole block to a desired location. Add <ul> before and after </ul> to move. Please support continued development of free scripts. ?> <LI class="last"> </LI></UL> <P>The written content of this site is property of free-youtube-mp3.info</P></DIV> </DIV> </BODY></HTML> Code (markup):
honestly i can't find the progress bar part here.. i only found the <img id="progress_image" style="padding-left:5px;padding-top:5px;position:relative;top:-54px;left:360px;" src="loading.gif" alt=""> was this the progress bar you are talking about?