google+javascriptbanktwitter@js_bankfacebook@jsbankrss@jsbank






9 Funniest JavaScript effets L'Internet devient de plus en plus important, nous pouvons l'utiliser pour travailler, apprendre, pour se divertir ... jeux en ligne, Pour rechercher, écouter et télécharger les chansons préférées, des vidéos, des films, ...


Gratuit iPage hébergement Web pour la première année MOMENT



Si vous êtes toujours à la recherche d'un fournisseur d'hébergement Web fiable avec des tarifs abordables, pourquoi vous ne prenez pas un peu de temps pour essayer iPage, seulement avec $1.89/month, inclus $500+ Crédits supplémentaires gratuites pour le paiement de 24 mois ($45)?

Plus de 1.000.000 de clients + existisng peuvent pas avoir tort, vraiment vous n'êtes pas aussi! Plus important encore, lorsque vous enregistrez l'hébergement web à iPage grâce à notre lien, nous allons être heureux de renvoyer un plein remboursement. C'est génial! Vous devriez essayer iPage hébergement web GRATUITEMENT maintenant! Et contactez-nous pour tout ce que vous devez savoir sur iPage.
Essayez iPage GRATUIT première année MOMENT

7. Unclosable Window

Yeah, you should recheck your mind carefully before run this script, maybe it will not be funny; and you have to enable popup for this damn script, lol.
<html>

<head>
<title>Unclosable Window</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="copyright" content="JavaScriptBank.com" />
<script language=JavaScript>
/*
Source of MainPart: Stefan Münz, Selfhtml 7.0, tecb.htm
*/

activ = window.setInterval("Farbe()",100);
i = 0, farbe = 1;
function Farbe() {

if(farbe==1) {
document.bgColor="FFFF00"; farbe=2; }
else {
document.bgColor="FF0000"; farbe=1; }
i = i + 1;

//if you don't want to freeze the browser uncommend the next two lines
//if(i >= 50)
//window.clearInterval(activ);
}

function erneut(){
window.open(self.location,'');
}
window.onload = erneut;
</script>
</head>
<body>
<h1>Unclosable Window</h1>
</body>
</html

8. Shaking the browser window for a while

Change the dimension of your browser window to Normal mode, maybe a half of the screen resolution is best; then run the code below by pasting it into the address bar and codessing the Enter key.
javascript:function Shw(n) {if (self.moveBy) {for (i = 35; i > 0; i--) {for (j = n; j > 0; j--) {self.moveBy(1,i);self.moveBy(i,0);self.moveBy(0,-i);self.moveBy(-i,0); } } }} Shw(6)


9. Love Tester

Love Tester
A small JavaScript to test the love compatibility' between two people. I & this script are not responsible for any broken relationship you tried, lol.
<html>

<head>
<title>Love Tester</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="distribution" content="Global" />
<meta name="copyright" content="JavaScriptBank.com" />
</head>
<body>
<center>
<h1>Love Tester</h1>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function calc() {

first = document.loveform.name1.value.toUpperCase();
firstlength = document.loveform.name1.value.length;
second = document.loveform.name2.value.toUpperCase();
secondlength = document.loveform.name2.value.length;
var LoveCount=0;

for (Count=0; Count < firstlength; Count++) {
letter1=first.substring(Count,Count+1);
if (letter1=='L') LoveCount+=2;
if (letter1=='O') LoveCount+=2;
if (letter1=='V') LoveCount+=2;
if (letter1=='E') LoveCount+=2;
if (letter1=='Y') LoveCount+=3;
if (letter1=='O') LoveCount+=1;
if (letter1=='U') LoveCount+=3;
}

for (Count=0; Count < secondlength; Count++) {
letter2=second.substring(Count,Count+1);
if (letter2=='L') LoveCount+=2;
if (letter2=='O') LoveCount+=2;
if (letter2=='V') LoveCount+=2;
if (letter2=='E') LoveCount+=2;
if (letter2=='Y') LoveCount+=3;
if (letter2=='O') LoveCount+=1;
if (letter2=='U') LoveCount+=3;
}

amount=0;
if (LoveCount> 0) amount= 5-((firstlength+secondlength)/2)
if (LoveCount> 2) amount= 10-((firstlength+secondlength)/2)
if (LoveCount> 4) amount= 20-((firstlength+secondlength)/2)
if (LoveCount> 6) amount= 30-((firstlength+secondlength)/2)
if (LoveCount> 8) amount= 40-((firstlength+secondlength)/2)
if (LoveCount>10) amount= 50-((firstlength+secondlength)/2)
if (LoveCount>12) amount= 60-((firstlength+secondlength)/2)
if (LoveCount>14) amount= 70-((firstlength+secondlength)/2)
if (LoveCount>16) amount= 80-((firstlength+secondlength)/2)
if (LoveCount>18) amount= 90-((firstlength+secondlength)/2)
if (LoveCount>20) amount=100-((firstlength+secondlength)/2)
if (LoveCount>22) amount=110-((firstlength+secondlength)/2)

if (firstlength==0 || secondlength==0) amount= "Err";
if (amount < 0) amount= 0;
if (amount >99) amount=99;

document.loveform.output.value=amount+"%";
}
// End -->
</script>

<form name=loveform>

<input value="Bill Clinton" name="name1" type="text" size="20"> +
<input value="Monica Lewinsky" name="name2" type="text" size="20"> =
<input value="" name="output" type="text" size="6">
<br>
<br>
<input value="Calculate!" name="calculate" type="button" value="calculate"
onclick="calcundefined)">
</form>
</center>
</body>
</html

Simple & Funny Games by JavaScript

Simple & Funny Games by JavaScript
In the end of this list, maybe this is not a script, I just want to list some resources that you can play some JavaScript games for relaxing. Certainly, the games made by JavaScript will be simple but they're not boring any; they're really games that you can find a little of fun.
- Game Scripts
- 25 Amazing JavaScript Games
- JavaScript Gaming
- Free JavaScript Games Download
- Free JavaScript Games

Conclusion

Some JavaScript codes can be executed in the address bar of browser immediately, others must be used as a HTML file for affecting. But I hope you'll like this post and find some funny things; if you know anymore, please let me know.


Auteur

Phong Thai Phong Thai is a Web Developer, Web Coder for 20 years with PHP, JavaScript, CSS. He is the creator of JavaScriptBank.com - provide thousands of free JavaScript code examples, web development tips and tricks, helpful blogging guides.

Follow him on twitter@js_bank or connect with him on facebook@jsbank if you want. His websites for your knowledge: javascriptON.com, inOneSec.com, www.gomymobi.com

iPhoneKer.com
Save up to 630$ when buy new iPhone 15

GateIO.gomymobi.com
Free Airdrops to Claim, Share Up to $150,000 per Project

https://tooly.win
Open tool hub for free to use by any one for every one with hundreds of tools

chatGPTaz.com, chatGPT4.win, chatGPT2.fun, re-chatGPT.com
Talk to ChatGPT by your mother language

Dall-E-OpenAI.com
Generate creative images automatically with AI

AIVideo-App.com
Render creative video automatically with AI

JavaScript par jour


Google Safe Browsing McAfee SiteAdvisor Norton SafeWeb Dr.Web