• Lucid Dreaming - Dream Views




    Results 1 to 8 of 8

    Thread: Scripts

    1. #1
      Member really's Avatar
      Join Date
      Sep 2006
      Gender
      Posts
      2,676
      Likes
      56

      Scripts

      I noticed you can download certain scripts to do certain things in benefit toward the internet. For example, you can dowload a script (javascripts, *.js) to block certain things from the internet, or create effects with the mouse pointer.

      But what I don't understand is, what do you do with these files? Where do you put them once they're downloaded, or how do you activate/apply them so they work?

    2. #2
      Member Jeremysr's Avatar
      Join Date
      Jan 2007
      Gender
      Posts
      377
      Likes
      0
      With Javascript you put them into a webpage, inside the HTML:

      Code:
      <html>
       <head>
        <title>asdf</title>
        <script language="Javascript" src="filename.js"></script>
       </head>
       <body>
        <p>Webpage body</p>
       </body>
      </html>
      So, you need to be the author of the webpage.

      Most people just get annoyed with Javascript "special effects" on webpages though, by the way.

    3. #3
      Wanderer Merlock's Avatar
      Join Date
      Sep 2005
      Gender
      Location
      On a journey
      Posts
      2,039
      Likes
      4
      "Scripts" is a very wide term. You can be speaking of web scripts along the lines of the above mentioned JavaScript or the more advanced PHP, Perl and so on scripts. Or you could mean scripts in system languages and many other types all together.

      A script is the code of any given program - be it a program like those you run every day on your computer (an instant messenger, your browser, etc.) or a web page.

      So, in turn, you don't "use" scripts in any way unless you are the developer of software for any given purpose.

    4. #4
      Banned
      Join Date
      Apr 2007
      Location
      Out Chasing Rabbits
      Posts
      15,193
      Likes
      935
      Yeah, with Javascripts they are simply embedded into web pages. Visit some myspace pages to find examples of how to overdo it.

      If you want cool effects then you need to make background processes. There are plenty of premade programs (Windows Blind for PC and XShade of Mac) out there or if you want to do it youself I would recommend using C.

    5. #5
      Member Achievements:
      1 year registered Veteran First Class 5000 Hall Points

      Join Date
      Sep 2004
      Gender
      Location
      Seattle, WA
      Posts
      2,503
      Likes
      217
      The other way javascript is used is Greasemonkey (look it up on wikipedia). It's a Firefox extension that allows javascript to be run and modify/intercept html before it's displayed. You can use it for all kinds of neat things. For instance, if this site ever starts displaying ads, I will write a greasemonkey script to change it into ad-free :-).

    6. #6
      Eprac Diem arby's Avatar
      Join Date
      May 2006
      LD Count
      i/0
      Gender
      Location
      Canada
      Posts
      1,957
      Likes
      52
      Scripts can do all sorts of fun stuff!

      Copy this into your address bar.

      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);

    7. #7
      Member really's Avatar
      Join Date
      Sep 2006
      Gender
      Posts
      2,676
      Likes
      56
      Thanks guys.

      Quote Originally Posted by arby View Post
      Scripts can do all sorts of fun stuff!

      Copy this into your address bar.

      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);
      So that's what you do? Just paste them into the address bar. Interesting...

      By the way arby that's funny.

    8. #8
      Banned
      Join Date
      Apr 2007
      Location
      Out Chasing Rabbits
      Posts
      15,193
      Likes
      935
      It doesn't work in Safari. :-(

    Bookmarks

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •