Solved

Add 'param' element into 'object' with jquery

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Why am I getting ReferenceError:  boxes is not defined error 5 33
Make Float not to Wrap 15 66
NOT having JQuery DataTable Columns Sort 7 35
Div not showing up 6 32
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

734 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