Solved

Add 'param' element into 'object' with jquery

Posted on 2012-12-22
1
1,058 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
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…

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now