Obsah fóra
PravidláRegistrovaťPrihlásenie




Odpovedať na tému [ Príspevkov: 25 ] 
AutorSpráva
Offline

Užívateľ
Užívateľ
Sneh JS

Registrovaný: 20.03.08
Prihlásený: 08.03.17
Príspevky: 596
Témy: 149
Bydlisko: Houston, Texas
Príspevok NapísalOffline : 18.11.2008 13:49

Chcel by som na stránku sneženie ale mam probelém.

na nete som našiel ten kód

Kód:
// Set the number of snowflakes (more than 30 - 40 not recommended)
var snowmax=45

// Set the colors for the snow. Add as many colors as you like
var snowcolor=new Array("#aaaacc","#ddddFF","#ccccDD")

// Set the fonts, that create the snowflakes. Add as many fonts as you like
var snowtype=new Array("Arial Black","Arial Narrow","Times","Comic Sans MS")

// Set the letter that creates your snowflake (recommended:*)
var snowletter="*"

// Set the speed of sinking (recommended values range from 0.3 to 2)
var sinkspeed=0.6

// Set the maximal-size of your snowflaxes
var snowmaxsize=26

// Set the minimal-size of your snowflaxes
var snowminsize=8

// Set the snowing-zone
// Set 1 for all-over-snowing, set 2 for left-side-snowing
// Set 3 for center-snowing, set 4 for right-side-snowing
var snowingzone=1

///////////////////////////////////////////////////////////////////////////
// CONFIGURATION ENDS HERE
///////////////////////////////////////////////////////////////////////////


// Do not edit below this line
var snow=new Array()
var marginbottom
var marginright
var timer
var i_snow=0
var x_mv=new Array();
var crds=new Array();
var lftrght=new Array();
var browserinfos=navigator.userAgent
var ie5=document.all&&document.getElementById&&!browserinfos.match(/Opera/)
var ns6=document.getElementById&&!document.all
var opera=browserinfos.match(/Opera/)
var browserok=ie5||ns6||opera

function randommaker(range) {     
   rand=Math.floor(range*Math.random())
    return rand
}

function initsnow() {
   if (ie5 || opera) {
      marginbottom = document.body.clientHeight
      marginright = document.body.clientWidth
   }
   else if (ns6) {
      marginbottom = window.innerHeight
      marginright = window.innerWidth
   }
   var snowsizerange=snowmaxsize-snowminsize
   for (i=0;i<=snowmax;i++) {
      crds[i] = 0;                     
       lftrght[i] = Math.random()*15;         
       x_mv[i] = 0.03 + Math.random()/10;
      snow[i]=document.getElementById("s"+i)
      snow[i].style.fontFamily=snowtype[randommaker(snowtype.length)]
      snow[i].size=randommaker(snowsizerange)+snowminsize
      snow[i].style.fontSize=snow[i].size
      snow[i].style.color=snowcolor[randommaker(snowcolor.length)]
      snow[i].sink=sinkspeed*snow[i].size/5
      if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)}
      if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size)}
      if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4}
      if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2}
      snow[i].posy=randommaker(6*marginbottom-marginbottom-6*snow[i].size)
      snow[i].style.left=snow[i].posx
      snow[i].style.top=snow[i].posy
   }
   movesnow()
}

function movesnow() {
   for (i=0;i<=snowmax;i++) {
      crds[i] += x_mv[i];
      snow[i].posy+=snow[i].sink
      snow[i].style.left=snow[i].posx+lftrght[i]*Math.sin(crds[i]);
      snow[i].style.top=snow[i].posy
     
      if (snow[i].posy>=marginbottom-6*snow[i].size || parseInt(snow[i].style.left)>(marginright-3*lftrght[i])){
         if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)}
         if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size)}
         if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4}
         if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2}
         snow[i].posy=0
      }
   }
   var timer=setTimeout("movesnow()",50)
}

