Skip to main content

Posts

Showing posts from May, 2011

Change the Opacity of the image "onClick" - Javascript

Hi Folks,                I come up with another technical blog which will be quite interesting. I did this in my training period. You might have heard of the Opacity which means transperancy. Now, I have added an image to my HTML code and on clicking the image its opacity will be reduced. Usually the rating will be between 1 to 100 for IE and 0.1 to 1 for Firefox. We have to write differently for different browsers. Lets see a example for it. Here is my HTML code with an image tag which has a image.  Here goes the coding…. <html> <head> <title>Change the Opacity of the image</title> <script type=”text/javascript”> function lightup(imageobject, opacity){  if (this.img){   Opacity(this.img, 100);  }  Opacity(imageobject, opacity);  this.img=imageobject; } function Opacity(obj,opc){  if (opc<0||opc>100) return;  obj.style.filter=’alpha(opacity=’+opc+’)';  obj.style.opacity=obj.style.MozOpacity=obj.style.KhtmlOpacity=opc/100

Java Annotations

Hi Folks,                This is technical one. You may think for a while “What the *$#*# is this? Arvind writing technical post?!?!? ” No wonder, I am writing it. And this post I dedicate to my trainer Arun who provided us this wonderful notes regarding Annotations. Its about Java Annotations. Come on, Lets dig deep into it. WHAT IS ANNOTATION ?                Annotations are like meta-tags that you can add to your code and apply them to package declarations, type declarations, constructors, methods, fields, parameters, and variables. Annotations do not directly affect program semantics, but they do affect the way programs are treated by tools and libraries, which can in turn affect the semantics of the running program. THE BASICS                There are two things you need to consider with annotations.                        One is the “annotation” itself.                        Another is the “annotation type“.               An “annotation” is the meta-tag that

Draw shapes in iPhone.

Hi Folks,               You would have seen shapes, graphs in iPod, iPhone and iPad. Have you ever thought about the code behind it. Here it is. I am going to show simple code to draw shapes. In iPhone, its just like joining the co-ordinates. Here it goes. Step 1: Create a ViewController in my case, its SampleViewController. And create a UIView in my case its just SampleView. Step 2: In your AppDelegate implementation file create an instance for ViewController like this. Create the instance in didFinishLaunchingWithOptions delegate. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {          // Override point for customization after application launch. // Add the view controller’s view to the window and display. SampleViewController *ControllerInstance = [[SampleViewController alloc]                                         initWithNibName:@”SampleGraphViewController” bundle:nil]; [window addSubview:Contro

Anna Salayil Song Lyrics - TASMAC KOOTAM.

Song : ANNA SALAYIL Movie : TASMAC KOOTAM Music Director : BHARADWAJ Lyrics : DIAMONDPEARL DISCLAIMER : ALCOHOL IS INJURIOUS TO HEALTH. அல்கஹால் உடலுக்கும் உடல் நலத்திற்கும் கேடு.. தான்க் யூ பகவானே..... CHORUS 1: அண்ணா சாலையில் சென்னை அண்ணா சாலையில் ஒரு 8 நட்சத்திர டாஸ்மாக் ஐ பார்த்தேன்  எட்டி பிடிக்க பைக்கில் 80 ல் பறந்தேன்.. ஷட்டர் டோர் க்ளோஸ் ஆக வேர்த்தேன்.... CHORUS 2:   சா சா சரக்கினை தேடி நா நான் அலைகின்ற நேரம் அய்யோ தேடிச்  சென்ற சரக்கே நேரில் வந்ததே!!!! MALE: ஆயிரம் ஆண்டுகள் தொழில்நுட்பம் பழகி ஆண்டவன் படைத்தான் அசத்திடும் விஸ்கி..... GROUP: பாட்டில் லேபெல்லை பார்த்ததும் கொஞ்சம் அல்கஹால் முப்பதே சத விகிதம் உள்ளே சரக்கேத்தி  பார்த்தால் அல்கஹால் நூறு சத விகிதம்... MALE: ஒவ்வொரு சரக்குக்கும் ஒவ்வொன்று அழகு நான் கண்ட சரக்குக்கு ஒவ்வொன்றுமே அழகு பீர் கொண்ட ஆளுக்கு அடித்தால் தான் போதை நான் கண்ட சரக்குக்கு பாட்டில் கூட போதை டாஸ்மாக் வாழும் வீதிக்கு இரவே இல்லை... GROUP: இல்லை... MALE: அது எனக்கு கிடைக்கட்டும் மரணம் இல்லை... CHORUS 1 MALE:

“Chitti - The mokka” Story - Part 6

Hi Folks,                   Let me move on to the sixth and final part of the story. If you want to read previous parts of the story, you can read it here. First part - here . Second part - here . Third part - here . Fourth part - here .   Fifth part - here .   She looked around and found none. She started humming the song jumped in the house. As soon as she entered the house, a surprise was waiting for her. She opened the door and she was awe struck to see. She couldn’t believe what she was seeing. She was totally out of this world, and was about to faint after she saw what she saw. Oh my god… It was a real surprise to her, she need to come to real world from where she went after she saw those. She could hear John giving lip sink for the song, “Mayaginen solla thayanginen, nenjam uruginen uyire…”                  Angelina was surprised to see John standing behind the door. He was more surprised to see what he had in his hand. He had Sothys’s Chandramuki pattu - Sambar karai niraindh

“Chitti - The mokka” Story - Part 5

Hi guys,                Let me move on to the fourth part of the story. If you want to read previous parts of the story, you can read it here. First part - here . Second part - here . Third part - here . Fourth part - here .               Sujatha got up closing her noes went near the door. Sweat dropped from Angelina's eyebrows to her cheeks rolled down on the tabel. Sujatha touched the knob of the door. The bell rang again. She was frightened. She opened the door and BANG.!!!!                As soon as she opened the door, she heard the scream "BOOCHAANDI" . To her surprise, there stood three young girls who were not like Charlie's Angels but kind of a mental gang, I can say. One stood in the middle was little tall, wearing specks which is real big than her face, her name was Theepika . To her left was Caketha Vandharajan . She was wearing a salwar which has all 256 colors in it, in which green, red, yellow and orange were prominent ones. She is not an ordinary girl