Title: Javascripts in WordPress&#8230;Please help!
Last modified: August 18, 2016

---

# Javascripts in WordPress…Please help!

 *  [mechietechie](https://wordpress.org/support/users/mechietechie/)
 * (@mechietechie)
 * [20 years ago](https://wordpress.org/support/topic/javascripts-in-wordpressplease-help/)
 * Hi!
    I found a javascript for a menu structure that looks perfect for my site.
   I wanted to implement this [http://simplythebest.net/scripts/DHTML_scripts/dhtml_script_83.html](http://simplythebest.net/scripts/DHTML_scripts/dhtml_script_83.html)
 * Ive tried numerous things, but i cant manage to get it to work. I can get it 
   to work fine on my html pages, but when editing the php “Theme Editor” in wordpress,
   i cant get it to work.
    Any thoughts? Thanks!

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/topic/javascripts-in-wordpressplease-help/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/javascripts-in-wordpressplease-help/page/2/?output_format=md)

 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [20 years ago](https://wordpress.org/support/topic/javascripts-in-wordpressplease-help/#post-382204)
 * When editing themes to add stuff like that, remember that the purpose of the 
   theme is just to generate the resulting page for the browser. So always work 
   based on what the browser is seeing. Use the View Source on your website to see
   what is actually making it to the browser. This is helpful in theme editing, 
   especially for javascript which is not running in the theme, but running on the
   final webpage.
 *  Thread Starter [mechietechie](https://wordpress.org/support/users/mechietechie/)
 * (@mechietechie)
 * [20 years ago](https://wordpress.org/support/topic/javascripts-in-wordpressplease-help/#post-382206)
 * Thanks for your response.
    I’ve looked at the source, and it displays the code
   the way it shud…it also does that on the site ([http://simplythebest.net/scripts/DHTML_scripts/dhtml_script_83.html](http://simplythebest.net/scripts/DHTML_scripts/dhtml_script_83.html))
   where i found the code.
 * If you take a look at the way the menu shud look, the red box and the title next
   to it are all you see at first…on my site, the only thing that comes up is the
   title…the red box is missing. From this i can assume that for some reason the
   style tags are not being read properly.
    any thoughts? thanks
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [20 years ago](https://wordpress.org/support/topic/javascripts-in-wordpressplease-help/#post-382207)
 * Unless you post the site where you’re trying to put this in, there’s no way anybody
   will be able to look at what you’ve got and help you out.
 * Best I can say is to look closer at your CSS.
 *  Thread Starter [mechietechie](https://wordpress.org/support/users/mechietechie/)
 * (@mechietechie)
 * [20 years ago](https://wordpress.org/support/topic/javascripts-in-wordpressplease-help/#post-382208)
 * Thats a darn good idea:
 * [http://mechietechie.com/wp/](http://mechietechie.com/wp/)
 * you can see where the menu shud be in the sidebar on the right…
 * also, if you visit the site in IE, you’ll notice a huge alignment error, that
   doesnt occur in firefox…still trying to figure that one out…any thoughts on that
   are also welcome!
 * ill keep sifting through my CSS ([http://mechietechie.com/wp/wp-content/themes/frametheme/style.css](http://mechietechie.com/wp/wp-content/themes/frametheme/style.css))
   ,
   but i cant find any bugs in it yet (im sure there are)
 *  Thread Starter [mechietechie](https://wordpress.org/support/users/mechietechie/)
 * (@mechietechie)
 * [20 years ago](https://wordpress.org/support/topic/javascripts-in-wordpressplease-help/#post-382211)
 * nope, cudnt find anything wrong in my CSS…any thoughts?
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [20 years ago](https://wordpress.org/support/topic/javascripts-in-wordpressplease-help/#post-382232)
 * I took a look but the resulting html is way over my head. There is some complex
   stuff going on there. Everything looks good to me except I’m not certain about
   the position: absolute in the CSS.
 * You might try making it work on a test page all by itself and see if you can 
   get it working there. Just a thought.
 *  Thread Starter [mechietechie](https://wordpress.org/support/users/mechietechie/)
 * (@mechietechie)
 * [20 years ago](https://wordpress.org/support/topic/javascripts-in-wordpressplease-help/#post-382267)
 * Thanks for taking the time!
    I did make a test page, just copied the neccesary
   text, and it worked fine as html. not sure wut else to do
 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [20 years ago](https://wordpress.org/support/topic/javascripts-in-wordpressplease-help/#post-382269)
 * Unless you scale down some of the images in your main container your sidebar 
   will never perform correctly. Adjust the images to a size slightly smaller than
   your main container size and odds are your code will start working. Also, it’s
   a good idea to wrap your javascript with `<div>` tags.
    `<div>javacode</div>`
 *  Thread Starter [mechietechie](https://wordpress.org/support/users/mechietechie/)
 * (@mechietechie)
 * [20 years ago](https://wordpress.org/support/topic/javascripts-in-wordpressplease-help/#post-382275)
 * thanks samboll, that might help with the IE alignment. i did mess around with
   the pixel numbers a bit, and havent had a chance to re-do that…but on the template
   i started from, the picture was proportional, so it shud cause so much of a problem
 *  Thread Starter [mechietechie](https://wordpress.org/support/users/mechietechie/)
 * (@mechietechie)
 * [20 years ago](https://wordpress.org/support/topic/javascripts-in-wordpressplease-help/#post-382289)
 * hmm, ive been thru everything, and cant seem to figure it out.
 * any more thoughts?
 *  [Dreamchaser](https://wordpress.org/support/users/dreamchaser/)
 * (@dreamchaser)
 * [20 years ago](https://wordpress.org/support/topic/javascripts-in-wordpressplease-help/#post-382327)
 * Hi There,
 * This should fix your solution WordPress JavaScript Plugin for Posts : [http://www.acmetech.com/blog/2006/03/19/wordpress-javascript-plugin/](http://www.acmetech.com/blog/2006/03/19/wordpress-javascript-plugin/)
 * Example over @ [http://www.renewedreflections.com/bmi-calculator-body-mass-index/](http://www.renewedreflections.com/bmi-calculator-body-mass-index/)(
   You can checkout Michael’s Body Mass Index Calculator JavaScript within a WordPress
   post. )
 * Though this plugin was intended for AdSense Integration, the actual work of the
   plugi is to display javascript on the sites and hence you javascript should work
   perfectly!
 * Have Fun 🙂
 * – Dreamchaser
 *  Thread Starter [mechietechie](https://wordpress.org/support/users/mechietechie/)
 * (@mechietechie)
 * [20 years ago](https://wordpress.org/support/topic/javascripts-in-wordpressplease-help/#post-382407)
 * hey dreamchaser
    thanks for the effort, but this is for posts, will it work out
   for the template? i think part of the problem is that the code refers to definitions
   in the style sheet, and it seem that thos arnt being read. thanks anyother thoughts?
 *  Thread Starter [mechietechie](https://wordpress.org/support/users/mechietechie/)
 * (@mechietechie)
 * [20 years ago](https://wordpress.org/support/topic/javascripts-in-wordpressplease-help/#post-382479)
 * ive tried everything, and at this point im fairly certain ther’s an solely an
   issue in reading the style sheet. any thoughts on how to resolve that?
 *  Thread Starter [mechietechie](https://wordpress.org/support/users/mechietechie/)
 * (@mechietechie)
 * [20 years ago](https://wordpress.org/support/topic/javascripts-in-wordpressplease-help/#post-382580)
 * no luck yet for me…anyone else??
 *  [Pizdin Dim](https://wordpress.org/support/users/pizdin_dim/)
 * (@pizdin_dim)
 * [20 years ago](https://wordpress.org/support/topic/javascripts-in-wordpressplease-help/#post-382584)
 * I notice that your page output is **not** valid XHTML:
 * [http://validator.w3.org/check?uri=http%3A%2F%2Fmechietechie.com%2Fwp%2F](http://validator.w3.org/check?uri=http%3A%2F%2Fmechietechie.com%2Fwp%2F)
 * It’s possible that the W3C validation service doesn’t know how to ignore javascript,
   so I’m not sure if that’s the reason for the errors. Try taking the javascript
   out and re-validate again.
 * **EDIT:** Just tried accessing your page using Firefox 1.5 and I get lots of 
   errors in the javascript console. A sample follows:
 * Error: Unknown property ‘filter’. Declaration dropped. Source File: ttp://mechietechie.
   com/wp/wp-content/themes/frametheme/style.css Line: 63
 * Error: Error in parsing value for property ‘width’. Declaration dropped. Source
   File: [http://mechietechie.com/wp/wp-content/themes/frametheme/style.css](http://mechietechie.com/wp/wp-content/themes/frametheme/style.css)
   Line: 401

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/topic/javascripts-in-wordpressplease-help/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/javascripts-in-wordpressplease-help/page/2/?output_format=md)

The topic ‘Javascripts in WordPress…Please help!’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 20 replies
 * 6 participants
 * Last reply from: [mechietechie](https://wordpress.org/support/users/mechietechie/)
 * Last activity: [20 years ago](https://wordpress.org/support/topic/javascripts-in-wordpressplease-help/page/2/#post-382712)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
