Ahoj, chcem sa spytat mam napr. takyto script :
<script language="JavaScript">
<!-- Begin
text = "Vytajte na mojej stranke!";
word = text.split('.');
i = -1;
j = 0;
start = 0;
scount = 0;
function checkIt() {
with(document.all.anima) {
if(innerText.charAt(innerText.length-1) == "_") {
innerText = innerText.substring(0, innerText.length - 1);
return true;
}
else {
innerText = innerText + "_";
return false;
}
}
}
function blinkfor(count, timing) {
with(document.all.anima) {
if(start < count) {
if(checkIt()) {
start++;
}
mistake = 'blinkfor('+count+','+timing+')';
setTimeout('eval(mistake)', timing);
}
else {
start = 0;
i++;
call_It();
}
}
}
function mispell(offset,correction) {
with(document.all.anima) {
if(scount < offset) {
if(!checkIt()) {
innerText = innerText.substring(0, innerText.length-2) + "_";
scount++;
}
mistake = 'mispell(' + offset + ', "' + correction + '")';
setTimeout("eval(mistake)", 150);
}
else {
if(correction == '' && scount == offset ) {
i = i - offset;
scount++;
}
if(offset > 0) {
if(checkIt()) {
innerText += correction.charAt(correction.length - offset) + "_";
offset--;
}
mistake = 'mispell(' + offset + ',"' + correction + '")';
setTimeout("eval(mistake)", 150);
}
else {
scount = 0;
j++;
innerText = innerText.substring(0, innerText.length - 1);
call_It();
}
}
}
}
function spellit(string) {
with(document.all.anima) {
if(i <= string.length) {
if(string.charAt(i) == '/') {
NumErrs = string.charAt(i + 1);
NewLets = string.substring(i + 2, i + NumErrs);
mispell(NumErrs,NewLets);
}
else if(i <= string.length - 1) {
i++;
innerText = string.substring(0,i) + "_";
mistake = 'spellit("' + string + '")';
setTimeout("eval(mistake)", 150);
}
else {
innerText = string.substring(0, i);
j++;
call_It();
}
}
}
}
function call_It() {
with(document.all) {
if(i == -1){
blinkfor(4, 150);
}
else if(j <= word.length - 1) {
spellit(anima.innerText + " " + word[j]);
}
else {
blinkfor(100,230);
}
}
}
if(document.all) {
call_It();
}
// End -->
</script>
<P align=center></P><DIV align=center> </DIV>
<body onLoad="Start();">
<script LANGUAGE="JavaScript">
<!--
var id, op = 100, step = -10;
function Start()
{
id = window.setInterval("Move()", 50);
}
function Stop()
{
window.clearInterval(id);
}
function Move()
{
op += step;
if (op < 0) {
op = 0;
step = -step;
};
if (op > 100) {
op = 100;
step = -step;
};
document.all.img1.filters.Alpha.opacity = op;
document.all.img2.filters.Alpha.opacity = 100-op;
}
// -->
</script>
<p align="center">
<img style="filter: Alpha(Opacity=100)" src="http://kelap.wz.cz//banner.gif" id="img1">
<br>
<br>
<img style="filter: Alpha(Opacity=100)" src="http://adresa/2.banner468x60.gif" id="img2">
</p>
<script>
<!--
Chcem aby mi išiel aj na napr. mozille na IE ide tak neviete niekto ako to optimalizujem. Dufam ze by by som musel prerobyt script. Vopred Dakujem
v mozille nefunguje document.all
http://developer.mozilla.org/cs/docs/Opravy_chyb_webmaster%C5%AF:Nefunk%C4%8Dn%C3%AD_prvky_str%C3%A1nky
dal jsem to nezkoumal
(ten odkaz se asi zalomi, tak z neho umaz ty mezery)