User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 428,059 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,488 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 821 | Replies: 2 | Solved
Join Date: May 2008
Posts: 4
Reputation: rhand is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
rhand rhand is offline Offline
Newbie Poster

External Javascript does not laod + error

  #1  
May 14th, 2008
I have been working on a Wordpress theme for some time now. I got a javascript from the original website. I import it into the Wordpress header.php. But it does not work at all. No floating images as I move my mouse. Nothing at all. Firebug gives me this error:
document.body has no properties
http://www.xxx.xx/xxx/wp-content/themes/Verhoijsen2/float.js
Line 2
On that line of the javascript you will find this:
var screenheight  =document.all? Math.max(truebody().scrollHeight, truebody().clientHeight) : Math.max(document.body.offsetHeight, window.innerHeight)
I know very little about javascript, so I would appreciate your help. Maybe I need to change the code as I import it now instead of having it in the header =>index itself?
Last edited by rhand : May 14th, 2008 at 11:31 pm.
AddThis Social Bookmark Button
Reply With Quote  

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 11:53 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC