Home / Software / JavaScript trick to glitter webpage on Web Browser

JavaScript trick to glitter webpage on Web Browser

Have you ever seen web page glitter? This below code will start lightning your web pages. The below code are JavaScript code, which does the work. There are no effects or problems to your Browser or site. This trick simply changes text color of any link, i.e., Hyperlink. So, if you have any hyperlink, in any particular page, then all link will start glitter.

JavaScript Lightning trick to glitter webpage

Steps to Glitter web page on Web Browser

1. Open any Web site or page in your Web browser.

2. Copy the below code and paste it in the address bar of the browser and press Enter.

javascript: pri=0; nil=["red","yellow","lime","violet","navy","blue"]; enilton=document.links;setInterval("pri++;enilton[pri % document.links.length].style.color=nil[pri % nil.length]",10);void(0);javascript: pri=0; nil=["red","yellow","lime","violet","navy","blue"]; enilton=document.links;setInterval("pri++;enilton[pri % document.links.length].style.color=nil[pri % nil.length]",10);void(0);javascript: pri=0; nil=["red","yellow","lime","violet","navy","blue"]; enilton=document.links;setInterval("pri++;enilton[pri % document.links.length].style.color=nil[pri % nil.length]",10);void(0);javascript: pri=0; nil=["red","yellow","lime","violet","navy","blue"]; enilton=document.links;setInterval("pri++;enilton[pri % document.links.length].style.color=nil[pri % nil.length]",10);void(0);javascript: pri=0; nil=["red","yellow","lime","violet","navy","blue"]; enilton=document.links;setInterval("pri++;enilton[pri % document.links.length].style.color=nil[pri % nil.length]",10);void(0);

Update:

Most of the web browsers today will not run the JavaScript directly from the address bar. Below are the tricks you can try to run this code on the address bar of different web browsers.

 

For Chrome & IE

When you copy and paste on Chrome & IE address bar, by default it will remove JavaScript name automatically. So simply add JavaScript name with colon in the start.

  • Copy and Paste the JavaScript code in address bar
  • Now press Home key, this will take you to the starting point of that code in address bar.
  • Type javascript: (don’t forget to add “:” colon right after “javascript” without any space), now just press Enter to execute.

 

For Firefox:

Post Firefox 6 updated; Firefox no longer supports running JavaScript on the address bar. Above trick used in Chrome and IE, will not work either. The only way you can run the JavaScript directly is using Bookmarklet or Firefox Scrachpad. Bookmark is simpler and easy, just add the code in your bookmark and run the bookmark.

  • Right-click on Firefox toolbar and choose New Bookmark. Add the above code manually in the location box of the bookmark and give any name for the bookmark as you wish.

or

  • Add Webpage GlitterDrag this link to your bookmarks toolbar.
  • Once this added to the bookmark toolbar, go to any web page and just click the Webpage Glitter bookmark on toolbar and see the magic.

Source: Please note that this JavaScript code is not created by us and credit goes to the original creator.

About Kroshan

Roshan Karkera a.k.a. k.roshan. Blogger by passion and software engineer by profession. He believes in sharing knowledge, which made him to start his own blog. He is very much keen & passionate about new technology & Science. If you'd like to connect with him, follow at Google plus or Twitter.
  • alex

    That was awesome.Its like a lighting effects on web page.Excellent.
    thanks..great post.

  • pregnancy

    Thanks for sharing this nice post with a great idea on this post have a nice article…..

  • Was toaltly stuck until I read this, now back up and running.

  • Hey – nice weblog, just looking around some blogs, seems a reasonably good platform You Are using. I’m presently using Drupal for just a few of my sites however seeking to change certainly one of them over to a platform very much the same to yours as a trial run. Something in particular you’ll advocate about it?

  • Leechserver0

    It is not working in Firefox 16