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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.