Jump to content

Reduce this loop, is there another way?


dreamwest

Recommended Posts

I have a mp3 player which loops 20 times, is there another way i can just call the mp3 code once thus helping page loading times?

 


//loops 20 times for each song//
<div class="player">

<object type="application/x-shockwave-flash" data="/mp3/player.swf" id="audioplayer1" height="24" width="290">
<param name="movie" value="/mp3/player.swf">
<param name="FlashVars" value="playerID=1&
bg=0xCDDFF3&leftbg=0x357DCE&lefticon=0xF2F2F2&rightbg=0xF06A51&rightbghover=0xAF2910&righticon=0xF2F2F2&
righticonhover=0xFFFFFF&text=0x357DCE&slider=0x357DCE&track=0xFFFFFF&border=0xFFFFFF&loader=0xAF2910&soundFile=http://{$latest[i].url}">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="wmode" value="transparent">
</object></center>

 

I tried a function but it didnt seem to help loading times

Link to comment
https://forums.phpfreaks.com/topic/175330-reduce-this-loop-is-there-another-way/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.