Kod
var content=new Array()
content[0]='cos'
content[1]='cos2'
content[2]='cos3'
function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers){
appear()
setTimeout("window.onresize=regenerate",450)
}
}
function changetext(co, whichcontent){
if (document.all||document.getElementById){
cross_el=document.getElementById? document.getElementById("co"):document.all.co
cross_el.innerHTML='<font color="black">'+whichcontent+'</span>'
}
else if (document.layers){
document.d1.document.d2.document.write('<font color="black">'+whichcontent+'</span>')
document.d1.document.d2.document.close()
}
}
function appear(){
document.d1.visibility='show'
}
window.onload=regenerate2
content[0]='cos'
content[1]='cos2'
content[2]='cos3'
function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers){
appear()
setTimeout("window.onresize=regenerate",450)
}
}
function changetext(co, whichcontent){
if (document.all||document.getElementById){
cross_el=document.getElementById? document.getElementById("co"):document.all.co
cross_el.innerHTML='<font color="black">'+whichcontent+'</span>'
}
else if (document.layers){
document.d1.document.d2.document.write('<font color="black">'+whichcontent+'</span>')
document.d1.document.d2.document.close()
}
}
function appear(){
document.d1.visibility='show'
}
window.onload=regenerate2
I nie wiem czemu nie chce działać :/
a oto przykład wywołania:
Kod
<table width="449" border="1" bordercolor="#000000" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="50%">
<div id="scriptmenu" style="line-height:20px">
<P align="center" onMouseover="changetext(descriptions1, content[0]);">cosik tam</P>
<P align="center" onMouseover="changetext(descriptions1, content[1]);">cosik tam2</P>
<P align="center" onMouseover="changetext(descriptions1, content[2]);">cosik tam3</P>
</div>
</td>
<td width="50%" valign="middle" align="center">
<div id="descriptions1"> </div>
<tr>
<td width="50%">
<div id="scriptmenu" style="line-height:20px">
<P align="center" onMouseover="changetext(descriptions1, content[0]);">cosik tam</P>
<P align="center" onMouseover="changetext(descriptions1, content[1]);">cosik tam2</P>
<P align="center" onMouseover="changetext(descriptions1, content[2]);">cosik tam3</P>
</div>
</td>
<td width="50%" valign="middle" align="center">
<div id="descriptions1"> </div>