A Simple javascript
[js]
<script type="text/javascript">
<!–
document.write("WELCOME");
–>
</script>
[/js]
It display the output as:
WELCOME
To display the current day and image for a particular day
[php]
<?php
$today=date(l);
if($today==Monday)
{
echo "Today is Monday" ."<br/>";
echo "<img src=’images/image1.gif’>";
}
elseif($today==Tuesday)
{
echo "Today is Tussday" ."<br/>";
echo "<img src=’images/image2.gif’>";
}
elseif($today==Wedsday)
{
echo "Today is Wedsday" ."<br/>";
echo "<img src=’images/image3.gif’>";
}
elseif($today==Thursday)
{
echo "Today is Thursday" ."<br/>";
echo "<img src=’images/image4.gif’>";
}
elseif($today==Friday){
echo "Today is Friday"."<br/>";
echo "<img src=’images/image5.gif’>";
}
elseif($today==Saturday){
echo "Today is Saturday"."<br/>";
echo "<img src=’images/image6.gif’>";
}
elseif($today==Sunday){
echo "Today is Sunday"."<br/>";
echo "<img src=’images/image7.gif’>";
}
?>
[/php]
//create the folder name as images and store the 7 images. So, it will display the todays image.
It display the output as:
Today is Friday
To display current date,no.of days and weeks in a month and year using php
1:Create new php file and copy the code and save it as file1.php.
2.Run file1.php, then it will display the current date and no.of days,weeks in a month and year.
[php]
<?php
echo "My name is: John"."<br/>";
echo "current date is:"."\n" .date("Y m d h: s: m") ."<br/>";
echo "No of days in a month:"."\n" .cal_days_in_month( CAL_GREGORIAN, 07, 2010) ."<br/>";
echo "No of weeks in a month:"."\n".date("w", mktime(0,0,0,12,31,2010)) ."<br/>";
echo "No of weeks in a year:"."\n" .date("W", mktime(0,0,0,12,31,2010)) ."<br/>";
?>
[/php]
It display the output as:
My name is: John
current date is: 2010 07 23 04: 46: 07
No of days in a month: 31
No of weeks in a month: 5
No of weeks in a year: 52
Javascript to wish “Good Morning”
WISHES FOR A DAY
/* This script will display A “Good Morning” Message if the time is less than or equal to 10.Otherwise, it display a “Message Good Day”*/
[js]
<html>
<body>
<script type="text/javascript">
var d = new Date();
var time = d.getHours();
if (time <= 10)
{
document.write("<h1>Hai Good morning!!!</h1>");
}
else
{
document.write("</h1>Good day!!!!!!!</h1>");
}
</script>
</body>
</html>
[/js]
It produces the output as :
if the time is <=10
Hai!!!!Good morning
otherwise
Good day!!!!!!!
Javascript to display date and time
/*This script is used to display the current date and time*/
[js]
<html>
<body>
<script type="text/javascript">
var date=new Date();
document.write(date);
</script>
</body>
</html>
[/js]
The output will be in the following format:Wed Jul 21 2010 15:14:05 GMT+0530 (India Standard Time)
A simple CSS code
/* A Simple CSS code to display A Message*/
[css]
<html>
<head>
<style type="text/css" >
body
{
background-color:blue;
}
h1
{
color:blue;
text-align:center;
}
p
{
font-family:"times new roman";
font-size=20px;
}
</style>
</head>
<body>
<h1> CSS WELCOME!!!</h1>
<p>Hi!!!Welcome To CSS.</p>
</body>
</html>
[/css]
The output will be like this
Hi!!!Welcome To CSS.
Php code to find leap year or not
We can find a year is leap year or not in various ways.we can use the following fuctions in php.
- By using date() function
- By Modulus operator
Here is a sample php code that uses modulus(%)operator for finding the leap year.
Write the below code within php tags
[php]
<code>
<!–?PHP </p–> </code>
<code>$start = 1000;
$end = 1011;
for($i = $start; $i < $end; $i++)
{
if(($i%4) == 0){$val = "Leap Year";}else{$val = "Not Leap Year";}
echo $i, ‘ —> ‘.$val.”;
}</code>
?>
[/php]
It will produce the output as given below.
1000 —> Leap Year
1001 —> Not Leap Year
1002 —> Not Leap Year
1003 —> Not Leap Year
1004 —> Leap Year
1005 —> Not Leap Year
1006 —> Not Leap Year
1007 —> Not Leap Year
1008 —> Leap Year
1009 —> Not Leap Year
1010 —> Not Leap Year
You find leap years for any year ranges by changing the $start and $end.
Does Real Developers Need Designers?
Whether a developer could be mutually work a desktop developer and a Web developer?
“Desktop Developers do not have designers! Inquire anybody that who designed the application and we will scrape our heads and mumble….”
It is very fascinating to imagine about the distinction between desktop and web applications and the level of design each acquires. There is some fact that Desktop applications do not need designers to the level that Web applications do. Actually, the majority of desktop applications have released without the involvement of designers.
While you sense about it, nearly all consistent desktop applications make use of standard windows colors, margins, and controls. That is the beauty with an operating system like Windows. Each and every O.S has its place. But Windows facilitate us with its style. There have built-in Ok and Cancel buttons, and they are normally positioned on the bottom of the page. If you go after the standards for design that have been developed by Microsoft and other operating systems for constructing Windows applications, you hastily understood that there is not that much scope for design. Relatively, you land at creating quite colorless, tedious applications.
Obviously, the monotonous design comes at the benefit of usability. While the application might look dull in general, it will be alike and thus well-known to people. Such resemblance formulates an application much easier to use.
Web applications are not restricted to the equivalent standards as desktop applications. While they are commonly restrained to browsers, the set of laws pertain to desktop applications are not being useful to the web. Actually, with the development of RIAs that use technologies such as AJAX, Flash, and Silver light, there is a bit of a deviation from the standards set for Windows applications.
Without having a designer, Developers have gotten away with building desktop applications. With Web applications, abruptly having a designer is much more essential. By just following the desktop design standards, would not give you a very good looking Web application. In fact, many times it is likely to be seen as gory.
While you can escape with creating desktop applications with the absence of a designer, you cannot do the same, when it comes to Web applications. That’s why, most of the developers who got away with “designing” desktop applications, really require to think twice before believing they are Web application designers.
Top ten antivirus softwares
|
Rank
|
#1
|
#2
|
#3
|
#4
|
#5
|
#6
|
#7
|
#8
|
#9
|
#10
|
||||||||||
|
BitDefender Antivirus | Kaspersky Anti-Virus | Webroot Antivirus | G DATA AntiVirus | ESET Nod32 | ParetoLogic Anti-Virus PLUS | AVG Anti-Virus | Vipre Antivirus + Antispyware | F-Secure Anti-Virus | Trend Micro |
| Lowest Price | $24.95 | $39.95 | $39.95 | $29.00 | $39.99 | $39.95 | $29.99 | $29.95 | $39.99 | $39.95 |
|
Ratings
|
||||||||||
| Ease of Use | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| Effectiveness | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| Updates | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| Feature Set | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| Ease of Installation | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| Help/Support | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|
Updates
|
||||||||||
| Automatic Definition Updates | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| Automatic program Updates | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| Manual Definition Updates | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| Manual Program Updates | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|
Supported Configurations
|
||||||||||
| Windows Vista (32 bit) | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| Windows Vista (64 bit) | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| Windows XP (32 bit) | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| Windows XP (64 bit) | ![]() |
![]() |
![]() |
![]() |
||||||
Rss Feed ColdFusion
ColdFusion is an application server and scripting language used for Internet application development such as for dynamically-generated web sites. ColdFusion is like Microsoft Active Server Pages, Java Server Pages and PHP. Similar to other server-side scripting languages, ColdFusion permits developers to build active WebPages driven by database back-ends.
We can also create Rss feeds using ColdFusion.We can customize the code as per our wish. We can list all the titles of the postings or we can list a posting title with some content.
Here is a sample coldfusion code for listing the blog titles.
To get the rss feed xml file
Then parse the xmlfile by using the code given below.
Search for the “item” tag in the xml file.Assign it to a variable.
Then in a loop display all the titles.It will display 5 titles.To display all the titles, give #ArrayLen(items)# instead of “5”
Print all the titles in an anchor tag.
Loop ends here.
After using the above code, Output will be as given below.













