Awesome JavaScript Tricks! ... Funny... පුදුම හිතෙන JS Tricks {MUST SEE}

j@naka_86

Well-known member
  • Mar 17, 2010
    2,116
    267
    83
    Awesome JavaScript Tricks! ... Funny... පුදුම හිතෙන JS Tricks {MUST SEE}

    Awesome JavaScript Tricks! ... Funny... පුදුම හිතෙන JS Tricks
    .


    මෙන්න JavaScript වලින් කරන්න පුළුවන් පුදුම හිතෙන Tricks ටිකක්. ඔයාලත් කරලා බලන්න. මේ ගැන සමහර අය දන්නවා ඇති නමුත් දන්නේ නැති අය කරලා බලන්න. කරන්නේ මෙහෙමයි.

    පළමුවෙන්ම මේ JavaScript Code එක Copy (Ctrl + C) කර ගන්න.

    ඊට පස්සේ කරන්න තියෙන්නේ Images ගොඩක් තියෙන Website එකක් Open කර ගන්න (වඩාත් හොදයි දැනට Open කර ගෙන ඉන්න Elakiri Site එකම, මොකද EK Site එකේ පොඩි පොඩි Images ගොඩක් තියනවානේ.....) .

    දැන් කළින් Copy කර ගත් ‍ JavaScript Code එක Open කර ගත් Page එකේ Address Bar එකේ Paste (Ctrl + V) කර Enter Key එක Press කරන්න.

    එච්චරයි කරන්න තියෙන්නේ, බලන්න Site එකේ Images වලට මොකද වෙන්නේ කියලා.
    නැවත Page එක පෙර තිබු තත්වයට ගැනීමට Page එක REFRESH (F5 Key)කරන්න.

    Script 01

    Code:
    javascript: R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.getElementsByTagName("img"); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+"px"; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',5); void(0);

    Script 02

    Code:
    javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.getElementsByTagName("img"); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=(Math.sin(R*1+i*x2+x3)*x1+x2)+"px"; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',50); void(0);

    Script 03

    Code:
    javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.getElementsByTagName("img"); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=(Math.tan(R*x1+i*x2+x3)*x4+x5)+"px"; DIS.top=(Math.sin(R*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',5); void(0);

    Script 04

    මෙහිදී Enter Key Press කර Mouse Move කර බලන්න.

    Code:
    javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.getElementsByTagName("div"); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+"px"; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',5); void(0);

    Script 05

    Code:
    javascript: R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=600; y4=400; x5=600; y5=400; DI=document.getElementsByTagName("img"); DIL=DI.length; function A(){for(i=0; i<DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+"px"; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',5); void(0);

    Script 06

    මෙම JavaScript Code එකෙන් වරහන් තුළ ඇති ඉලක්කම් වල එකතුව Alert එකක් මගින් පෙන්වනවා. (34343+3434-222)

    Code:
    javascript: alert(34343+3434-222);

    11.gif

    11.gif

    11.gif



    තවත් JavaScript ටිකක්


    Code:
    javascript:document.write(document.lastModified);

    Code:
    javascript: confirm('your computer can been infected by a deadly virus, you need more virtual memory. press yes to continue this procces'); alert('continuing anyway');


    It deletes everything on the page a replaces it with what you entered for "message"
    Code:
    javascript: contentBodyEditable="true".DesginMode="message"


    This will allow resizing all of the images on the page, and adding and removing text without entering any code!

    Code:
    javascript: document.body.contentEditable ='true'; document.designMode='on'; void 0


    This will make a pop-up message.
    Code:
    javascript: alert('message here');


    This piece of code pulls off all the images from your web page and rotates them in a circle. Really makes any page go naked (without its images). The best place to test is a website with many images. (Google Images for an example)

    Code:
    javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.getElementsByTagName("img"); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+"px"; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',5); void(0);


    Your browser will be very afraid of this code.

    Code:
    javascript:function flood(n) {if (self.moveBy) {for (i = 200; 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); } } }}flood(6);{ var inp = "D-X !msagro na dah tsuj resworb rouY"; var outp = ""; for (i = 0; i <= inp.length; i++) {outp =inp.charAt (i) + outp ; } alert(outp) ;}; reverse


    Finding Spoof Websites

    Code:
    javascript:alert("The actual URL is:\t\t" + location.protocol + "//" + location.hostname + "/" + "\nThe address URL is:\t\t" + location.href + "\n" + "\nIf the server names do not match, this may be a spoof.");

    :yes::yes::yes::yes::yes::yes::yes::yes:

    :love::love::love: +++++ :love::love::love:

    ඔයාලටත් පුළුවන් මෙම JavaScript වල එකිනෙක අගයන් වෙනස් කරලා මීට වඩා වෙනස් නිර්මාණ කරන්න. ඉන් පස්සේ ඔයාලගේ නිර්මාණ මෙයට Post කරන්න.



     
    Last edited: