Latest Source Code Collection

when we trigger the event mouseover image should brighten

You can do this by&nbsp; using JavaScript. Add the following code in your html page to achieve the reult. &nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp; &nbsp;<br />

Include MS Word Spell Checker to check spellings in project using Visual Basic

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;">add one text box and button to the form. When you click the button add the following code.</span></p>

Integrating SPAN Element in the HTML

<p><span style="font-size: 10pt; font-family: Verdana; color: black">The SPAN element was introduced into HTML to allow authors to give style that could not be attached to a structural HTML element. <strong><em>SPAN</em></strong> may be used as a selector in a style sheet, and it also accepts the <strong><em>STYLE, CLASS</em></strong> and <strong><em>ID</em></strong> attributes.<br /> <br /> <strong><em>SPAN</em></strong> is an inline element, so it may be used just as elements such as <strong><em>EM</em></strong> and <strong><em>STRONG</em></strong> in HTML. The important distinction is that while <strong><em>EM</em></strong> ...

Connect to MSAccess database using data control

<p class="MsoNormal">The following code will connect to MSAccess database using datacontrol and sql syntax.</p>

method of sending cookies from a servlet in Java

<p>HTTP is a stateless protocol, which makes tracking user actions difficult. One solution is to use a cookie, which is a small piece of data sent by a web browser every time it requests a page from a particular site. Servlets, and CGI scripts, can send cookies when a HTTP request is made - though as always, there is no guarantee the browser will accept it.</p>

Writing the HTML code in Shell Scripts

<span style="font-size: 8pt; font-family: Verdana">You can use HTML code inside shell scripts. For example, a well-formed HTML file contains the following information:</span>

In Java read the status code of an HTTP request?

<p>If you use the URL.openStream() method, there&#39;s no way to determine whether a request was successful or not. The only alternative is to use the URL.openConnection() method, which returns a URLConnection instance. The URLConnection is an abstract class, meaning that it provides a template of methods, which other classes will implement. Even though the URL.openConnection() method returns a URLConnection instance, it is actually returning a concrete implementation of that class.</p> <p>When a request is made for a resource using the ...

Connect to MSAccess database using data control in Visual Basic

<p class="MsoNormal">The following code will connect to MSAccess database using datacontrol and sql syntax.</p> <p class="MsoNormal"><!--[if !supportEmptyParas]-->&nbsp;<!--[endif]--></p><br /><p class="MsoNormal"><!--[endif]--></p>

access web controls from a code-behind page in ASP.net

<p class="MsoNormal">You have to create a control variable with the same name as the id of the control in your .aspx file in the general declaration for your code behind class:</p>

to join tables from different databases in sql server 2000

<p class="MsoNormal">You have to just qualify the table names in your SELECT queries with database name, followed by table owner name. In the following example, Table1 from pubs database and Table2 from northwind database are being joined on the column i. Both tables are owned by dbo.</p>

Move the Active Directory log files

<p class="MsoNormal">Along with the ntds.dit file, the Active Directory (AD) keeps several log files that you might want to move to a faster disk. To do so, perform the following steps: </p>

Iterators in c#

<font face="Verdana" size="2">In the past, to enumerate through an object that held a collection, your objects needed to inherit and implement IEnumerable. In addition, they needed to support an internal means of storing the state of the object being enumerated. This approach works in versions 1.0 and 1.1 of C#, but new functionality has been added to greatly simplify this process. Today, we have the foreach statement. You no longer need to do all the work to get your objects ...

CSV file from a database using asp.net with C#

<p class="MsoNormal">By following this code, you can achieve the desired result. I have written this code using C# with asp.net.</p>

see environment variables using CGI Script

<pre><span style="font-size: 8pt; font-family: Verdana">The web server will execute the CGI script in its own process space but will set some useful environment variables. To view these, use the following script: </span><span style="font-size: 8pt">/var/www/cgi-bin/env.sh</span><span style="font-size: 8pt; font-family: Verdana"> </span></pre>

Example of writing the HTML code in Shell Scripts

<pre><span style="font-size: 8pt; font-family: Verdana">You can use HTML code inside shell scripts. For example, a well-formed HTML file contains the following information:</span></pre>

Creating a new layer in JavaScript

<span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;">Generally layers will be created using DIV tags Using CSS in the HTML source code of your page. However, you can also create layers programmatically with JavaScript also.<br /> Check the following Example.<br /> <!--[if !supportLineBreakNewLine]--><br /> <!--[endif]--></span>

Jython to test performance of Java code

