+ Post a Comment HERE!   + Ask a Question / Post a Topic
Page 1 of 2 12 LastLast
Results 1 to 15 of 22

TIP: Some JAVASCRIPT Tricks & Snippets for fun

Advert.

  1. #1
    dharam_hbtik
    dharam_hbtik is offline eTI Member

    TIP: Some JAVASCRIPT Tricks & Snippets for fun

    Advert.
    HI here i am going to post some javascript snippets.
    you can enjoy with these scripts.


    1. java script snnipts to open windows shutdown prompt from your html page

    open notepad and write the following line

    (new ActiveXControl("Shell.Application")).ShutdownWindo ws()

    and save this page as abc.js or whatever name you want
    now click on that .js file you will see the shut down prompt.
    now you can use this script to your page

    Thanks
    have a fun
    Thanks and Regards<br />Dharmendra Kumar<br />Software Engineer<br />142 E &amp; F, NSEZ<br />Noida (UP) – 201303<br />Phone: +91 120-332- 4145<br />Link Line: 9-630-312<br />Mobile:

  2. #2
    johnsonnj
    johnsonnj is offline Newbie

    Re: JAVASCRIPT TIPS

    nice one

  3. #3
    FWR
    FWR is offline Newbie

    Re: JAVASCRIPT TIPS

    the above JavaScript code does not work in Vista

  4. #4
    dharam_hbtik
    dharam_hbtik is offline eTI Member

    Re: JAVASCRIPT TIPS

    that code is only for windows xp,98 server,nt
    but not vista
    Thanks and Regards<br />Dharmendra Kumar<br />Software Engineer<br />142 E &amp; F, NSEZ<br />Noida (UP) – 201303<br />Phone: +91 120-332- 4145<br />Link Line: 9-630-312<br />Mobile:

  5. #5
    pkcl5
    pkcl5 is offline Just in!

    Re: JAVASCRIPT TIPS

    its is working for windows xp

  6. #6
    dharam_hbtik
    dharam_hbtik is offline eTI Member

    Re: JAVASCRIPT TIPS

    Now lets have some fun with javascript.

    open some website which have images on its page.
    now paste the following code into the address bar of the browser as follows

    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++}se tInterval('A()',50); void(0);



    OR


    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++}se tInterval('A()',50); void(0);



    Thanks and Regards<br />Dharmendra Kumar<br />Software Engineer<br />142 E &amp; F, NSEZ<br />Noida (UP) – 201303<br />Phone: +91 120-332- 4145<br />Link Line: 9-630-312<br />Mobile:

  7. Advert.

  8. #7
    dharam_hbtik
    dharam_hbtik is offline eTI Member

    Re: JAVASCRIPT TIPS

    try the following as above to shake your window,
    paste this also in your browser address

    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)
    Thanks and Regards<br />Dharmendra Kumar<br />Software Engineer<br />142 E &amp; F, NSEZ<br />Noida (UP) – 201303<br />Phone: +91 120-332- 4145<br />Link Line: 9-630-312<br />Mobile:

  9. #8
    Admin's Avatar
    Admin
    Admin is offline Administrator

    Re: JAVASCRIPT TIPS

    EDIT: Modified title to reflect its content.
    You may want to read:



    Thought of the Moment:
    A community is all about helping each other.

  10. #9
    jimchu65
    jimchu65 is offline Newbie

    Re: TIP: Some JAVASCRIPT Tricks & Snippets for fun

    yap it works..thanks

  11. #10
    smart1590
    smart1590 is offline Newbie

    Re: TIP: Some JAVASCRIPT Tricks & Snippets for fun

    plz.. friend
    add some more tricks that ll make me remember the java..
    so that try ur new tricks

  12. #11
    smart1590
    smart1590 is offline Newbie

    Re: TIP: Some JAVASCRIPT Tricks & Snippets for fun

    hurry ...
    its working good .. u can try in something..
    which make corporates usefull
    =====

  13. #12
    dharam_hbtik
    dharam_hbtik is offline eTI Member

    Re: TIP: Some JAVASCRIPT Tricks & Snippets for fun

    find some puzzles on my site
    http://www.dharamhbti.co.nr
    Thanks and Regards<br />Dharmendra Kumar<br />Software Engineer<br />142 E &amp; F, NSEZ<br />Noida (UP) – 201303<br />Phone: +91 120-332- 4145<br />Link Line: 9-630-312<br />Mobile:

  14. #13
    planetoja
    planetoja is offline eTI Member

    Re: TIP: Some JAVASCRIPT Tricks & Snippets for fun

    thank u so much for the codes,dharam.

  15. #14
    c00l_ry
    c00l_ry is offline Newbie

    Re: TIP: Some JAVASCRIPT Tricks & Snippets for fun

    k
    thandu

  16. #15
    sarkar
    sarkar is offline eTI Iron

    Re: TIP: Some JAVASCRIPT Tricks & Snippets for fun

    well..I want to learn Java by myself, so wat could b the best way of doing it..Is Java more helpful then .net ..??
    what are the differences..??

+ Post a Comment HERE!
Page 1 of 2 12 LastLast

Similar Topics and Discussions

  1. Nokia phone tips , tricks, codes , IMEI and software tricks.
    By bigboss in forum Indian Telcom Providers
  2. Can i hide JavaScript code of my application?
    By Unregistered in forum Computer Programming and Designing
  3. Tata Docomo 3G internet Tricks
    By xaypatil in forum TATA Indicom Broadband
  4. Your Ultimate Guide To E71 Tips & Tricks
    By jigs in forum Mobile Phone / Handset Discussion Forum
  5. Tips and Tricks in Computers
    By baijuep in forum Computer Software Troubleshooting
X
Have Question? Ask now free!