UK WEB HOSTING FORUM FOR DISCUSSION ON WEB HOSTING SERVICE AND SUPPORT
LINUX HOSTING WINDOWS HOSTING PACKAGES SHOPPING CART OSCOMMERCE ZEN CART AGORA
ECOMMERCE HOSTING ASP MSSQL FRONTPAGE HOSTING PHP MYSQL HOSTING DISCUSSION FORUM
CPANEL RESELLER HOSTING DEDICATED SERVER VPS HOSTING PLESK VIRTUOZZO
Quick Search
Your forum announcement here!

  UK Web Hosting | Dedicated Server Windows and Linux VPS Forum > Web Hosting and Domains > Javascript - Ajax - Tomcat

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 26-10-2007, 10:28
new member
 
Join Date: Oct 2007
Posts: 2
Default problem in code

I have a snipit of javaScript running right under the <body> tag. The script works great... but in IE the script shows up as a blank line at the top of my document and is pushing my page down about 20 pixels... I tried a few CSS tricks but its not fixing the problem... Anyone know how to fix this.
__________________
affordable web design
Reply With Quote
  #2 (permalink)  
Old 26-10-2007, 11:46
flesso's Avatar
Premium Member
 
Join Date: Mar 2007
Location: 127.0.0.1
Posts: 1,137
Send a message via MSN to flesso Send a message via Skype™ to flesso
Default

Quote:
Originally Posted by desperateboy View Post
I have a snipit of javaScript running right under the <body> tag. The script works great... but in IE the script shows up as a blank line at the top of my document and is pushing my page down about 20 pixels... I tried a few CSS tricks but its not fixing the problem... Anyone know how to fix this.
The script should be contained within the script tags and place within the 'head' block.
__________________
Regards,
Josh Hold

eUKhost Blog: Over 1000 Computer Related Articles to Sink Your Teeth Into!

Super Moderator

I'm only a moderator, and do not work for eUKhost in any way. Opinions expressed by me are mine only, and do not reflect those of either eUKhost or any company that may be listed above.
Reply With Quote
  #3 (permalink)  
Old 26-10-2007, 12:10
jc8654's Avatar
Moderator
 
Join Date: May 2007
Location: Manchester, United Kingdom
Posts: 1,119
Send a message via MSN to jc8654
Default

As Josh has said, the script goes into the head block. You then just call it when you want to use it in the body tag.
__________________
Jonathan Crass
Joint Partner in Checker Design

North East Website design
UK based monitoring
Cheap UK Web Hosting

Save Jodrell Bank: www.savejodrellbank.org.uk

eUKhost Forum Moderator
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 11:44.

 

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by Web Hosting 3.1.0
Copyright © 2001-2008, eUKhost.com. All rights reserved.

 
Site Map

knowledgebase articles

popular blog categories