for (i=0;i<=snowmax;i++) {
   document.write("<span id='s"+i+"' style='position:absolute;top:-"+snowmaxsize+"'>"+snowletter+"</span>")
}
if (browserok) {
   window.onload=initsnow
}


ale akosi mi to nefunguje

Kód:
http://www.miso250593.yw.sk


Offline

Užívateľ
Užívateľ
Sneh JS

Registrovaný: 30.06.07
Prihlásený: 24.07.12
Príspevky: 530
Témy: 85
Bydlisko: košice
Príspevok NapísalOffline : 18.11.2008 14:38

tu mas ;)
Kód:
// ----- Snow -----------

var snowmax = 8;
var useimages = 1;
var usepng = 1;
var hidesnowtime = 0;
var snowdistance = "window";
var snowsrc = "vlocka.gif";
var snowcolor = new Array("#aaaacc","#ddddFF","#ccccDD");
var snowtype = new Array("Arial Black","Arial Narrow","Times","Comic Sans MS");
var snowletter = "*";
var sinkspeed = 0.5;
var snowmaxsize = 24;
var snowminsize = 10;
var snowingzone = (!window.location.hostname.match(/forums.apexdc.net/)) ? 1 : 1;

// ---- no config below -----

var snow = new Array();
var marginbottom;
var marginright;
var i_snow = 0;
var x_mv = new Array();
var crds = new Array();
var lftrght = new Array();
var browserinfos = navigator.userAgent;
var ie5 = document.all && document.getElementById && !browserinfos.match(/Opera/);
var ns6 = document.getElementById && !document.all;
var opera = browserinfos.match(/Opera/); 
var browserok = (ie5 || ns6 || opera);

function randommaker(range) {      
   rand = Math.floor(range * Math.random());
   return rand;
}

function compattest() {
   return (document.compatMode && document.compatMode != "BackCompat") ? document.documentElement : document.body;
}

function initsnow() {
   if (snowdistance == "window") {
      if (opera) {
         marginbottom = document.body.clientHeight;
         marginright = document.body.clientWidth - 10;
      } else if (ie5) {
         marginbottom = compattest().clientHeight;
         marginright = compattest().clientWidth - 10;
      } else if (ns6) {
         marginbottom = window.innerHeight;
         marginright = window.innerWidth - 10;
      }
   } else if (snowdistance == "page") {
      marginbottom = (ie5 && !opera) ? compattest().scrollHeight : compattest().offsetHeight;
      marginright = ns6 ? window.innerWidth - 10 : compattest().clientWidth - 10;
   }
   var snowsizerange = snowmaxsize - snowminsize;
   for (i = 0; i <= snowmax; i++) {
      crds[i] = 0;                     
      lftrght[i] = Math.random() * 15;         
      x_mv[i] = 0.03 + Math.random() / 10;
      snow[i] = document.getElementById("s"+i);
      snow[i].size = randommaker(snowsizerange) + snowminsize;
      snow[i].sink = sinkspeed * snow[i].size / 5;
      if(useimages != 1) {
         snow[i].style.fontSize = snow[i].size + 'px';
         snow[i].style.color = snowcolor[randommaker(snowcolor.length)];
         snow[i].style.fontFamily = snowtype[randommaker(snowtype.length)];
      }
      if (snowingzone == 1) {snow[i].posx = randommaker(marginright-snow[i].size);}
      if (snowingzone == 2) {snow[i].posx = randommaker(marginright / 2 - snow[i].size);}
      if (snowingzone == 3) {snow[i].posx = randommaker(marginright / 2 - snow[i].size) + marginright / 4;}
      if (snowingzone == 4) {snow[i].posx = randommaker(marginright / 2 - snow[i].size) + marginright / 2;}
      snow[i].posy = randommaker(2 * marginbottom - marginbottom - 2 * snow[i].size);
      snow[i].style.left = snow[i].posx  + 'px';
      snow[i].style.top = snow[i].posy  + 'px';
   }
   movesnow();
}

