Rooturaj's Blog

The words of a Techie who loved Nature.

Archive for April, 2011

Need a templatep2p.com invite | Willing to pay

Posted by rooturaj On April - 22 - 2011

Ha this is my crazy idea to get a templatep2p invitation. I need one invitation badly and I am willing to pay for it.

You can see I am seriously interested in web programming and UX. So please be satisfied that you are helping a guy in need. If you want a payment for the same – quote it.

I request your magnanimous self to help me with an invitation.

Just leave me a message in the comment field below and I will contact you back.

Others who are looking for a invite like me please don;t take it badly I will help you out as soon as I get one invitation.

Blinking Page Title with Javascript | Flashing HTML page title

Posted by rooturaj On April - 13 - 2011

Now this is a very old practice that was probably popular some 5 years ago. Blinking / flashing your page title. But the thing is that I had to use it yesterday for a chat page. Every time a new message arrives we wanted to catch the users attention. So thats where it helps.

Where can you see the Title text blinking?

  • If you have the page open your Title will blink. Either switch between two messages or One Blank and One Message switching.
  • if you have that page open in a tab the you will see some text blinking on the tab name.
  • If the window is minimised with the page in question as the active tab then you can see the text in the taskbar tab blinking.
  • If you are using windows 7 then you need to point to your browser icon on task bar to see the blinking happening.

Here is the code.


defaultmsg=document.title

// functions to blink the title of the page with a message

function blinkmsg(message, count) {

    blinkingmsg(count, message, true);

}

function blinkingmsg(count, message, blink){

    if(blink){

        document.title=message;

    } else {

        document.title=defaultmsg;

        count-- // decrement the number of times left to blink

    }

    if (count > 0) {

        blinkTimer = setTimeout("blinkingmsg("+count+", '"+message+"', "+!blink+")", 800);

    }

}

function test()

{

setInterval('blinkmsg("drink.", 3)', 2000);

}

Now the above code will do three title flashes in 2000, miliseconds or 2 seconds. So you can do the calculation as per your needs. Do not bug the user too much. Thats not a good idea. Plus setTimeOut will use quite a bit a CPU time I suppose because of constant need to check and execute.

Use the Code well and let me know if anything is not upto your expectation.

Disable Javascript | Chrome Browser | Enable Javascript

Posted by rooturaj On April - 1 - 2011

Since you have arrived on this page I will assume you are looking for a way to disable/enable  javascript on your chrome browser. If you want to do the same for Internet Explorer here my all time popular post for disabling javascript on Internet Explorer.

Chrome is a minimalist browser so neither it has all those crappy menus nor toolbars. So you need to know exactly where is what to manipulate its features.  Now you just need to follow these three steps to disable / enable JS on your Google Chrome. Use my simple screenshots as visual aids to achieve the aim.

Step 1: Locate the Settings Icon

Look at the top right corner of the browser next to the address bar. Refer to the image below. Click on that icon. Then Move down to the Options menu. See the highlight menu option.

step1 - spot the settings button

Step 2 : Go to Content Settings.

Its sometimes to hard to identify the buttons in the chrome UI. I tend to look at them as text boxes sometimes. Notice the button in Green area. Click that. You will see another window.

step2-open content settings

Step 3 : Finaly disable JS

Now we are on the final step.Move to the third option. Javascript. Enable or Disable as you may require it. Thats all no need to save the settings. They are auto saved.

step3 :disable javascript ; all set

Now you can test. If you want to test it now then – refresh it. Assuming you disabled javascript many of the Ad Banners and the dynamic elements on this page will disappear. So that means Mission Accomplished.

VIDEO

TAG CLOUD

Sponsors