

Skrypt (zalaczany w pliku scripts.js):
function showTip(strArg) { newLayer = document.createElement("SPAN"); var layerText = document.createTextNode(strArg); newLayer.appendChild(layerText); document.body.appendChild(newLayer); newLayer.style.position = "relative"; newLayer.style.top = 10+'px'; newLayer.style.left = 10+'px'; newLayer.style.zIndex = 5; }
Strona:
// index.htm <html> <head> </head> <frameset cols="25%,*%"> <frame scrolling="auto" name="lewa" src="lewa.htm"> <frame scrolling="yes" name="prawa" src="prawa.htm"> </frameset> </html> // lewa.htm <html> <body> </body> </html> // prawa.htm <html> <frameset rows="*%,25%"> <frame name="gora" src="gora.htm"> <frame name="dol" src="dol.htm"> </html> // gora.htm <html> <body> </body> </html> // dol.htm <html> <body> </body> </html>
To sa oczywiscie surowe ramki, w ktorych tylko testowo umieszczalem jakis tekst. Najlepiej problem widac w gora.htm bo tam sa te brake'i za linkiem i przez nie ten tooltip mi "ucieka". Jesli ktos wie jak rozwiazc taki problem z pozycjonowaniem (moze jakos obliczyc wartosc gdyby zastosowac absolute albo jakos "ominac" te <br>) to bede bardzo wdzieczny.
Aha... niestety nie wchodzi w gre ustawienie innych elementow na stronie w warstwach bo ja tylko dorabiam skrypt do juz istniejacej strony i nie moge w niej nic zmieniac
