Breaking News

Accessing Elements through DOM In DHTML

We can access an element (e.g., a layer) by it’s ID with document.getElementById(ID). We can also access element nodes with document.getElementsByTagName(tagName). That returns an array of elements with that tagName.   Example: document.getElementsByTagName(“TD”).item(0)   In …

Read More »

Introduction of Events In DHTML

“Events are the heart of any JavaScript application. Events are used to add interactivity to the page. Without events interactivity can not be imagined.”   The Web is an ever evolving environment, and Web pages …

Read More »

OnClick Event In DHTML

OnClick Event In DHTML You may be well ahead of me here, but I’ll say it anyway: OnClick works exactly like onMouseOverexcept onClick creates the effect when you click on the active text or image. …

Read More »

Rollover Menu In DHTML

Rollover Menu In DHTML The source Code: <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> <html xmlns=”http://www.w3.org/1999/xhtml”> <head> <title> Rollover Menu </title> <meta name=”generator” content=”editplus” /> <meta name=”author” content=”” /> <meta name=”keywords” content=”” /> <meta …

Read More »

No right click [IE & Safari only] In DHTML

Source code: <html> <head> <TITLE>[Right Click Disabled]</TITLE> <script type=”text/javascript”> function disable() { if (event.button == 2) { alert(“Right Click not Allowed”) } } </script> </head> <body onmousedown=”disable()”> <p>Right Click not allowed on the page.</p> <p>…..</p> …

Read More »

Why C++?

Why C++? C++ is an advanced, powerful Computer Programming language, yet it is relatively easy to introduce and learn. it is most modern, high-performance computer programs are written using C++. C++ knows about objects and …

Read More »

Declaration of Variables In C++

To declare a variable this format is used   Syntax: data type name;   To declare a signed/unsigned variable place these modifiers before the data type. Example:   signed int a;   unsigned short b; …

Read More »

Data Types In C++

Data can be of many type e.g. character, integer, real, string etc. Any thing enclosed in single quotes represent character data. Data type are means to identify the type of data and associated operation of …

Read More »