function movesnow() {
   if (snowdistance == "window") {
      if (opera) {
         marginbottom = document.body.clientHeight;
         marginright = document.body.clientWidth - 10;
      } else if (ie5) {
         marginbottom = compattest().clientHeight;
         marginright = compattest().clientWidth - 10;
      } else if (ns6) {
         marginbottom = window.innerHeight;
         marginright = window.innerWidth - 10;
      }
   } else if (snowdistance == "page") {
      marginbottom = (ie5 && !opera) ? compattest().scrollHeight : compattest().offsetHeight;
      marginright = ns6 ? window.innerWidth - 10 : compattest().clientWidth - 10;
   }
   for (i = 0; i <= snowmax; i++) {
      crds[i] += x_mv[i];
      snow[i].posy += snow[i].sink;
      snow[i].style.left = (snow[i].posx + lftrght[i] * Math.sin(crds[i])) + 'px';
      snow[i].style.top = snow[i].posy + 'px';
      
      if (snow[i].posy >= marginbottom - 2 * snow[i].size || parseInt(snow[i].style.left) > (marginright - 3 * lftrght[i])) {
         if (snowingzone == 1) {snow[i].posx = randommaker(marginright - snow[i].size);}
         if (snowingzone == 2) {snow[i].posx = randommaker(marginright / 2 - snow[i].size);}
         if (snowingzone == 3) {snow[i].posx = randommaker(marginright / 2 - snow[i].size) + marginright /4;}
         if (snowingzone == 4) {snow[i].posx = randommaker(marginright / 2 - snow[i].size) + marginright / 2;}
         snow[i].posy = 0;
      }
   }
   timer = setTimeout("movesnow()", 50);
}

function hidesnow(){
   if (window.timer) clearTimeout(timer)
   for (i = 0; i <= snowmax; i++) snow[i].style.visibility="hidden";
}

if (browserok) {
   for (i = 0; i <= snowmax; i++) {
      if (useimages == 1) {
         if (ie5 && usepng == 1) {
            var pngfix = "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true', src='" + snowsrc + "'); _padding-top:100%;";
         } else {
            var pngfix = "";
         }
         document.write("<div id='s" + i + "' style='position: absolute; z-index: " + i  + "; top:-" + snowmaxsize + ";'><img class='emote' style='" + pngfix + "' src=\"" + snowsrc + "\"  border=\"0\"></div>");
      } else {
         document.write("<span id='s" + i + "' style='position:absolute;top:-" + snowmaxsize + "'>" + snowletter + "</span>");
      }
   }
   window.onload = initsnow();
   
   if (hidesnowtime > 0)
         setTimeout("hidesnow()", hidesnowtime*1000);
}

// ----- End -----------


Offline

Užívateľ
Užívateľ
Sneh JS

Registrovaný: 20.03.08
Prihlásený: 08.03.17
Príspevky: 596
Témy: 149
Bydlisko: Houston, Texas
Príspevok Napísal autor témyOffline : 18.11.2008 15:17

takže nejak som si to upravil ale stále mam problém zo zobrazovaním



v FF a IE mi to zobrazuje len vo šírke okna a v opere len hore
Kód:
// ----- Snow -----------

var snowmax = 30;
var useimages = 0;
var usepng = 0;
var hidesnowtime = 0;
var snowdistance = "window";
var snowsrc = "../images/vlocka.png";
var snowcolor = new Array("#aaaacc","#ddddFF","#ccccDD");
var snowtype = new Array("Arial Black","Arial Narrow","Times","Comic Sans MS");
var snowletter = "*";
var sinkspeed = 0.5;
var snowmaxsize = 18;
var snowminsize = 8;
var snowingzone = 1;

// ---- no config below -----

var snow = new Array();
var marginbottom;
var marginright;
var i_snow = 0;
var x_mv = new Array();
var crds = new Array();
var lftrght = new Array();
var browserinfos = navigator.userAgent;
var ie5 = document.all && document.getElementById && !browserinfos.match(/Opera/);
var ns6 = document.getElementById && !document.all;
var opera = browserinfos.match(/Opera/);
var browserok = (ie5 || ns6 || opera);

