Forum Moderators: open
I have the phrase "lorem ipsum" in the CSS div id "cecil" on my page. It should be outside the control of any javascript. However, I am unable to see the phrase in IE (see it fine in Firefox and Mozilla), and I'm guessing it has something to do with my javascript (because when I delete the code/html for the javascript menu bar, I can see "lorem ipsum.") Otherwise, IE gives me an "error on page" message.
I'm a javascript dummy, so I really need any help you can provide!
thanks,
Courtney
The element cid is passed in to the function from this line:
expandcontent(initialtab[1], tabobjlinks[initialtab[0]-1])
when loading - it's trying to set up the initial tab.
There is a call to the Home tab in your tablist
onmouseover="expandcontent('sc1', this)
but there is no div with the id="sc1"
define a Home "sc1" div and you should be ok.
So now, the page has the sc1 div and no added semicolons.
Any other suggestions?
thank you,
Courtney
I get this error:
Line 73, Char: 1
error: object required
code: 0
and here is the javascript on line 73:
document.getElementById(cid).style.display="block"
here is the block of javascript surrounding line 73:
function expandcontent(cid, aobject){
if (disabletablinks==1)
aobject.onclick=new Function("return false")
if (document.getElementById){
highlighttab(aobject)
if (turntosingle==0){
if (previoustab!="")
document.getElementById(previoustab).style.display="none"
document.getElementById(cid).style.display="block"
previoustab=cid
}
}
}
any idea on what's wrong with line 73?