Solved

Add 'param' element into 'object' with jquery

Posted on 2012-12-22
1
1,079 Views
Last Modified: 2012-12-22
Hi Experts!

Quick question:
I've got a piece of code on my blog's pages:
<object width="300" height="300">
  <param name="movie" value="http://www.youtube.com/v/_OtW1BYVvIM?version=3&amp;hl=en_US&amp;rel=0"></param>
  <param name="allowFullScreen" value="true"></param>
  <param name="allowscriptaccess" value="always"></param>
  <embed src="http://www.youtube.com/v/_OtW1BYVvIM?version=3&amp;hl=en_US&amp;rel=0" type="application/x-shockwave-flash" width="300" height="300" allowscriptaccess="always" allowfullscreen="true"></embed>
</object>

Open in new window

And I want to add this piece between 'object' tags:
<param name="wmode" value="transparent">

Open in new window

And I want to do it in easiest possible way, with jquery, so I don't have to search edit every single object.
How can I do this?

Thanks.
0
Comment
Question by:Zado
1 Comment
 
LVL 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 38716080
<script>
$(document).ready(function() {
       $('<param name="wmode" value="transparent">').appendTo("object");
});
</script>
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Find out what you should include to make the best professional email signature for your organization.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question