function randommaker(range) {     
   rand = Math.floor(range * Math.random());
   return rand;
}

function compattest() {
   return (document.compatMode && document.compatMode != "BackCompat") ? document.documentElement : document.body;
}

function initsnow() {
   if (snowdistance == "window") {
      if (opera) {
         marginbottom = document.body.clientHeight;
         marginright = document.body.clientWidth - 10;
      } else if (ie5) {
         marginbottom = compattest().clientHeight;
         marginright = compattest().clientWidth - 10;
      } else if (ns6) {
         marginbottom = window.innerHeight;
         marginright = window.innerWidth - 10;
      }
   } else if (snowdistance == "page") {
      marginbottom = (ie5 && !opera) ? compattest().scrollHeight : compattest().offsetHeight;
      marginright = ns6 ? window.innerWidth - 10 : compattest().clientWidth - 10;
   }
   var snowsizerange = snowmaxsize - snowminsize;
   for (i = 0; i <= snowmax; i++) {
      crds[i] = 0;                     
      lftrght[i] = Math.random() * 15;         
      x_mv[i] = 0.03 + Math.random() / 10;
      snow[i] = document.getElementById("s"+i);
      snow[i].size = randommaker(snowsizerange) + snowminsize;
      snow[i].sink = sinkspeed * snow[i].size / 5;
      if(useimages != 1) {
         snow[i].style.fontSize = snow[i].size + 'px';
         snow[i].style.color = snowcolor[randommaker(snowcolor.length)];
         snow[i].style.fontFamily = snowtype[randommaker(snowtype.length)];
      }
      if (snowingzone == 1) {snow[i].posx = randommaker(marginright-snow[i].size);}
      if (snowingzone == 2) {snow[i].posx = randommaker(marginright / 2 - snow[i].size);}
      if (snowingzone == 3) {snow[i].posx = randommaker(marginright / 2 - snow[i].size) + marginright / 4;}
      if (snowingzone == 4) {snow[i].posx = randommaker(marginright / 2 - snow[i].size) + marginright / 2;}
      snow[i].posy = randommaker(2 * marginbottom - marginbottom - 2 * snow[i].size);
      snow[i].style.left = snow[i].posx  + 'px';
      snow[i].style.top = snow[i].posy  + 'px';
   }
   movesnow();
}

function movesnow() {
   if (snowdistance == "window") {
      if (opera) {
         marginbottom = document.body.clientHeight;
         marginright = document.body.clientWidth - 10;
      } else if (ie5) {
         marginbottom = compattest().clientHeight;
         marginright = compattest().clientWidth - 10;
      } else if (ns6) {
         marginbottom = window.innerHeight;
         marginright = window.innerWidth - 10;
      }
   } else if (snowdistance == "page") {
      marginbottom = (ie5 && !opera) ? compattest().scrollHeight : compattest().offsetHeight;
      marginright = ns6 ? window.innerWidth - 10 : compattest().clientWidth - 10;
   }
   for (i = 0; i <= snowmax; i++) {
      crds[i] += x_mv[i];
      snow[i].posy += snow[i].sink;
      snow[i].style.left = (snow[i].posx + lftrght[i] * Math.sin(crds[i])) + 'px';
      snow[i].style.top = snow[i].posy + 'px';
     
      if (snow[i].posy >= marginbottom - 2 * snow[i].size || parseInt(snow[i].style.left) > (marginright - 3 * lftrght[i])) {
         if (snowingzone == 1) {snow[i].posx = randommaker(marginright - snow[i].size);}
         if (snowingzone == 2) {snow[i].posx = randommaker(marginright / 2 - snow[i].size);}
         if (snowingzone == 3) {snow[i].posx = randommaker(marginright / 2 - snow[i].size) + marginright /4;}
         if (snowingzone == 4) {snow[i].posx = randommaker(marginright / 2 - snow[i].size) + marginright / 2;}
         snow[i].posy = 0;
      }
   }
   timer = setTimeout("movesnow()", 80);
}

