|
Monday, April 16. 2007
Since we have had those mobile devices well within our reach, we have been constantly on the move, both on the internet and on the damn road. Plus, with wireless internet connectivity, our internet site browsing ventures are now a basic part of our everyday lives. With this, we have so much crap on the data storage systems of our damn machines. This evidently results in so much confusion on our future electronic information accessing and digital communicating ventures.
Now that we usually transact our businesses on the world wide web, interactivity has been a prime aspect for development on this digital platform. Most web developers and designers are constantly monitoring techniques and tactics to increase interactivity without neglecting other important aspects of web design and development. Interactive features and functions can now be seen and felt on the pages of most internet sites. But a site just doesn't have to be interactive, for it should be accessible, informative, usable, and virtually functional to suit our whims as well.
Make it a point to let your internet site viewers closely monitor their activities on your internet site. Doing this would not only create repeat viewings from your audience, but also make their browsing and navigating on your site a worthy experience. This would evidently cause traffic, you know. So, if you actually want to increase the functions of your site's history tracker without violating any policies on privacy and security, I think you should find the codes below very useful. This requires you to modify some variables on your internet site's scripts.
< - start of code - >
bmDomain = "C|/"; <-- domain where tracker works
bmReal = new Array();
bmName = "jtotw"; <-- name of history object
bmTotal = 0;
bmTotalallow = 20; <-- the total number of pages allowed
bmReplayIP = false;
urlLast = "";
< - end of sample - >
Friday, March 30. 2007
 Sometimes, the pace of certain developments of digital information technology makes it pretty hard for some people to keep up with the technology. Thus, they are left in the deep dark depths of misinformation, scrambling their way up towards technological enlightenment with the boom of another technological breakthrough. With this, there emerges some problems with either compatibility, navigation features, etc. Certainly, JavaScript programming is not excluded in the list of the fastest evolving programming languages int his digital world of ours. Thus, it also has its own share of problems regarding its coding language.
Problems regarding namespace collisions usually annoy the JavaScript programmers of the world. This is because most of these programmers do not have accurate tools to check the coding sequences they place in their scripts. With this problem, manual checking should not be an option since it would present you with a fully functional set of codes. Plus, it would also waste your time. So, instead of racking your brains out for a formidable solution for this problem, let me give you a simple solution. Below are the codes which would generally put an end to your namespace collision problems. Just follow the codes below, and enjoy more time in your hands for creating better and more purposeful scripts using JavaScript programming!
< - start of code - >
(function() {
// do your stuffing here!
})();
< - end of sample - >
Thursday, March 29. 2007
The interactive functions on the pages of most internet sites these days are being developed for maximum performance. This is probably because of the development of fast internet connections, in which made the internet viewing population dramatically increase. Now that the internet is a robust industry, web publishers make it a point to integrate JavaScript programming on their internet sites. Well, this just requires the skills of a good web developer for the job.
With this, let me share a tip on how to find the actual superclass of any embedded object on your script for the pages on your internet site, or even your JavaScript program. You can do this by accessing the constructor function property, which in turn gratefully returns (with a newly different operator) the function in which the actual object was functionally created from. All, if not most, objects have inheritance properties from the actual Object object. Study the codes below, and find out what you can do and find with the actual Employee object.
< - start of code - >
function Employee() {
this.dept = "HR";
this.manager = "John Johnson";
}
function printProp() {
var Ken = new Employee();
alert(Ken.constructor);
}
< - end of sample - >
These are the set of codes, and if you then ask for specified property information on the actual constructor, the script would give you a list of Employee functions that are found on your script. Thus, you now have the information you were looking for in the very first place! Isn't the internet more than a handful of handy information that is virtually available to any person anytime and anywhere?
Thursday, March 22. 2007
 In the digital information platform referred to many as the internet, interactivity is one of the main issues being tackled by the web developers and designers of the world. With this, JavaScript programming is becoming big in the field of web design for interactivity. But, CSS and XHTML could also be used so as to provide more than just interactivity. That is, to put in a little dash of accessibility and customizability to the pages of any internet site.
