Click here to Skip to main content
Licence CPOL
First Posted 5 Oct 2003
Views 61,337
Bookmarked 9 times

Bringing in Blink Feature for Microsoft Internet Explorer

By | 5 Oct 2003 | Article
The Blink Feature in Netscape browsers is really a cool one. Here we would try to bring in the Blink Feature for Microsoft Internet Explorer using simple JavaScript trick.

Introduction

I would like to start with a small history of why this Blink in MSIE requirement came at all. I had a small requirement for a small regional client here, in freelance. They wanted a blinking in certain parts of the page for information that he marks from the admin section of the site, basically to emphasize something new, something impressive information.

Tags Availability

I know there is a BLINK tag in Netscape, but again that does not work in MSIE, which has its own properitary MARQUEE tag for scrolling. I searched the Internet and got some custom BLINKERS, but then the blinkers made the page jump, every time, the DIV was set to invisible. After a long search, I got this small code snippet and which I refined it a bit and which I would like to share with everyone, so that anybody who is needing a similar code compatible across both MSIE and Netscape.

How to Use

Currently the attached zip file has only one static blink.htm page. The code between SCRIPT and /SCRIPT is the BLINK engine. Perhaps this codeblock, we can separate it to a separate blinkengine.js

Next, whereever we want the sections to blink, we need to encompass them into a DIV or LAYER for Netscape browsers and pass the DIV identification to the Blink function as a string. The text within the DIV would automatically start blinking.

TODO

Perhaps a lot more can be incorporated here. Within blink tag itself,you can incorporate features like Overlib Mouseover effect, if the number of lines to be blinked is exceeding a specified number of characters. Perhaps you could have observed, if the characters that are blinking are more in number, it is not visually appealing either. Isn't it? Overlib is a free download from http://www.bosrup.com/web/overlib/ It is a really a very good JavaScript to show mouseover tooltips and also configuring and calling the methods are easy too.

Summarizing...

I hope the above script, though is very simple and straight forward, can help developers worldwide to get a cross browser blink effect in JavaScript. Perhaps JavaScript beginners can start learning of timeout, cross browser detection etc and thier syntax from the code. Is'nt it?

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Vasudevan Deepak Kumar

Web Developer

India India

Member

Vasudevan Deepak Kumar is from Chennai, India who has been in the programming career since 1994, when he was 15 years old. He has his Bachelors of Engineering (in Computer Science and Engineering) from Vellore Engineering College (now VIT University). He also has a MBA in Systems from Alagappa University, Karaikudi, India.


He started his programming career with GWBasic and then in his college was involved in developing programs in Fortran, Cobol, C++. He has been developing in Microsoft technologies like ASP, SQLServer 2000. For sometime, he has also been with PHP and MySQL based development in one of his previous organizations. Now currently his focus is on Microsoft .NET World (ASP.NET, C# and Whidbey)


In his past-time, he listens to polite Carnatic Music.

Web Presence


Homepage

http://www.lavanyadeepak.tk/

Blogs



Technical




Gossips



Spiritual







Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralChanges for this script to work on both FF and MS IE PinmemberGnana Swaroop0:51 19 Mar '08  
Generalgood work Pinmemberparas12124:06 2 May '07  
GeneralCorrection PinmemberFlorent Geffroy11:08 9 Dec '04  
GeneralOne word... Pinmembernetclectic22:26 6 Oct '03  
GeneralRe: One word... PinmemberVasudevan Deepak Kumar23:16 6 Oct '03  
GeneralRe: One word... PinmemberJörgen Sigvardsson2:23 7 Oct '03  
GeneralRe: One word... PinsitebuilderMichael Dunn8:14 12 Oct '03  
GeneralRe: One word... PinmemberVasudevan Deepak Kumar17:32 12 Oct '03  
GeneralRe: One word... PinmemberLeonJ23:34 12 Oct '03  
GeneralRe: One word... PinsussAnonymous20:49 4 Jan '04  
GeneralRe: One word... Pinmembervolkan.ozcelik11:47 28 Dec '05  
AnswerRe: One word... [modified] Pinmembermanishknamdeo8:46 30 May '06  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web01 | 2.5.120517.1 | Last Updated 6 Oct 2003
Article Copyright 2003 by Vasudevan Deepak Kumar
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid