JavaScript – Reffffference https://ivan.reallusiondesign.com For my personal reference purposes Mon, 21 Sep 2015 19:32:21 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.5 106465655 Simple Text Sliding https://ivan.reallusiondesign.com/simple-text-sliding/ https://ivan.reallusiondesign.com/simple-text-sliding/#disqus_thread Tue, 25 Feb 2014 07:07:45 +0000 https://ivan.reallusiondesign.com/?p=296 This will slide the according div id.


function ani(){
    $('#text').animate(
        {'margin-left': '1000px'}, 
        10000, // duration
        function(){
            $('#text').css('margin-left','-100px');
            ani();
        });
     $("#text").hover(function(){
    $("#text").stop();
  });    
    $("#text").mouseout(function(){
    ani();
  });
    }
ani();

]]>
https://ivan.reallusiondesign.com/simple-text-sliding/feed/ 0 296
Simple JavaScript Calculator https://ivan.reallusiondesign.com/simple-javascript-calculator/ https://ivan.reallusiondesign.com/simple-javascript-calculator/#disqus_thread Tue, 24 Apr 2012 18:24:36 +0000 https://localhost/Reference/?p=49





















<html>
<form name="calculator">
<table border=4>
<tr>
<td>
<input type="text" name="text" size="18">
<br>
</td>
</tr>
<tr>
<td>
<input type="button" value="1" onclick="calculator.text.value += '1'">
<input type="button" value="2" onclick="calculator.text.value += '2'">
<input type="button" value="3" onclick="calculator.text.value += '3'">
<input type="button" value="+" onclick="calculator.text.value += ' + '">
<br>
<input type="button" value="4" onclick="calculator.text.value += '4'">
<input type="button" value="5" onclick="calculator.text.value += '5'">
<input type="button" value="6" onclick="calculator.text.value += '6'">
<input type="button" value="-" onclick="calculator.text.value += ' - '">
<br>
<input type="button" value="7" onclick="calculator.text.value += '7'">
<input type="button" value="8" onclick="calculator.text.value += '8'">
<input type="button" value="9" onclick="calculator.text.value += '9'">
<input type="button" value="*" onclick="calculator.text.value += ' * '">
<br>
<input type="button" value="c" onclick="calculator.text.value = ''">
<input type="button" value="0" onclick="calculator.text.value += '0'">
<input type="button" value="=" onclick="calculator.text.value = eval(calculator.text.value)">
<input type="button" value="/" onclick="calculator.text.value += ' / '">
<br>
</td>
</tr>
</table>
</form>
</html>
]]>
https://ivan.reallusiondesign.com/simple-javascript-calculator/feed/ 0 49