Yet, most web developers and designers use a combination of both so as to tap the maximum potentiality a good web developer or designer could get out of proper web design tactics and techniques. One thing commonly used by CSS designers and developers is creating alternate-styled sheets for various pages on any internet site. But, access to these alternate sheets could be done through the use of interactive tools embedded on the page of an internet site. Yes, of course, using JavaScript programming. With the script above, the internet surfers of the world, regardless of internet site browser, could choose the alternate sheet they prefer to gain access. So, follow the script and try to integrate it on your internet site. But, don't forget to create and thus, include alternate-styled sheets for it to work properly!
< - start of code - >
HTMLLinkElement.getAttribute("rel").indexOf("style") != -1
HTMLListElement.getAttribute("title")
HTMLLinkElement.getAttribute("rel").indexOf("alt") != -1
function setActiveStyleSheet(title) {
var i, a, main;
for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
if(a.getAttribute("rel").indexOf("style") != -1
&& a.getAttribute("title")) {
a.disabled = true;
if(a.getAttribute("title") == title) a.disabled = false;
}
}
}
< - end of sample - >
The script above contains some XHTML codes as well to properly determine the internet site browser being used the proper alternate-styled sheets to access. Plus, it gives the page viewer the power not only to choose which alternate sheet to access, but to change alternate styled sheets between each other at will! Pretty cool, ain't it?
Sunday, March 18. 2007
There are now quite a number of programming codes that are used in designing and developing internet sites on the world wide web, and this maybe due to the continuous development of digital information technology itself. But, JavaScript remains to be the top choice in providing additional functionality and interactivity to the functions and features of most internet sites. Since JavaScript requires knowledge on the most widely used web development tools and programming languages, using this programming language would result in an internet site that is accessible, usable, interactive, and virtually customizable.
One thing that JavaScript has a substantial effect on are the frames that you find on the pages of most, if not all, sites posted on the internet. With this, the problems that most web designers and publishers have regarding page frames are now given a formidable solution. That is, for the frames of a page on an internet site not to confuse itself with other frames either on the site or on other sites. You see, the frames that are often accessed by page viewers often open in other frames found within the internet site, if not on other sites! With the codes below, this situation would be prevented from happening. So, let functional dissemination of the information found on the frames of your internet site begin without confusing the viewer! Well, only if you understand what I mean by the contents on this post, as well as for the codes below!
< - start of code >
<SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT">
passpage = document.URL
if (top.location == self.location)
top.location.href="master.html?" + passpage
</script>
< - end of sample >
Just remember to create a page to be saved as an HTML document with master for its filename. Then, insert the second set of codes below between the head tags while leaving the contents contained by the body tags empty. After doing so, you're all set then!
< - start of code - >
<SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT">
origURL = parent.document.URL
contentURL = origURL.substring(origURL.indexOf('?')+1, origURL.length)
document.write('<frameset cols="20%,80%"><frame src="index.htm" name="nav"><frame src="' + contentURL + '" name="content"><\/frameset>'
</script>
< - end of sample - >
Friday, March 16. 2007
In the world of programming, those who are knowledgeable in the field of digital information platforms usually share the revisions and shortcuts they themselves have happened upon between themselves. This is the exact opposite of what hardware manufacturers do. Yes, they don't share the prototype design of the electronic gizmos they produce. But with the software industry, there's even a thing called open source development! Thus, this feature of open source development generally speeds up the process of development. Plus, this feature can also be found in the programming or developmental languages themselves! I would like to specify JavaScript programming on this post.
With JavaScript programming, I technically know of a shortcut which would generally ease your programming burdens quite a bit. It involves value assignments you hand the variables in those scripts of yours. I bet you do this separately even though you would be wanting to assign the exact values for a number of variables. So, I would gladly provide you with a tip that could bunch up those variables so as to assign the same value to each of them. Quite a time-saving trick now, ain't it? Thus, here are the codes, shown below, and please kindly share it to the novice programmer friends of yours.
< - start of code - >
var one = 1;
var two = 2;
var three = 3;
alert (one + two + three); // Result is 6
one = two = three = 0;
alert (one + two + three); // Result is 0
< - end of sample - >
Thursday, March 15. 2007
< - start of code - >
{
// Check we're working with a DOM compliant browser
if (document.getElementById && document.createElement)
{
var objMenu = document.getElementById('mainnav');
var objNested = objMenu.getElementsByTagName('ul');
// Hide each of the nested unordered list
for (var i=0; i
objNested[i].style.display = 'none';
}
}
< - end of sample - >
The codes above give you the function of hiding various nested lists on either your internet site or your Flash program. Hiding such nested lists in a functional manner are the main interactive feature of such platforms, regardless of the machine you are using for internet and Flash animation viewing, such as handheld electronic gizmos and desktop PCs. Thus, you are one step ahead in creating your internet site to be as interactive as it is visually appealing and informative.
Also, try to know and use the other scripting features brought about by JavaScript programming for either your web development endeavours or your Flash programming ventures. This would increase functionality of your digital creations. The codes above are among the prime examples of simple scripting which would make your creations more interactive. Adding a little creativity to the functions of the script would definitely boost the performance of the script itself.
So, in hiding various nested lists either on your web documents or your Flash program creations, it would thus be best to use the script above over HTML, XHTML, and Flash nested list function codes. Just remember to carefully integrate the functions on the overall markup language you are using with regards to web development and design. Keep posted for some simpler scripts that would provide your programming creations more interactivity and functionality.
Sunday, March 11. 2007
< - start of code - >
var len = 100;
var p = document.getElementById('truncateMe');
if (p) {
var trunc = p.innerHTML;
if (trunc.length> len) {
< - end of sample - >
The codes above are very useful to entertain the viewers of your internet site. Well, what it does is truncate any text enclosed in quotation marks. Sounds simple, don't you think? So why use JavaScript for this feature which seems to be utterly useless to anyone with a mind?
Well, that's because this is a display of simple interactivity provided by your site. Much like high-tech electronic equipment, the simplest pleasures can send most people praising the mind behind the simple magic of interactivity! With the set of codes above, you have the power to define how much a truncated piece of text would either expand or contract! Yes, all to your pleasure, mind you.
Plus, the set of JavaScript codes above also provides the user to either expand or contract the pieces of truncated text anytime at will. Yes, by just a click of the mouse! But, always remember, your site should be accessible to the crawlers of the most popularly known search engines, so try to include the full, or complete, text of truncated lines you provide on your site. How? Well, include it on your site's HTML coding, of course!
Thursday, March 8. 2007
No, this isn't a game in which JavaScript was used to develop a gun-yielding cowboy lost in the deserted woodlands of North Vietnam adventure role playing game. This is about JavaScript which used to bridge the communication gap between the layers of the end of the site, at the front. This area consists of three layers, namely the structural layer, the presentation layer, and behavior layer. The first layer is the XTML layer, which consists of the semantic markup as well as the contents of the said site. On this layer, one may add the presentation layer, which is done using CSS. Plus, JavaScript is used to act as the additional layer, which is behavior layer. The purpose of adding these layers to your site is to make and have your site as visually appealing and user-friendly.
But, these layers should stay separate as possible all the time. It is likely to revise a layer without modifying the other layers. Though the separation that these three layers is rather strict, the specific behavior layer and presentation layer need instructions from structural layer on where to initiate the smooth bit of behavior and add that touch of style. CSS can be employed to act as the trigger for this instructional communications between the three layers, but it defeats the purpose of separating the three layers. This is because using CSS triggers modifies one layer aside from the structural layer, while the latter layer needs to be modified as well. But with JavaScript triggers, it's totally a different thing. Below are the codes for a simple JavaScript trigger, which is the id attribute. It's up to you to carefully study the codes and learn how the triggers bridge the communication gap between the three layers.
< - start of code - >
<div id="navigation">
<ul>
<li><a href="#">Link 1</a></li>
<li><a href="#">Link 2</a></li>
<li><a href="#">Link 3</a></li>
</ul>
</div>
var x = document.getElementById('navigation');
if (!x) return;
var y = x.getElementsByTagName('a');
for (var i=0;i
y[i].onmouseover = addBehavior;
< - end of sample - >
Sunday, March 4. 2007
 With the advent of digital information technology, advertising and marketing systems were revolutionized by the internet. Now, even distribution systems of services and products are changing as well, and are being integrated on the world wide web. With this, having a website is a necessity, specially for businesses and corporations. This is a new machinery in which to house accurate information dissemination between viewers and manufacturers with the use of successful marketing and promotional strategies.
With this, most frequently visited websites hold pop-up advertisements on each page of their website. This is because traffic can be constantly monitored on a website. Having more traffic is like having cold water in Sahara with thousands of people dying of thirst. Yes, your website would be an instant hit with corporations and businesses. They'll gladly pay you with what advertising on your website is worth. If it's worth a billion profits for them, then it'll be a hundreth for you! Thus, I have given the codes below so as to arm you with the necessary knowledge on creating pop-up advertisement windows that doesn't pop off-screen. This is a very good trick, specially if either your clients or yourself need advertisements that would catch the viewer's attention. Plus, you could easily tweak these codes so as to provide you with pop-up advertisements that pops up everytime a mouse cursor passes a designated link on your website. Pretty tactful now, isn't it?
< - start of code - >
<a href="javascript:void(0)"
onmouseover="window.status='Click for more information';
return true"
onClick="displayPopup(1,
'/articles/articles/javascript/popuptext.asp',
'popup3',
document.formtest.testheight.value,
document.formtest.testwidth.value,
(version4 ? event : null));">
<b>Test POPCLICK</b></a>
< - end of sample - >
Friday, March 2. 2007
Mobile devices now offer us internet navigation and browsing, but it definitely does not contain the necessary functions yet to make our mobile internet viewing experience attain the same level with conventional internet viewing. The advances of digital information technologies, apart from communication technologies, certainly gave us the liberty to go both mobile and at the same time wireless. But it's still in the early stages of development for mobile internet browsing. More so, online mobile gaming.
I think a better way to give us access to mobile internet gaming with multiplayer support are having text-based role playing strategy games on the websites dedicated for mobile browsing. I have thus provided sample codes below so as to make you understand the difference between online text-based games that are now accessible to mobile viewing over those that aren't. It makes use of JavaScript, apart from web development languages that are the most widely used.
< - start of sample code - >
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
<html>
<meta name="robots" content="noindex, nofollow" />
<head>
<title>elisabethfreeman.com</title>
<link rel="stylesheet"
type="text/css" href="ef.css">
<script language="JavaScript"
src="http://www.gvisit.com/record.php?sid=6fa9e6bcd79b28
1231231f1610867da5a"
type="text/javascript"></script>
</head>
<body onload="setMenu();">
<table><tr><td>
<div id="mainsplash">
<div id="splash">
<img src="Images/Splash_3840.jpg" />
</div>
<a class="highlight"
ref="about.html">About</a><br />
<a class="highlight"
href="http://elisabethfreeman.blogspot.com/"> Blog </a><br
/>
<a class="highlight" href="books.html"> Books
</a><br />
<a class="highlight" href="photos.html">
Photography </a><br />
<a class="highlight" href="technology.html">
Technology </a><br />
<a class="highlight" href="noteworthy.html">
Noteworthy </a><br />
</div>
</td></tr></table>
</body>
</html>
< - end of sample - >
This makes use of JavaScript codes so as for the pages of the website to be accessible and customizable at the same time. JavaScript codes are used so as to provide gamers with the interactivity they want in their online gaming ventures. So make it a point to design text-based online games using JavaScript and CSS so as to provide you with accessibility, customizability, and interactivity that you know you need to provide the gamers of the world.
Thursday, February 22. 2007
So you want to create a digital game which you dream of propelling among the ranks of the best loved digital role playing games of all time? Just like dreams, information, especially with the advent of modern communication technologies, are pretty much free these days. What if I tell you that all you need is just the right information in creating games of all sorts? But what if I even tell you of a fact contradicting a well known myth about not being able to use JavaScript programming in the creation and further development of digital games?
With this, I formally announce the reality of using JavaScript programming to develop games without using Java in the process. So much for the myth now, don't you think? Plus, I have even included below a sample, yes, a sample, of what JavaScript programming in the field of gaming is all about! Just read on, but I won't promise you'd be able to understand what it means, why it's such, and how it's supposed to be! 'Cause it would be up to you and your brain to digest and further analyze the codes below! Just like how you view good digital entertainment, sit back, relax, and enjoy the ride!
< - start of code - >
<html>
<head>
<title>Rebound
<body >
<h1>Rebound
<div id="playingArea">
<div id="paddle">
<img src="paddle.gif">
</div>
<div id="ball">
<img src="animageofaball.gif">
</div>
<div id="score">
Score: -1
</div>
</div>
</body>
</html>
< - end of sample - >
These codes are the basic codes in creating the elements you will need for a game called Rebound. You will first have to know this in order for you to absorb the rudiments of JavaScript programming, and what it can do in game design and development. With this, JavaScript programming promises to be even more fun than just integrating more interactivity on websites!
Sunday, February 11. 2007
 ASP sites are sites that are server based and not client-based, so the security and safety of your codes that you write down from prying eyes are assured, but this also brings in certain problems. Yes, it makes browser compatibility issues forgotten history, but it also brings in the problem about interactivity - for those sites take time to react since your code is not put in and executed in the client browser! Here is where javascript comes in.
Interactivity has been the main thing since fast internet connections were devised, so javascript also has an answer to this issue involving ASP sites and its succeeding interactivity. What use are graphical sites, Flash animations, workable videos and audio, and the rest when you compensate interactivity for security? With this javascript code, nothing is compensated, at the very least neglected!
< - sample code - >
string popupScript = "";
< - end of sample - >
The code above is a C# derivation, which is exactly similar to the javascript code used to allow pop-up windows to, yes, pop up on an ASP site. There it is, so you just go your own way and read about how and why that small piece of code answers the problem of enhancing ASP sites. Just remember to make it known to everyone you know so as for the ASP world to be a better place for everyone, and thus make the world kiss their ASP problems good riddance!
Friday, February 9. 2007
There are two ways in which you can load a script, specifically a javascript, on the pages of your website for it to do wonderful and equally interesting things on the page, thus adding a little more dimension to the viewing experience your website's viewers would be getting. If you like your site to be more graphical than informative, so be it, then, go use digital images from your collection, but always remember to take into consideration our screen reader user friends out there, always waiting for that really accessible and equally interesting website to browse. Thus, begin your journey, first by editing those digital photos you have with a good photo editor, and finally go learn the codes I have attached here before using those photos so as to improve the foundation your graphical website would be laid upon.
< - sample code - >
<script type="text/javascript">
function saySomething(message)
{
alert(message);
}
saySomething('Why is it always Hello World?');
</script>
< - end of sample - >
In the script above, we have done the first method, which is to directly write down the code inside an element, and by doing so, we would have made a javascript on a page of your website. This javascript code, or at least the method we took in adding it to a page, has its flaws, specifically the problems it raises with text-only browsers, which usually renders the codes as it is - text. For your readied photos, I suggest you learn Flash instead of javascript programming, for javascript is based mainly on the functions it adds to your website, and not the graphical looks of it!
Monday, January 29. 2007
Javascript programming provides you with a wide variety of options to customize the web pages of your website. In addition, you could even create animations and excellent functionalities to the pages of your website. This is because Javascript programming is very flexible and customizable.
Included in the basics of Javascript programming is the coding language of the document object model. Also known as DOM, it refers to everything on the pages of your website. Everything pertains to tables, links, images, form fields, etc., which are all found on the pages of your website.
Below is a sample Javascript that adds elements to a fill-out form asking for a name and contact number. Without the Javascript below, the form in .html would be limited to a certain number of names and contact numbers. But, through this Javascript, you can now lift the limitations set by the usual HTML coding system:
<! - sample code - !>
var inputs = 0;
function addContact(){
var table = document.getElementById('contacts');
var tr = document.createElement('TR');
var td1 = document.createElement('TD');
var td2 = document.createElement('TD');
var td3 = document.createElement('TD');
var inp1 = document.createElement('INPUT');
var inp2 = document.createElement('INPUT');
if(inputs>0){
var img = document.createElement('IMG');
img.setAttribute('src', 'delete.gif');
img.onclick = function(){
removeContact(tr);
}
td1.appendChild(img);
}
inp1.setAttribute("Name", "Name" +inputs);
inp2.setAttribute("Name", "Email"+inputs);
table.appendChild(tr);
tr.appendChild(td1);
tr.appendChild(td2);
tr.appendChild(td3);
td2.appendChild(inp1);
td3.appendChild(inp2);
inputs++;
}
function removeContact(tr){
tr.parentNode.removeChild(tr);
}
<table>
<tbody id="contacts">
<tr>
<td colspan="3"><a href="javascript:addContact();">Add a Contact</a></td>
<tr>
<tr>
<td></td>
<td>Name</td>
<td>Email</td>
</tr>
</tbody>
<! - end sample - !>
When saved in .html or .xml format, it would provide you with a web form that is not limited to the normal restrictions of HTML coding. You could check out more Javascripts on the internet regarding your needs. Enjoy.
Saturday, January 13. 2007
 When you write a code, sometime you want a specific block of code to repeatedly in a row. You may add several lines that resemble the block you want to be activated over and over again in your script or you can use loops to perform this task. There are two loops that are available in the JavaScript language: the “for loop” and the “while loop”. The “for loop” runs through a block of code set in a specified number of times. The “while loop” runs through a block of code if the specified condition is returned true.
The For Loop in JavaScript may resemble other for loops in other programming languages. It actually used when you need to perform a task many times over which is set in a specified frequency. There are 4 aspects of the for loop: the counter variable, the code, the conditional statement and the increment section. The counter variable is created to keep track the number of times the for loop has looped, I hope that was clear for you. The conditional statement is the deciding factor of the loops activation. The increment section is where the counter variable is increased after every loop. Of course, without the code there’s nothing so it’s the most important aspect of the for loop.
Friday, January 12. 2007
JavaScript relies heavily on formulation accurate statements for the codes to function well. One of the statements used in the JavaScript are the conditional statements. We use conditional statements in our daily lives, not just in JavaScript programming, think of it as betting against someone. If you win the race, then you will receive the prize. The last sentence is an example of an if/then statement that is used a lot in programming.
Its mechanics is pretty simple to understand. The outcome of the problem depends on a Boolean statement (true or false). A condition is presented, in this case winning the race, if the condition true, an action is taken and you will receive the prize, if the condition is false then no action is taken so the default situation will remain.
Conditional Statements are used to manipulate the actions of your script, depending on the situation. If you want your page to display a different message each day of the week or a special greeting during a holiday, you will use conditional statements on your script. This makes your page more dynamic and interactive, attracting the attention of web surfers.
Monday, January 8. 2007
 Previously, I said that there are three types of pop up boxes available in the JavaScript: the alert, confirm, and the prompt. Out of the three, the alert box is the simplest and most commonly used and the confirm box is a modified version of the former. Now, we will discuss the last and most complicated pop up box, the prompt. Wait, before we go any further I’ll make my previous statement clear: when I said complicated, I didn’t mean it’s hard to do, in fact it’s quite simple. What I meant was the other two had a more simple code structure.
A prompt box asks information about the user, his name for example, when a true or false statement is not enough. When the browser triggers the code which actives the prompt dialogue, a pop up box will appear which asks the user to input an information. It is used to allow the user to personalize the site in some extent. Although many find it useless and annoying at times, you can’t deny its existence so might as well use it, right?
Here is a sample of a prompt dialogue box asking the user his name:
<! Code Sample !>
<html>
<head>
<script type="text/javascript">
function disp_prompt()
{
var name=prompt("What is your name?","")
if (name!=null && name!="")
{
document.write("Hello " + name + "! This is an example of a promot dialogue box")
}
}
</script>
</head>
<body>
<form>
<input type="button" onclick="disp_prompt()" value="Display a prompt box">
</form>
</body>
</html>
<! End Sample !>
Sunday, December 24. 2006
 I am one of those people who like to keep track of time and dates. You could say that I am a pretty much organized individual. I like jotting down activities in my organizer. I certainly can't live without my watch. My wristwatch by the way also shows the date. That's how much of an organized freak I am. Don't take me wrongly. It's just that I want everything to be in order.
Knowing the exact time and date makes me move freely. This is because I have allotted enough time for every activity that I want or need to do for a certain day. I even put the date and time on my website! In this manner, there is absolutely no reason for me to forget what the time is.
Placing the time and date on the title/heading bar of your document is easy as 1, 2, and 3. It's just a matter of knowing the right codes, copying, and pasting them into your document. Afterwards, you'll find that you already have the date on your title bars.
To make things easier for you guys, here is the JavaScript code that I used.
<!--------- CODE SAMPLE --------!>
<script language="JavaScript">
<!--
function writeIt() {
// getDate
var now = new Date();
var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();
// quadYear
function y2k(number){return (number < 1000) ? number + 1900 : number;}
// glueIt
today = days[now.getDay()] + " " +
months[now.getMonth()] + ", " +
date + " " +
(y2k(now.getYear())) ;
if(document.all || document.getElementById){ // Browser Check
document.title = today.toString();
}else{
self.status = today.toString(); // Default to status.
}
}
writeIt();
//-->
</script>
<!-------- END SAMPLE --------!>
</textarea>
Saturday, December 23. 2006
 Java Script is considered as the statement of web pages in the form of scripts and widely used in the world of internet. Here the scripts are written by using codes. The codes in Java Script are located in the pages of HTML which can also be improved by using these codes. You can put fantastic elements in your scripts and exchange the images by moving the cursor on the objects. With JavaScript you are not required to have the best software. However, you are required to have web browser and the text editor. The web server however is not necessary in the project. The interesting part of this is that you can even apply these codes in your personal computers.
JavaScript codes are put by web designers in their web page in order to create better effect in the web page. The codes are simple texts that are being typed in the text editor located in the HTML inside the SCRIPT tag. Below is an example of a script.
<IMG BORDER="0" ALIGN="Left" SRC="yourimage.jpg"> Your Text
When you put this code inside the HTML the image you have chosen will appear in the upper left side of your text. If your text is long it will wrap automatically the image.
<IMG BORDER="0" ALIGN="Right" SRC="yourimage.jpg"> Your Text
In this code your chosen image will appear in the upper right side of your text. And like the first code, your image will be wrapped by the text if it is long.
Friday, December 22. 2006
 JavaScript has been said to be the language of every website. It is used to enhance the webpage by using codes. There are many applications you can do to your script by using JavaScript.
First you can rotate the image sequence and display it. Aside from making them rotate, you can also select a background image that will depend on you personal choice. However, if you do not like to select just one image you can just use the rotation for you to be able to use all the images in the selection list. When you find it hard to solve for the value of X in Mathematics using the quadratic equation, JavaScript can do it for you. Further, there are snippets that can be used to look for the system which is operating. The browser may also be used.
There are also called the breadcrumb links which enable the users to connect to any of the pages in its way. It will automatically produce the links as the visitor tries to connect. Your webpage can become livelier by not just putting animated characters from JavaScript; you can also put a background music to become more entertaining for the browsers.
Saturday, November 25. 2006
 JavaScript is an object-oriented programming language developed by Netscape Corporation but under the registered trademark of Sun Microsystems, Inc. JavaScript is more commonly known in its use in web development. However, JavaScript is also used in accessing and modifying objects embedded in other applications.
Although JavaScript may be confused with Java programming language , the two are not related. It was on December of 1995 that JavaScript was introduced. The coding system of JavaScript is much simpler than other object-oriented languages. JavaScript enable websites to offer interactive features such as menus.
|
|
Comments