Solved

Add 'param' element into 'object' with jquery

Posted on 2012-12-22
1
1,094 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 53

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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

615 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