Jump to content

<object> positioning


Bazzaah

Recommended Posts

Hi

 

I hope someone can help me please.

 

I am using a media player to stream MP3s in an audio dictionary.

 

Words and sentences are generated through a MySQL search.

 

I would like the media player to appear alongside the search result

 

This is example code for echoing the search result

echo '<p><div id="small">' . $row['sentence1'] . '</p></div>';

 

This is the code for the media player

<object type="application/x-shockwave-flash" data="/player/dewplayer.swf" width="200" height="30" id="dewplayer" name="dewplayer">
<param name="movie" value="/player/dewplayer.swf" />
<param name="flashvars" value="mp3=' . $row['wordfile'] . '" />
<param name="wmode" value="transparent" />
</object>

 

So basically I'm looking for the results to echoed then the player to appear next to the search result.

 

Any help would be much appreciated

 

Thanks in advance

 

Link to comment
https://forums.phpfreaks.com/topic/236390-positioning/
Share on other sites

Well right now you echo the text out in <p> </p> tags.

if you instead would use a <span> text here  </span>  you can output them on the same line. Note though you can't put a div inside of a <span>

 

If you rather use a <p> you need to give it the property of float:left;

Link to comment
https://forums.phpfreaks.com/topic/236390-positioning/#findComment-1215432
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.