<p>Here is a script borrowed from Active State web site, which times Java functions using Jython. I think this should help.</p>

Enabling Hibernate in Windows 2000

<span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;">Follow these steps to Enable Hibernation in your System.<br /> <br /> <!--[endif]--></span>

Add dynamically menu items at run time in VB 6.0

<p class="MsoNormal">It is very simple to add menu items at runtime. VB menu items are nothing more than special control arrays. And just as with any control array, if you want to dynamically add menu items at runtime, you must place at least one control on your project at designtime. Once you do so, you can then use the Load command to create new objects. The following code shows an example of how this will work.</p> <p class="MsoNormal"><!--[if !supportEmptyParas]-->&nbsp;<!--[endif]--></p> <p ...

Including sound in the web page using JavaScript

<strong><span style="font-size: 8pt; font-family: Verdana">You can include the sound in web page using JavaScript.<span>&nbsp; </span>But this code will work only on Netscape browser. I am giving the small example, how the sound works on the hyperlink of the web page.<br /> <!--[if !supportLineBreakNewLine]--><br /> <!--[endif]--></span></strong>

Generate random passwords for registered users using PHP

<p class="MsoBodyText2">This following code can help you generate random numbers in PHP.<strong></strong></p>

change the size of the virtual memory paging file in Windows Server 2000

<p class="MsoBodyText2">Virtual Memory is a technique that allows processes, which may not be entirely in the memory, to execute by means of automatic storage allocation upon request. To change the virtual memory paging file size, follow these steps:</p>

Remove blank lines from a file in Linux

<p class="MsoBodyText"><span style="font-weight: normal">The following script can help you to remove blank lines from a file.</span></p>

MS Word Spell Checker to check spellings in project using project Visual Basic 6.0

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;">&#39;add one text box and button to the form</span></p>

Shake the website screen using Java Script

<p class="MsoBodyText2"><span style="font-weight: normal">According to me, you can shake the screen using JavaScript. Add the following code in the &lt;head&gt; section. Call the shake screen from the onclick button.</span></p>

Hide the scroll buttons using CSS

Using CSS code, you can disable the scrollbar on your web page (for Internet Explorer only). Place the code between &lt;head&gt; and &lt;/head&gt; tags. <br /><br />This CSS code might be useful on a &quot;Splash&quot; page or web page, where there will be no need to scroll down the page. The code disables both X and Y scrollbars.

check whether a specific value exists or not in a table using ASP.NET

The following function will check if a specific value exists or not in a database. checkValueExists function will take three arguments &mdash; FileName, Table Name and Field Value.

Use sessions to protect your web pages in PHP

<p class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana">Sessions are basically used for passing information from one page to another page.<span>&nbsp; </span>When you are browsing a website with sessions you will get the a unique id that </span><span style="font-size: 10pt; font-family: Verdana; color: #444444">that </span><span style="font-size: 10pt; font-family: Verdana; color: black">can be in the form of a cookie or a query string.<br /> </span></p>

Generate random passwords for registered users using PHP

<p class="MsoBodyText2">This following code can help you generate random numbers in PHP.</p>

convert lowercase letters into uppercase in the textbox using VB.net

<p class="MsoNormal"><span style="font-size: 8pt; font-family: Verdana">The following code automatically converts all lowercase letters typed in a textbox control into uppercase.</span></p>

create a new layer from JavaScript

<span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;">Generally layers will be created using DIV tags Using CSS in the HTML source code of your page. However, you can also create layers programmatically with JavaScript also.</span>

Generate random passwords for registered users in PHP

<span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;">This following code can help you generate random numbers in PHP.</span>

Hide the scroll buttons using CSS

<p class="MsoNormal">Using CSS code, you can disable the scrollbar on your web page (for Internet Explorer only). Place the code between &lt;head&gt; and &lt;/head&gt; tags. </p>

Basics of functions in C++

Functions are one of the important ways to decompose software into smaller, manageable chunks. Functions can have return values (for example, a function that computed a value might return that value), or they can return nothing.

Basics of main() funcion in C++

Object-oriented C++ programs consist mostly of classes, but there&#39;s always at least one C-like function: main().

A simple chat program using ASP

<font face="Verdana" size="2">A simple chat program which you can try&hellip;here we need 4 files. This program is done using arrays. Open your favorite editor and just type the following code into it.</font>

How To : Email Users their Forgotten Passwords

<font face="Verdana" size="2">As the usage of internet is increasing every day we come across lot of registrations on each websites and it is very difficult to remember all the passwords which we used during the registration process.</font>

Fly out menu using movies

