473,396 Members | 1,933 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Javescript error in IE Explorer 7

function alignFI() {
var height, width;
if (document.all)
height = document.body.offsetHeight, width = document.body.offsetWidth;
else // handles non IE
height = window.innerHeight, width = window.innerWidth;
FeaturedItem.style.left = Math.max(500, parseInt((width - 1023)/2) + 500);
if () {
FeaturedItem.style.visibility = "visible";
}
}
Jul 12 '07 #1
3 1575
epots9
1,351 Expert 1GB
function alignFI() {
var height, width;
if (document.all)
height = document.body.offsetHeight, width = document.body.offsetWidth;
else // handles non IE
height = window.innerHeight, width = window.innerWidth;
FeaturedItem.style.left = Math.max(500, parseInt((width - 1023)/2) + 500);
if () {
FeaturedItem.style.visibility = "visible";
}
}
what is the error message(s) u get when u run that? cuz i'm thinking that empty if statement could cause some trouble
Jul 12 '07 #2
syntax error
Line 23
Jul 12 '07 #3
epots9
1,351 Expert 1GB
syntax error
Line 23
if line 23 is: if () {

if it is, u have to put a condition inside the brakets, that will give a result of true or false.
Jul 12 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Jason James | last post by:
Hi all, I have VS.Net professional installer, along with MSDE. I am having severe difficulty browsing the server explorer window. I can see the Data connections node in the tree and the...
6
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
6
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
9
by: Ben Dewey | last post by:
Project: ---------------------------- I am creating a HTTPS File Transfer App using ASP.NET and C#. I am utilizing ActiveDirectory and windows security to manage the permissions. Why reinvent...
2
by: CathieC | last post by:
I have a websote developed using visual studio 2005 beta , .net version 2 i deploy my application to a server and it is run from client computers. One of the users gets the error "Internet...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.