Title: Using java script on a blog page
Last modified: August 18, 2016

---

# Using java script on a blog page

 *  [whitegyr](https://wordpress.org/support/users/whitegyr/)
 * (@whitegyr)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/using-java-script-on-a-blog-page/)
 * Trying to us a java script on a page
 * I have a java script I use on [http://www.whitegyr.com/web-page-design-prices.htm](http://www.whitegyr.com/web-page-design-prices.htm)
   that works fine and I’d like to use it on a WordPress blog page.
 * The code that works on an html page:
 * On the line below the <title>
    <script type=”text/javascript” src=”swfobject.
   js”></script>
 * In the <body> of the page:
    <div id=”flashcontent2″ style=”position:absolute;
   top:265px; left:640px; z-index:999;”></div>
 * <script type=”text/javascript”>
    var vWidth=198; // set to the width of .flv 
   video NOTE: has been preset for best resolution changing can hinder quality var
   vHeight=213; // set to the height of .flv video NOTE: has been preset for best
   resolution changing can hinder quality var videoPath=”[http://www.myliveperson.com/video/mollywhite.flv&#8221](http://www.myliveperson.com/video/mollywhite.flv&#8221);;//
   Leave Alone var swfPlayerPath=”[http://www.myliveperson.com/video/newMLP3.swf&#8221](http://www.myliveperson.com/video/newMLP3.swf&#8221);;//
   Leave Alone var divId=”flashcontent2″ var so = new SWFObject(swfPlayerPath, “
   mymovie”, vWidth, vHeight, “8”); so.addParam(“wmode”, “transparent”); so.addVariable(‘
   videoPath’, videoPath); so.addVariable(‘videoW’, vWidth); so.addVariable(‘videoH’,
   vHeight); so.write(divId); </script>
 * Any help will be appreciated.
    MarkH

Viewing 1 replies (of 1 total)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/using-java-script-on-a-blog-page/#post-501137)
 * Start here:
    [http://codex.wordpress.org/Using_Javascript](http://codex.wordpress.org/Using_Javascript)

Viewing 1 replies (of 1 total)

The topic ‘Using java script on a blog page’ is closed to new replies.

## Tags

 * [java](https://wordpress.org/support/topic-tag/java/)
 * [script](https://wordpress.org/support/topic-tag/script/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [moshu](https://wordpress.org/support/users/moshu/)
 * Last activity: [19 years, 4 months ago](https://wordpress.org/support/topic/using-java-script-on-a-blog-page/#post-501137)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