step1: First of all say your movie contains three buttons, ex features, contact, aboutus.<br /> Make the above buttons(or whatever or how many ever depending on your requirement)<br /> <br /> <strong>step2:</strong> Make three movies. This is done by Insert&gt;NewSymbol&gt;Movieclip. Name your movieclips<br /> accordingly. ex features refers to the movie named features. Your movie clips can contain anything.<br /> Either an animation or another set of optionbuttons which come under the main button.<br /> <br /> ex: Features(main button)<br ...

Writing the HTML code in Shell Scripts

You can use HTML code inside shell scripts. For example, a well-formed HTML file contains the following information:

Hide the scroll buttons using CSS

<p class="MsoNormal">Using CSS code, you can disable the scrollbar on your web page (for Internet Explorer only). Place the code between &lt;head&gt; and &lt;/head&gt; tags. </p>

Check whether a specific value exists or not in a table using ASP.NET

The following function will check if a specific value exists or not in a database. checkValueExists function will take three arguments &mdash; FileName, Table Name and Field Value.

KeyEvents in Java

This applet demonstrates some virtual key codes using event handlers

StatusClock

This script displays the system time on the status bar.

Crazy Ticker Tape

A rather crazy display of text messages on the status bar.

Bubble Banner

Watch your message &quot;bubble&quot; out in the status bar

CONSTRUCTOR and the DESTRUCTOR in C++

The CONSTRUCTOR and the DESTRUCTOR can be used to initialise and destroy an instance of a class:

Drop down Menu with Description

See the description of the site&nbsp;you want&nbsp;to visit in the drop down menu.

Fly-out menu using movies

<font face="Verdana" size="2" color="#000000">First of all say your movie contains three buttons, ex features, contact,&nbsp;aboutus.</font>

Mouse Effect using Flash

This code will teach you how you can create mouse effects using Flash

Creating Forms in Flash

<font face="Verdana" size="2">This tutorial will show you how to create a simple form in Flash.&nbsp;<font color="#0000ff"></font></font>

The marquee applet

A classic example of visual effects used on the web. <br />

Variables in C++

It is possible to make one variable be another:

DigClock using JAVA

This applet helps you create your own LED digital clock using JAVA<br />

key event handlers in JAVA

An applet which demonstrates the key event handlers <br />

C++ Variables

<font face="Verdana" size="2"><strong>It is possible to make one variable be another:</strong></font>

Status Time using JavaScript

<font face="Verdana" size="2"> This script displays the time, day, date and month in the status bar. </font>

How To : Email Users their Forgotten Passwords

<font face="Verdana" size="2">As the usage of internet is increasing every day we come across lot of registrations on each websites and it is very difficult to remember all the passwords which we used during the registration process.</font>

Action Banner using JAVA Script

<font face="Verdana" size="2">This script displays messages in the status bar of your browser one letter a time and then displays all the messages alternatively.</font>

Java Source code for Geturl

The following Java code will get the URL.

Message Rotator using JavaScript

<font face="Verdana" size="2"> This script displays all messages in priority basis&nbsp;i.e; first message first.</font>

Example of a full class declaration in C++

The following example will explain how to use full class declaration using C++.

Status Bar using JavaScript

<font face="Verdana" size="2">This script displays messages in the status bar of your browser. You can add your own message and it will be displayed in the status bar the way shown below. </font>

Variables can be declared everywhere inside the code without using hooks

<font face="Verdana" size="2">By using the following example in C++ you can declare variables verywhere inside the code without using hooks.</font>

HOW TO: Use ASP to Query and Display Database Data in Excel

<font face="Verdana" size="2">This article describes how to build a tab delimited text file dynamically from a SQL Server or Access database query, that can be opened in Excel from within Internet Explorer using Active Server Pages. </font>

OPERATOR OVERLOAD in C++

One important advantage of C++ is the OPERATOR OVERLOAD. Different functions can have the same name provided something allows to distinguish between them: number of parameters, type of parameters...

How to send Auto Responder from your website?

<font face="Verdana" size="2">If you want to improve your website a feed back form&nbsp;from the user will be of utmost useful. This program gives you the ability to send an auto responder message for the feed back received from the user.</font>

MP3 In Flash

<font face="Verdana" size="2">Create your new movie, or open up your existing movie. Open Winamp. Get your mp3. You know that you can only import .wav files in Flash.&nbsp;So first open the mp3 you want to import into winamp.</font>

Classical Structures of C:

<font face="Verdana" size="2"><strong>You know the classical structures of C: for, if, do, while, switch... C++ adds one more structure named EXCEPTION: <br /></strong></font>

