<div>
You can short URL’s on the site <a href="http://msurl.tk/" style="font-weight: bold;">MSURL.TK</a>.
</div>
<div>
</div>
Posts marked with "Posts" in posts
Stop playback in HTML5 audio using Javascript
Here is the code :
document.getElementById(‘audio’).currentTime = 0;//By ID
document.getElementsByTagName(‘audio’).currentTime = 0;//By Tag
It’s that simple. Just use currentTime = 0.
Jquery ExtAjax Plugin V 1.2: Submit forms to external files with preview using Jquery
The last version of Jquery ExtAjax plugin didn’t have preview feature. But in this version it have a preview feature.
The latest version is V 1.2
What’s New in this version
- Faster
- Preview feature.
What should I do after downloading.
<div>
<span style="color: #333333;"><span style="line-height: 16px;">After downloading upload "<b>extajax.js</b>", "<b>asdva.php</b>" to your server.</span></span>
</div>
<div>
<span style="color: #333333;"><span style="line-height: 16px;">Before you do this configure the place in <b>JS</b> file where <b>asdva.php</b> is located.</span></span>
</div>
<h4 style="text-align: left;">
<span style="color: #333333;"><span style="line-height: 16px;"> <b>How can I configure ?</b></span></span>
</h4>
<div>
<span style="color: #333333;"><span style="line-height: 16px;"><b> </b>Go to <b>extajax.js</b> file. Search for <b>var asdvafile </b>. Enter the location of the <b>asdva.php </b>if the file is not in the same folderas <b>extajax.js</b>.</span></span>
</div>
<div>
<span style="color: #333333;"><span style="line-height: 16px;"><a name='more'></a><br /></span></span>
</div>
<p>
<span style="color: #333333; font-family: inherit;"><span style="line-height: 16px;">Jquery Code :</span></span>
</p>
<blockquote class="tr_bq">
<p>
<span style="background-color: white; color: #333333; font-family: Courier, monospace, 'Courier New'; font-size: 13px; font-weight: bold; line-height: 16px;"><script></span><span style="background-color: white; color: #333333; font-family: Courier, monospace, 'Courier New'; font-size: 13px; font-weight: bold; line-height: 16px;"><br /></span><span style="background-color: white; color: #333333; font-family: Courier, monospace, 'Courier New'; font-size: 13px; font-weight: bold; line-height: 16px;">$("</span><span style="background-color: white; color: red; font-family: Courier, monospace, 'Courier New'; font-size: 13px; font-weight: bold; line-height: 16px;">#form</span><span style="background-color: white; color: #333333; font-family: Courier, monospace, 'Courier New'; font-size: 13px; font-weight: bold; line-height: 16px;">").submit(function(){</span><span style="background-color: white; color: #333333; font-family: Courier, monospace, 'Courier New'; font-size: 13px; font-weight: bold; line-height: 16px;">event.preventDefault();</span><span style="background-color: white; color: #333333; font-family: Courier, monospace, 'Courier New'; font-size: 13px; font-weight: bold; line-height: 16px;">$("</span><span style="background-color: white; color: red; font-family: Courier, monospace, 'Courier New'; font-size: 13px; font-weight: bold; line-height: 16px;">#form</span><span style="background-color: white; color: #333333; font-family: Courier, monospace, 'Courier New'; font-size: 13px; font-weight: bold; line-height: 16px;">").extajax({target:"</span><span style="background-color: white; font-family: Courier, monospace, 'Courier New'; font-size: 13px; font-weight: bold; line-height: 16px;"><span style="color: red;">#preview</span></span><span style="background-color: white; color: #333333; font-family: Courier, monospace, 'Courier New'; font-size: 13px; font-weight: bold; line-height: 16px;">"});</span><span style="background-color: white; color: #333333; font-family: Courier, monospace, 'Courier New'; font-size: 13px; font-weight: bold; line-height: 16px;"><br />});</span><span style="background-color: white; color: #333333; font-family: Courier, monospace, 'Courier New'; font-size: 13px; font-weight: bold; line-height: 16px;"><br /></span><span style="background-color: white; color: #333333; font-family: Courier, monospace, 'Courier New'; font-size: 13px; font-weight: bold; line-height: 16px;"></script></span>
</p>
</blockquote>
<p>
<span style="background-color: white; color: #333333; font-family: Courier, monospace, 'Courier New'; font-size: 13px; font-weight: bold; line-height: 16px;"><br /></span><span style="font-size: large;"><span style="border: 2px solid black;"><span style="color: white;"><span style="background-color: #6aa84f;"><a href="http://subins.tk/labs/extajax/index.html" >View Demo</a></span></span></span> <span style="background-color: #6aa84f; border: 2px solid black;"><span style="color: white;"><a href="https://drive.google.com/uc?export=download&id=0B2VjYaTkCpiQbTJtY1ZyNmFjZUk" >Download(ZIP)</a></span></span> <span style="background-color: #6aa84f; border: 2px solid black; color: white;"><a href="https://drive.google.com/uc?export=download&id=0B2VjYaTkCpiQcXRreFNxLXRCam8" >Download(Javascript file)</a></span></span></div> </div>
... [READ MORE]
Storing JSON object in HTML5 Local Storage : Stringify
var data = {name:’subin’,class:’8A’};
localStorage[‘info‘]=JSON.stringify(data);
Subins Games : A new Game site from Subins
Functions
- Commenting
- Score saving
- Play History
- Add your game
- Game stats
The best method to find client’s IP Address in PHP.
To get the real IP address use this method.
function getUserIpAddr(){
... [READ MORE]
if (!empty($_SERVER[‘HTTP_CLIENT_IP’])){
return $_SERVER[‘HTTP_CLIENT_IP’];
}else if (!empty($_SERVER[‘HTTP_X_FORWARDED_FOR’])){
$ite=explode(‘,’,$_SERVER[‘HTTP_X_FORWARDED_FOR’]); return str_replace(" ",",$ite[0]);
}else{
return $_SERVER[‘REMOTE_ADDR’];
}
} $cip=getUserIpAddr();
How to view or Download Google Drive files on your site
To View
https://drive.google.com/uc?export=view&id=fileid
... [READ MORE]
Finding Client’s IP address, Country, State, City using NetIP.de api in PHP
But you will not get the real IP address of the client. To get the real IP address You can use the method I used.
Also With this method you can also find the City, State, Country client’s in.
The code is pretty simple. With the help of NetIP.de it was pretty easy.
$response=@file_get_contents(‘http://www.netip.de’);if (empty($response)){throw new InvalidArgumentException("Error contacting Geo-IP-Server");}$patterns=array();$patterns["state"] = ‘#State/Region: (.*?)
... [READ MORE]
;$patterns["IP"] = ‘#IP: (.*?) #i’;$patterns["country"] = ‘#Country: (.*?) #i’;$patterns["city"] = ‘#City: (.*?)
$pattern){$ipInfo[$key] = preg_match($pattern,$response,$value) && !empty($value[1]) ? $value[1] : ‘not found’;} $uct=$ipInfo["state"];$uip=$ipInfo["IP"];$uci=$ipInfo["city"];$ipInfo=explode(‘-‘,$ipInfo["country"]);$ucs=$ipInfo[0];$uco=$ipInfo[1];
Vishnu – I will never forget you.
He may have died But he will always be in my heart.Vishnu Vijayan You will always be in my heart forever. I will not forget you.

He died in this cheerful Christmas which make my Christmas the worst. I was so sad but then I realised that some things will happen for a reason.
May GOD bless his soul.
Make Snowfall on your site/blog using Javascript
Note – This code is for websites. Code for blogger is below this code
<blockquote class="tr_bq">
<p>
<script><br /> //Configure below to change URL path to the snow image<br /> var snowsrc="http://subins.hp.af.cm/files/images/snow.gif"<br /> // Configure below to change number of snow to render<br /> var no = 20;<br /> // Configure whether snow should disappear after x seconds (0=never):<br /> var hidesnowtime = 0;<br /> // Configure how much snow should drop down before fading ("windowheight" or "pageheight")<br /> var snowdistance = "pageheight";<br />///////////Stop Config//////////////////////////////////<br /> var ie4up = (document.all) ? 1 : 0;<br /> var ns6up = (document.getElementById&&!document.all) ? 1 : 0;<br /><span class="Apple-tab-span" style="white-space: pre;"> </span>function iecompattest(){<br /><span class="Apple-tab-span" style="white-space: pre;"> </span>return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body<br /><span class="Apple-tab-span" style="white-space: pre;"> </span>}<br /> var dx, xp, yp; // coordinate and position variables<br /> var am, stx, sty; // amplitude and step variables<br /> var i, doc_width = 800, doc_height = 600;<br /> if (ns6up) {<br /> doc_width = self.innerWidth;<br /> doc_height = self.innerHeight;<br /> } else if (ie4up) {<br /> doc_width = iecompattest().clientWidth;<br /> doc_height = iecompattest().clientHeight;<br /> }<br /> dx = new Array();<br /> xp = new Array();<br /> yp = new Array();<br /> am = new Array();<br /> stx = new Array();<br /> sty = new Array();<br /> snowsrc=(snowsrc.indexOf("subins.hp.af.cm")!=-1)? "http://subins.hp.af.cm/files/images/snow.gif" : snowsrc<br /> for (i = 0; i < no; ++ i) { <br /> dx[i] = 0; // set coordinate variables<br /> xp[i] = Math.random()*(doc_width-50); // set position variables<br /> yp[i] = Math.random()*doc_height;<br /> am[i] = Math.random()*20; // set amplitude variables<br /> stx[i] = 0.02 + Math.random()/10; // set step variables<br /> sty[i] = 0.7 + Math.random(); // set step variables<br /><span class="Apple-tab-span" style="white-space: pre;"> </span>if (ie4up||ns6up) {<br /> if (i == 0) {<br /> document.write("<div id="dot"+ i +"" style="POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;"><a href="http://sag-3.blogspot.com/2012/12/snowfall-using-js.html"><img src='"+snowsrc+"‘ border="0″></a></div>");<br /> } else {<br /> document.write("<div id="dot"+ i +"" style="POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;"><img src='"+snowsrc+"‘ border="0″></div>");<br /> }<br /> }<br /> }<br /> function snowIE_NS6() { // IE and NS6 main animation function<br /> doc_width = ns6up?window.innerWidth-10 : iecompattest().clientWidth-10;<br /><span class="Apple-tab-span" style="white-space: pre;"> </span>doc_height=(window.innerHeight && snowdistance=="windowheight")? window.innerHeight : (ie4up && snowdistance=="windowheight")? iecompattest().clientHeight : (ie4up && !window.opera && snowdistance=="pageheight")? iecompattest().scrollHeight : iecompattest().offsetHeight;<br /> for (i = 0; i < no; ++ i) { // iterate for every dot<br /> yp[i] += sty[i];<br /> if (yp[i] > doc_height-50) {<br /> xp[i] = Math.random()*(doc_width-am[i]-30);<br /> yp[i] = 0;<br /> stx[i] = 0.02 + Math.random()/10;<br /> sty[i] = 0.7 + Math.random();<br /> }<br /> dx[i] += stx[i];<br /> document.getElementById("dot"+i).style.top=yp[i]+"px";<br /> document.getElementById("dot"+i).style.left=xp[i] + am[i]*Math.sin(dx[i])+"px"; <br /> }<br /> snowtimer=setTimeout("snowIE_NS6()", 25);//Set Timeout<br /> }<br /><span class="Apple-tab-span" style="white-space: pre;"> </span>function hidesnow(){<br /><span class="Apple-tab-span" style="white-space: pre;"> </span>if (window.snowtimer) clearTimeout(snowtimer)<br /><span class="Apple-tab-span" style="white-space: pre;"> </span>for (i=0; i<no; i++) document.getElementById("dot"+i).style.visibility="hidden"<br /><span class="Apple-tab-span" style="white-space: pre;"> </span>}<span class="Apple-tab-span" style="white-space: pre;"> </span>if (ie4up||ns6up){<br /> snowIE_NS6();<br /><span class="Apple-tab-span" style="white-space: pre;"> </span>if (hidesnowtime>0)<br /><span class="Apple-tab-span" style="white-space: pre;"> </span>setTimeout("hidesnow()", hidesnowtime*1000)<br /><span class="Apple-tab-span" style="white-space: pre;"> </span>}<br /></script>
</p>
</blockquote>
Blogger Code
Go to Template -> Edit HTML
Paste this code after tag.

