Resizing Video's in Profile 2.0
|
|
|
 |
|
|
|
To resize youtube video's in myspace Profile 2.0 do the following. Copy the Embed code as normal from youtube. Paste the code into myspace, let's say the about/meet section. The copied youtube code should look similar to this:
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/_81U4ngh4tc&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/_81U4ngh4tc&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>
When you save myspace will convert the code to this:
<object type="application/x-shockwave-flash" allowScriptAccess="never" allowNetworking="internal" height="344" width="425" data="http://www.youtube.com/v/_81U4ngh4tc&hl=en&fs=1"> <param name="allowScriptAccess" value="never" /> <param name="allowNetworking" value="internal" /> <param name="movie" value="http://www.youtube.com/v/_81U4ngh4tc&hl=en&fs=1" /> <param name="wmode" value="transparent" /> </object>
To resize the video, you will need to replace the height and width youtube gives you with this:
style="width:XXXpx; height:XXXpx; visibility:visible;
So the code will now look like this, I bolded in red the part you have to add to resize it.
<object type="application/x-shockwave-flash" allowScriptAccess="never" allowNetworking="internal" style="width:XXXpx; height:XXXpx; visibility:visible; data="http://www.youtube.com/v/_81U4ngh4tc&hl=en&fs=1"> <param name="allowScriptAccess" value="never" /> <param name="allowNetworking" value="internal" /> <param name="movie" value="http://www.youtube.com/v/_81U4ngh4tc&hl=en&fs=1" /> <param name="wmode" value="transparent" /> </object>
All you need to do is adjust the width and height (X's) to the size you want of your video and you're done.
For myspace video embeds, all you need to do is change the height and width on the embed code myspace gives you. No additional code is needed.
|
|
|
|