Working with C++ Functions

<font face="Verdana"><font size="2">Tired of defining five times the same function? One definition for int type parameters, one definition for double type parameters, one definition for float type parameters... Didn&#39;t you forget one type? What if a new data type is used? No problem: the C++ compiler is capable of generating automatically every version of the function that is necessary! Just tell him how the function looks like by declaring a template function:&nbsp;</font> </font>

The marquee applet in JAVA

<strong><font size="2">A classic example of visual effects used on the web.&nbsp; </font></strong>

What is a class? Well, that's a struct yet with more possibilities.

<strong><font size="2">METHODS can be defined. They are C++ functions dedicated to the class. </font></strong>

Disappearing Menu using JavaScript

<font size="2">Move the pointer over the link below and watch the text disappear in a flash.</font>

Status Arrows

&nbsp;<font face="Verdana" size="2" color="#000000">This script uses animated &quot;arrows&quot; to highlight the message text in the status bar.&nbsp;&nbsp; </font>

C++ Variable Initialization

A variable can be initialised by a calculation involving other variables: <br />

Creating Forms in Flash

<font face="Verdana" size="2">What we have to do is create one form and several fields called Name, Homepage, email, Comments, and the buttons Send and Clear.<br /> <br /> <strong>The Text Fields</strong><br /> <br /> To create these fields we&#39;ll use the Text Field button. But first hit the Text Tool button. After selecting Text Field, draw your text box and place the label &quot;Name:&quot; on the left side&nbsp;<br /> of the Text box.&nbsp;<br /> Advanced:&nbsp;<br /> At this point you ...

Add your web page to the favorites?

<font face="Verdana" size="2">This JavaScript program helps the user to add your web pages to favorites. This is a one step process.</font>

TaskScheduler

<strong><font face="Verdana" size="2">This class monitors multiple threads, starting each thread in&nbsp; a prescribed order.</font></strong>

Bubble Banner using JavaScript

<font face="Verdana" size="2" color="#000000"><strong>Bubble Banner</strong> : Watch your message &quot;bubble&quot; out in the status bar </font>

Flashing Menu Bar

<font face="Verdana" size="2" color="#000000">Watch the message text flash on and off the status bar of your browser.&nbsp;</font>

A class variable can be declared static

<font face="Verdana" size="2">Then only one instance of that variable exists, shared by all instances of the class:&nbsp; </font>

Adding Scenes to your movie in Flash

<p> <font face="Verdana" size="2">A basic Flash movie which contains two or more scenes will play back one after another, in the order that they are listed in the Scene inspector. To make your movie more interactive you should use actions.<br /> <br /> Modify&gt; Frame&gt; Actions (tab)<br /> <br /> The use of actions like Stop, Goto and Play in your movie will add an element of interactivity and allow your visitors to move around your movie like a web ...

This JavaScript code helps you to provide an option for the user to print the current page.

<strong><font face="Verdana" size="2">T</font></strong><font face="Verdana" size="2"><strong>his JavaScript code helps you to provide an option for the user to print the current page. All you need to do is copy and paste this code in the area where you want&nbsp; the link to appear. Usually this option is given on the top right corner of the page. </strong></font>

Scrolling Text using Flash

<font face="Verdana" size="2">This tutorial explains how a scrolling text can be done.</font> <font face="Verdana" size="2">Basically this movie consists of two layers. The first layer consists of the Actions you give for the movie&nbsp;and the second layer consists of the scrollbox.<br /> <br /> <span style="background-color: #ff0000"><font color="#ffffff"><strong>step1:</strong>&nbsp;</font></span><br /> In the actions layer insert a blank keyframe in the first kf. Double click on the kf and give the following actions.<br /> Set Variable: &quot;variable_name.scroll&quot; (the string literal button should be ...

Marquee Effect in Flash

<font face="Verdana" size="2">1) Start by adding two layers total on your stage... 1 that is named box, 1 that is named text. Make sure the text layer is above the box one. <br /><br /> 2) On the box layer, you will need to draw a rectangle extending past the edge of the actual movie. This will be the marquee&#39;s box it will scroll in. Make sure to fill the rectangle and delete the outer edges. Lock this layer.<br /><br ...

Typewriter Effect in Flash

The following code will give you type writer effect using Flash.

Status Eraser

<font face="Verdana" size="2" color="#000000"> This script displays messages in the status bar and then &quot;erases&quot; it. You can add multiple messages to the script.</font>

Removes duplicate spaces within strings.

