CharisKomos (Talk | contribs) |
CharisKomos (Talk | contribs) |
||
Line 65: | Line 65: | ||
myVar = setInterval(function(){ i += 1; scrollBy(0,10); console.log(i); if(i == 150) myStopFunction(); }, 2); | myVar = setInterval(function(){ i += 1; scrollBy(0,10); console.log(i); if(i == 150) myStopFunction(); }, 2); | ||
} | } | ||
+ | |||
+ | function scrollTillTop(){ | ||
+ | var j=0; | ||
+ | myVar = setInterval(function(){ i += 1; scrollBy(0,-10); console.log(i); if(i == 150) myStopFunction(); }, 2); | ||
+ | } | ||
+ | |||
function myStopFunction() { | function myStopFunction() { | ||
clearInterval(myVar); | clearInterval(myVar); | ||
Line 199: | Line 205: | ||
<th style='border:none; background-color: transparent; width:40%;'></th> | <th style='border:none; background-color: transparent; width:40%;'></th> | ||
<th style='border:none; background-color: transparent; width:60%;'> | <th style='border:none; background-color: transparent; width:60%;'> | ||
− | + | <img style='position:relative; float:right; right:200px' width='80px' height='80px' src='https://cldup.com/t5cOYkVIXO.png' onclick='scrollTillTop()' onmouseover="$(this.id).css( 'cursor', 'pointer' );" /> | |
− | <img style='position:relative; float:right; right:200px' width='80px' height='80px' src='https://cldup.com/t5cOYkVIXO.png' / | + | |
− | + | ||
</th> | </th> | ||
</tr> | </tr> |
Revision as of 13:44, 12 August 2017