|
-
i dont know what im doing wrong
i dont know what im doing wrong with this code,
if you guys can help me please do.
the folowing code always gives the alert even when i dont need it.
var scrlWidth= document.getElementById("scrlArea");
var makeMeScrollable= document.getElementById("makeMeScrollable");
alert(scrlWidth.style.width); // it says: 2371px
alert(makeMeScrollable.offsetWidth+"px"); // it says: 601px
if ( scrlWidth.style.width < makeMeScrollable.offsetWidth+"px" )
{
alert("smaller")
}
Dave.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
|
Bookmarks