Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [JS] [HTML] Tworzenie Funkcji - Nie Działa
Max1992
post
Post #1





Grupa: Zarejestrowani
Postów: 66
Pomógł: 0
Dołączył: 4.05.2007

Ostrzeżenie: (0%)
-----


Mam Funkcję:

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


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>


Ten post edytował Max1992 28.09.2007, 13:37:32
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 20.08.2025 - 12:33