function hidesnow(){
   if (window.timer) clearTimeout(timer)
   for (i = 0; i <= snowmax; i++) snow[i].style.visibility="hidden";
}

if (browserok) {
   for (i = 0; i <= snowmax; i++) {
      if (useimages == 1) {
         if (ie5 && usepng == 1) {
            var pngfix = "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true', src='" + snowsrc + "'); _padding-top:100%;";
         } else {
            var pngfix = "";
         }
         document.write("<div id='s" + i + "' style='position: absolute; z-index: " + i  + "; top:-" + snowmaxsize + ";'><img class='emote' style='" + pngfix + "' src=\"" + snowsrc + "\"  border=\"0\"></div>");
      } else {
         document.write("<div id='s" + i + "' style='position: absolute; z-index: 1; top:-" + snowmaxsize + "'>" + snowletter + "</div>");
      }
   }
   window.onload = initsnow(100);
   
   if (hidesnowtime > 0)
         setTimeout("hidesnow()", hidesnowtime*1000);
}

// ----- End -----------



a ten problém bude v


Kód:
function initsnow() {
   if (snowdistance == "window") {
      if (opera) {
         marginbottom = document.body.clientHeight;
         marginright = document.body.clientWidth - 10;
      } else if (ie5) {
         marginbottom = compattest().clientHeight;
         marginright = compattest().clientWidth - 10;
      } else if (ns6) {
         marginbottom = window.innerHeight;
         marginright = window.innerWidth - 10;
      }
   } else if (snowdistance == "page") {
      marginbottom = (ie5 && !opera) ? compattest().scrollHeight : compattest().offsetHeight;
      marginright = ns6 ? window.innerWidth - 10 : compattest().clientWidth - 10;
   }
   var snowsizerange = snowmaxsize - snowminsize;
   for (i = 0; i <= snowmax; i++) {
      crds[i] = 0;                     
      lftrght[i] = Math.random() * 15;         
      x_mv[i] = 0.03 + Math.random() / 10;
      snow[i] = document.getElementById("s"+i);
      snow[i].size = randommaker(snowsizerange) + snowminsize;
      snow[i].sink = sinkspeed * snow[i].size / 5;
      if(useimages != 1) {
         snow[i].style.fontSize = snow[i].size + 'px';
         snow[i].style.color = snowcolor[randommaker(snowcolor.length)];
         snow[i].style.fontFamily = snowtype[randommaker(snowtype.length)];
      }
      if (snowingzone == 1) {snow[i].posx = randommaker(marginright-snow[i].size);}
      if (snowingzone == 2) {snow[i].posx = randommaker(marginright / 2 - snow[i].size);}
      if (snowingzone == 3) {snow[i].posx = randommaker(marginright / 2 - snow[i].size) + marginright / 4;}
      if (snowingzone == 4) {snow[i].posx = randommaker(marginright / 2 - snow[i].size) + marginright / 2;}
      snow[i].posy = randommaker(2 * marginbottom - marginbottom - 2 * snow[i].size);
      snow[i].style.left = snow[i].posx  + 'px';
      snow[i].style.top = snow[i].posy  + 'px';
   }
   movesnow();
}


Offline

Užívateľ
Užívateľ
Sneh JS

Registrovaný: 30.06.07
Prihlásený: 24.07.12
Príspevky: 530
Témy: 85
Bydlisko: košice
Príspevok NapísalOffline : 18.11.2008 16:04

no mne ide OK







