i was going through a js file and land up on this statement
var dataobj=document.all? document.all.id_name : document.getElementById("id_name")
what does this means?
like ?
is a macro in c++ for compact if else statement. but here in js
what does it stands for?
function NewsScrollStart(){
dataobj=document.all? document.all.NewsDiv : document.getElementById("NewsDiv")
dataobj.style.top=topspace
setTimeout("HeightData()",( startdelay * 1000 ))
}
this was the actual function.