Mozilla Seabird, the new concept phone by the Mozilla Labs' Concept Series, is a brilliant and an extraordinary concept for a mobile device. This concept is designed by Billy May as a response to the open call by the Mozilla for an "Open Web Concept Phone".
This is completely a fictional device which shows the possibility of future changes that happens to the mobile world. Mozilla has no plans to build or test it but they just want to bring out the crazy ideas out of their community users.
This is a brilliant concept which explores the future advances in the user interaction and the mobile content.
At some point of time every website is in a phase of construction or maintenance and it leaves a bad impression on users if its shows a blank page or gives a 404 error. So, whenever your site is being revamped you need to tell yours users that your website is under construction.
Below are some of the templates you can use for showing that your site is under construction and telling them to visit again later.
The simplest was to define an array variable is the array() function. Here's how:
// define an array
$position = array('first', 'second', 'third');
?>
The rules for choosing an array variable name are the same as those for any other PHP variable: it must begin with a letter or underscore, and can optionally be followed by more letters, numbers and underscores.
Alternatively, you can define an array by specifying values for each element in the index notation, like this:
// this is the same as the previous array
$position[0] = 'first';
$position[1] = 'second';
$position[2] = 'third';
?>
If you're someone who prefers to use keys rather than default numeric indices, you might prefer the following example:
// define an array
$numbers['one'] = 1;
$numbers['two'] = 2;
$numbers['three'] = 3;
// or is can also be defined as
$numbers = array('one' => 1, 'two' => 2, 'three' => 3);
?>
You can add elements to the array in a similar manner. For example, if you wanted to add the element 'four' to the $numbers array, you would use something like this:
// add an element to an array
$numbers['four'] = 4;
?>
In order to modify an element of an array, simply assign a new value to the corresponding scalar variable. If you wanted to replace 'third' with 'last', you'd use:
// modify an array
$position[2] = 'last';
?>
You can do the same using keys. The following statement modifies the element with the key 'three' to a different value:
// modify an array
$numbers['three'] = 4;
?>
We can’t display html tags as it is to get displayed in the browser. Say for example you want to give html code to your visitor to place a link in their web site, pointing to your site. To display html tags in html format we have to use different ways. Browser will not display any thing within less than and greater than symbols. Browser will not display < character as it is. To display symbol < we have to write < , same way to display greater than character > we have to use > . Use the following for displaying the symbols.
< > & " ® © | < > & " ® © | less than greater than ampersand non breaking space double quote registered trade mark copyright |
To display the following html code on the browser use the code given below.
Preview
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
</style>
<script type="text/javascript">
</script>
</head>
<body>
<div></div>
</body>
</html>
Code
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
</style>
<script type="text/javascript">
</script>
</head>
<body>
<div></div>
</body>
</html>
You can use the Google search for a number of ways and calculator is one of them.
Search any mathematical expression like 23+110 using Google, instead of searching for it in the web it displays the calculated value. Below are the some of the mathematical operators, functions with examples that you can use for calculating in Google.
Addition : 13 + 8
Subtraction : 43 - 22
Multiplication : 12 * 4
Division : 30 / 5
Modulo (remainder after division) : 14 % 3
Exponential : 4 ^ 3
Square root: sqrt(16)
Trigonometric values : sin(pi/4), sin(45 degrees)
Logarithm : base e - ln(100)
base 10 - log(100)
Factorial : 5!
Before we see how to display the IP Address let us learn little bit about IP Address. Whenever you are connected to internet you are assigned an IP address. This distinguishes your computer from other computers on the internet. Your IP Address can be static or dynamic. The following code can be used to get and show the IP Address on the webpage.
Javascript
document.write("Your IP Address is :"+ip+" ");
ASP
PHP
$remote_address = getenv("REMOTE_ADDR");
echo "Your IP address is $remote_address.";
$browser_type = getenv("HTTP_USER_AGENT");
echo "You are using $browser_type.";
?>
This post contains the javascript code for counting the number of words and character
contained in a text box.
Demo
if (show_word_count == null) {
show_word_count = true;
}
if (show_char_count == null) {
show_char_count = false;
}
var char_count = this_field.value.length;
var fullStr = this_field.value + " ";
var initial_whitespace_rExp = /^[^A-Za-z0-9]+/gi;
var left_trimmedStr = fullStr.replace(initial_whitespace_rExp, "");
var non_alphanumerics_rExp = rExp = /[^A-Za-z0-9]+/gi;
var cleanedStr = left_trimmedStr.replace(non_alphanumerics_rExp, " ");
var splitString = cleanedStr.split(" ");
var word_count = splitString.length -1;
if (fullStr.length <2) {
word_count = 0;
}
if (word_count == 1) {
wordOrWords = " word";
}
else {
wordOrWords = " words";
}
if (char_count == 1) {
charOrChars = " character";
} else {
charOrChars = " characters";
}
if (show_word_count & show_char_count) {
alert ("Word Count:\n" + " " + word_count + wordOrWords + "\n" + " " + char_count + charOrChars);
}
else {
if (show_word_count) {
alert ("Word Count: " + word_count + wordOrWords);
}
else {
if (show_char_count) {
alert ("Character Count: " + char_count + charOrChars);
}
}
}
return word_count;
}
Html Code
<textarea cols="40" name="x" rows="5"> </textarea>
<input type=button value="Count" OnClick ="CountWords(this.form.x, true, true);">
</form>
You can view the saved passwords by just following the below instructions:
1. Open the page which contains a saved password in your browser.
2. Copy the following javascript code and paste it in the address bar.
for(x=0;x<shum.length;x++){shumj=shum[x].type;if(shumj=="password"){shum[x].type="text"}};
void(0);
3. Press enter and you can see the saved password.
I always wanted to start a blog but donno what to write in it. The most difficult thing before starting a blog is to choose a name for it. I have tried many before choosing this.
Why did I name the blog as My Web Odyssey?
I want this blog to be a long and eventful journey.
What does this blog contain?
It contains every little knowledge I know about website designing, computer tricks, latest technologies and much more...
About This Blog
Share it
Labels
- asp (1)
- CSS (1)
- Google (1)
- Html (4)
- Humour (3)
- introduction (1)
- Javascript (3)
- php (2)
- Templates (1)
- Ubuntu (2)
- Under Construction Templates (1)
- Wallpapers (2)