_________________
PC1: Core2Duo E4300 @2.6GHZ, 4COREDUAL-SATA2, RAM Kingston 2GB 667mhz, ATI R3650 512MB DDR2, WD 320GB SATAII, Asus VW192S [19" LCD]
PC2: AMD Duron 2ghz, Asus A7s8x-mx, 768MB DDR, FX5200, 80GB IDE
Offline

Užívateľ
Užívateľ
Sneh JS

Registrovaný: 20.03.08
Prihlásený: 08.03.17
Príspevky: 596
Témy: 149
Bydlisko: Houston, Texas
Príspevok Napísal autor témyOffline : 18.11.2008 16:49

skus

http://www.miso250593.net63.net/news.php?page=1

padá ti to po celej stranke?


Offline

Užívateľ
Užívateľ
Sneh JS

Registrovaný: 30.06.07
Prihlásený: 24.07.12
Príspevky: 530
Témy: 85
Bydlisko: košice
Príspevok NapísalOffline : 18.11.2008 16:54

no nabehne mi stránka hostingu :D







_________________
PC1: Core2Duo E4300 @2.6GHZ, 4COREDUAL-SATA2, RAM Kingston 2GB 667mhz, ATI R3650 512MB DDR2, WD 320GB SATAII, Asus VW192S [19" LCD]
PC2: AMD Duron 2ghz, Asus A7s8x-mx, 768MB DDR, FX5200, 80GB IDE
Offline

Užívateľ
Užívateľ
Sneh JS

Registrovaný: 03.04.08
Prihlásený: 10.12.19
Príspevky: 4667
Témy: 37
Bydlisko: Trnava
Príspevok NapísalOffline : 18.11.2008 16:55

prave tri kontroluju stranku bude pristupna az za 2 hod..







_________________
Hmmm .... Hrošíček ... [Homer]
Offline

Užívateľ
Užívateľ
Sneh JS

Registrovaný: 20.03.08
Prihlásený: 08.03.17
Príspevky: 596
Témy: 149
Bydlisko: Houston, Texas
Príspevok Napísal autor témyOffline : 18.11.2008 17:24

neva tak skuste starsiu verziu

http://www.miso250593.yw.sk/


Offline

Užívateľ
Užívateľ
Sneh JS

Registrovaný: 30.06.07
Prihlásený: 24.07.12
Príspevky: 530
Témy: 85
Bydlisko: košice
Príspevok NapísalOffline : 18.11.2008 17:36

no ako tak pozeram nepada :shock:
ten original by mal fungovat ;)


Offline

Užívateľ
Užívateľ
Sneh JS

Registrovaný: 20.03.08
Prihlásený: 08.03.17
Príspevky: 596
Témy: 149
Bydlisko: Houston, Texas
Príspevok Napísal autor témyOffline : 18.11.2008 17:40

nie ale ten mi ide len okolo keď dam text a ked povolim obrazok tak ide hentak tiež len do polovice


Offline

Užívateľ
Užívateľ
Sneh JS

Registrovaný: 02.12.07
Prihlásený: 26.02.13
Príspevky: 1114
Témy: 49
Príspevok NapísalOffline : 18.11.2008 18:47

no neviem ci vam to pomoze, ale mne to pada vo FF a IE do polovice, ked scrollujem dalej nepada.. a v Opere vobec nepada..


Offline

Užívateľ
Užívateľ
Sneh JS

Registrovaný: 20.03.08
Prihlásený: 08.03.17
Príspevky: 596
Témy: 149
Bydlisko: Houston, Texas
Príspevok Napísal autor témyOffline : 18.11.2008 18:57

jj sak to je ten problém ktorý tu mám


Offline

Užívateľ
Užívateľ
Sneh JS

Registrovaný: 03.04.08
Prihlásený: 10.12.19
Príspevky: 4667
Témy: 37
Bydlisko: Trnava
Príspevok NapísalOffline : 18.11.2008 19:05

mozno ti ten script uzatvara nejaky objekt alebo je nastaveny ze ma snezit iba do 100% vysky stranky..







_________________
Hmmm .... Hrošíček ... [Homer]
Offline

Užívateľ
Užívateľ
Sneh JS

Registrovaný: 02.12.07
Prihlásený: 26.02.13
Príspevky: 1114
Témy: 49
Príspevok NapísalOffline : 18.11.2008 19:15

skus dat toto <script src='/includes/sneh.js'></script> do hlavicky a ne do body.. a mas tam dva krat <head> + 67 dalsich chyb takze bude chyba mozno tam niekde..


Offline

Užívateľ
Užívateľ
Sneh JS

Registrovaný: 20.03.08
Prihlásený: 08.03.17
Príspevky: 596
Témy: 149
Bydlisko: Houston, Texas
Príspevok Napísal autor témyOffline : 19.11.2008 11:22

a nejak to nepomohlo

http://www.miso250593.net63.net/news.php?page=1


Offline

Užívateľ
Užívateľ
Sneh JS

Registrovaný: 22.11.05
Prihlásený: 29.01.23
Príspevky: 712
Témy: 25
Bydlisko: SK-Martin
Príspevok NapísalOffline : 19.11.2008 13:15

Citácia:
function movesnow() {
if (snowdistance == "window") {
if (opera) {
marginbottom = document.body.clientHeight;
marginright = document.body.clientWidth - 10;
} else if (ie5) {
marginbottom = compattest().clientHeight;
marginright = compattest().clientWidth - 10;
} else if (ns6) {
marginbottom = window.innerHeight;
marginright = window.innerWidth - 10;
}
} else if (snowdistance == "page") {
marginbottom = (ie5 && !opera) ? compattest().scrollHeight : compattest().offsetHeight;
marginright = ns6 ? window.innerWidth - 10 : compattest().clientWidth - 10;
}
for (i = 0; i <= snowmax; i++) {
crds[i] += x_mv[i];
snow[i].posy += snow[i].sink;
snow[i].style.left = (snow[i].posx + lftrght[i] * Math.sin(crds[i])) + 'px';
snow[i].style.top = snow[i].posy + 'px';

if (snow[i].posy >= 2*marginbottom - 2 * snow[i].size || parseInt(snow[i].style.left) > (marginright - 3 * lftrght[i])) {
......


táto jednoduchá úprava(vyznačené červene) spôsobí sneženie aj pri scrollovaní dole, trochu nepríjemné môže byť, že ti kmitá scroller lišta, a neviem či to nespôsobí aj iné nepríjemnosti, nie som odborník na JS (dokonca sa v tom vôbec nevyznám, len som to skúsil takto)


Offline

Užívateľ
Užívateľ
Sneh JS

Registrovaný: 20.03.08
Prihlásený: 08.03.17
Príspevky: 596
Témy: 149
Bydlisko: Houston, Texas
Príspevok Napísal autor témyOffline : 19.11.2008 13:54

tá tvoja úprava spôsobila to že to padá už 2x dĺžku stránky ale i tak nie až po spodok a niesu vločky rovnomerne rozhodene


Offline

Užívateľ
Užívateľ
Sneh JS

Registrovaný: 30.06.07
Prihlásený: 24.07.12
Príspevky: 530
Témy: 85
Bydlisko: košice
Príspevok NapísalOffline : 19.11.2008 14:33

najprv si oprav chyby a potom skus ten stary kod







_________________
PC1: Core2Duo E4300 @2.6GHZ, 4COREDUAL-SATA2, RAM Kingston 2GB 667mhz, ATI R3650 512MB DDR2, WD 320GB SATAII, Asus VW192S [19" LCD]
PC2: AMD Duron 2ghz, Asus A7s8x-mx, 768MB DDR, FX5200, 80GB IDE
Offline

Užívateľ
Užívateľ
Sneh JS

Registrovaný: 20.03.08
Prihlásený: 08.03.17
Príspevky: 596
Témy: 149
Bydlisko: Houston, Texas
Príspevok Napísal autor témyOffline : 19.11.2008 14:36

aké chyby máš na mysli HTML?


Offline

Užívateľ
Užívateľ
Sneh JS

Registrovaný: 30.06.07
Prihlásený: 24.07.12
Príspevky: 530
Témy: 85
Bydlisko: košice
Príspevok NapísalOffline : 19.11.2008 14:37

ano
validator dava 122 chyb


Offline

Užívateľ
Užívateľ
Sneh JS

Registrovaný: 20.03.08
Prihlásený: 08.03.17
Príspevky: 596
Témy: 149
Bydlisko: Houston, Texas
Príspevok Napísal autor témyOffline : 19.11.2008 15:08

to nepomôže veď to sú také chyby že až

no a neviem ako ich mam opraviť

edit

no dačo som tam skúsil ale to čo mi ukazuje chyby pri tých linkoch tak to opraviť neviem


Offline

Užívateľ
Užívateľ
Sneh JS

Registrovaný: 03.04.08
Prihlásený: 10.12.19
Príspevky: 4667
Témy: 37
Bydlisko: Trnava
Príspevok NapísalOffline : 19.11.2008 19:24

posli lin k na validator ja som lenivy :) pozreme sa nato..







_________________
Hmmm .... Hrošíček ... [Homer]
Offline

Užívateľ
Užívateľ
Sneh JS

Registrovaný: 30.06.07
Prihlásený: 24.07.12
Príspevky: 530
Témy: 85
Bydlisko: košice
Príspevok NapísalOffline : 19.11.2008 21:39

http://validator.w3.org/check?uri=http% ... ne&group=0







_________________
PC1: Core2Duo E4300 @2.6GHZ, 4COREDUAL-SATA2, RAM Kingston 2GB 667mhz, ATI R3650 512MB DDR2, WD 320GB SATAII, Asus VW192S [19" LCD]
PC2: AMD Duron 2ghz, Asus A7s8x-mx, 768MB DDR, FX5200, 80GB IDE
Offline

Užívateľ
Užívateľ
Sneh JS

Registrovaný: 03.04.08
Prihlásený: 10.12.19
Príspevky: 4667
Témy: 37
Bydlisko: Trnava
Príspevok NapísalOffline : 19.11.2008 22:11

tych chybsa asi nezbavis ked nevies php ... a ten script by ti to nemalo ovplivnovat...







_________________
Hmmm .... Hrošíček ... [Homer]
Offline

Užívateľ
Užívateľ
Sneh JS

Registrovaný: 20.03.08
Prihlásený: 08.03.17
Príspevky: 596
Témy: 149
Bydlisko: Houston, Texas
Príspevok Napísal autor témyOffline : 20.11.2008 13:53

no to si myslim aj ja


tak?

ostatne chyby som opravil :D


Odpovedať na tému [ Príspevkov: 25 ] 


Podobné témy

 Témy  Odpovede  Zobrazenia  Posledný príspevok 
V tomto fóre nie sú ďalšie neprečítané témy. Joomla a sneh

v Redakčné systémy

5

1281

24.02.2010 21:39

pepete Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Sneh na fóre

v Správy pre vedenie fóra

25

2226

01.12.2005 9:34

JanoF Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Máte radi zimu a sneh ?

[ Choď na stránku:Choď na stránku: 1, 2 ]

v Krčma

46

2308

09.02.2010 16:07

winyx Zobrazenie posledných príspevkov

Táto téma je zamknutá, nemôžete posielať nové príspevky alebo odpovedať na staršie. The Sims 3 Ročné Obdobia - Nevidno sneh

v Počítačové hry

25

1440

20.11.2012 23:51

jtbs Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Ľudia už nebudú musieť odpratávať sneh z obecných chodníkov

v Život, životný štýl, móda, bývanie

8

461

14.04.2018 15:55

shiro Zobrazenie posledných príspevkov


Nemôžete zakladať nové témy v tomto fóre
Nemôžete odpovedať na témy v tomto fóre
Nemôžete upravovať svoje príspevky v tomto fóre
Nemôžete mazať svoje príspevky v tomto fóre

Skočiť na:  

Powered by phpBB Jarvis © 2005 - 2024 PCforum, webhosting by WebSupport, secured by GeoTrust, edited by JanoF
Ako väčšina webových stránok aj my používame cookies. Zotrvaním na webovej stránke súhlasíte, že ich môžeme používať.
Všeobecné podmienky, spracovanie osobných údajov a pravidlá fóra