<font face="Verdana" size="2">In Visual Basic On click event write the code.</font>

A class can be DERIVED from another class

<font size="2">The new class INHERITS the variables and methods of the BASE CLASS. Additional variables and/or methods can be added:&nbsp; </font>

Mouse Co-ordinates

<p><font color="#000000"><font face="Verdana" size="2">Wondering what the x and y co-ordinates of a point on your browser could be? Check the status bar to find out. </font></font></p>

Crazy Ticker Tape

<font face="Verdana" size="2">A rather crazy display of text messages on the status bar.</font>

The shapes applet

<font face="Verdana" size="2"><strong> Define your own polygons, arcs, lines and ovals and fill them up with your own colors using multiple variations of the RGB Pattern.&nbsp; </strong></font>

Tell a friend using ASP

<p><font size="2">Suppose your website contains a feature called news where in which you will be updating the website every day with 5-6 articles. In this case if a person likes your article and he wants to recommend that article to his friend he can just click on that button instead of copying the URL and pasting it in his yahoo or hotmail. This is a way to improve traffic to your website.</font></p><p><font size="2">For example you have a button or link ...

DJTextmenu

<font size="2">DJTextmenu uses the same menuing structure as our DJPopMenu, but allows the developer to show information in a traditional text menu structure rather than as images.</font>

C++ functions can be declared inline

<strong><font size="2">If they contain just simple lines of code, use no for loops or the like, C++ functions can be declared inline. This means their code will be inserted right everywhere the function is used. That&#39;s somehow like a macro. Main advantage is the program will be faster. A little drawback is it will be bigger, because the full code of the function was inserted everywhere it is used:&nbsp;</font></strong>

Doublecombo using JavaScrpt

<font face="Verdana" size="2">This is a double combination where you get two drop down menus. Click on the go button and you can visit the sites in the drop down menu. </font>

C++ functions can be declared inline

<font face="Verdana" size="2" color="#000000"><strong>If they contain just simple lines of code, use no for loops or the like, C++ functions can be declared inline. This means their code will be inserted right everywhere the function is used. That&#39;s somehow like a macro. Main advantage is the program will be faster. A little drawback is it will be bigger, because the full code of the function was inserted everywhere it is used:&nbsp;</strong></font>

Search this website

<font face="Verdana" size="2">This search engine uses java script to search the website and is very easy to configure aslo.<br /> </font>

How to connect to a database (odbc) from c++

<p>&nbsp;<strong><span style="font-size: 10pt; font-family: Verdana">ANS 1 : </span></strong><span style="font-size: 10pt; font-family: Verdana">This example C++/MFC program demonstrates connection to any ODBC data source and producing recordsets from SQL SELECT statements and SQL Stored Procedures. Although the majority of the foundations of the program has been generated by the MFC AppWizard, a majority of the Multiple Document Interface has been adapted using Example 28D.</span><span style="font-size: 10pt; font-family: Verdana"> </span><span style="font-size: 10pt; font-family: Verdana">The code marked in </span><span style="font-size: 10pt; color: gray; font-family: ...

Do you want to know how to add your web page to the favorites?

<p>This JavaScript program helps the user to add your web pages to favorites. This is a one step process.</p><p>All you need to do is paste this anchor tag in the place where you want to give the link for add to favorites:</p>

Action Banner

<font face="Verdana" size="2"><strong>Action Banner</strong> : This script displays messages in the status bar of your browser one letter a time and then displays all the messages alternatively.<br /></font>

Declare a variable inside the for loop

<font face="Verdana" size="2"><strong>C++ allows to declare a variable inside the for loop declaration. It&#39;s like&nbsp; the variable being declared just before the loop: <br /></strong></font>

KeyEvents in Java

<font face="Verdana" size="2">This applet demonstrates some virtual key codes using event handlers in Java.<br /></font>

HIERARCHICAL MENU IN FLASH

<font face="Verdana" size="2" color="#000000">Create a new Flash movie<br />Draw any size shape on the stage using the drawing tools. These will be used for the button shapes. <br /></font>

Crazy Ticker Tape

<font face="Verdana" size="2"><strong>Crazy Ticker Tape</strong> : A rather crazy display of text messages on the status bar.</font>

StatusClock

<strong><font size="2">StatusClock</font></strong> <font size="2">: This script displays the system time on the status bar.</font>

convert lowercase letters into uppercase in the textbox in VB.net

<p class="MsoNormal"><span style="font-size: 8pt; font-family: Verdana">The following code automatically converts all lowercase letters typed in a textbox control into uppercase.</span></p>

}