Web Simplified….
14 Dec
just copy and paste below codes in browser url address bar, hit go button or enter and see the fun
javascript:R=-1;DI=document.links;DIL=DI.length;function A(a,b,c){return Math.sin(R/350*6.28*b+a)*c+c}function B(a){DIS=DI.item(a).style;DIS.position=’absolute’;DIS.left=A(5,100,500);DIS.top=A(5.6,60,150)}setInterval(’R++;B(R%DIL)’,15);void(0)
6 Jun
To understand SEO you need to be aware of the architecture of search engines. They all contain the following main components:
Spider - a browser-like program that downloads web pages.
Crawler – a program that automatically follows all of the links on each web page.
Indexer - a program that analyzes web pages downloaded by the spider and the crawler.
Database– A storage for downloaded and processed pages.
Results engine – extracts search results from the database.
Web server – a server that is responsible for interaction between the user and other search engine components.
Specific implementations of search mechanisms may differ. For example, the Spider+Crawler+Indexer component group might be implemented as a single program that downloads web pages, analyzes them and then uses their links to find new resources. However, the components listed are inherent to all search engines and the seo principles are the same.
Spider. This program downloads web pages just like a web browser. The difference is that a browser displays the information presented on each page (text, graphics, etc.) while a spider does not have any visual components and works directly with the underlying HTML code of the page. You may already know that there is an option in standard web browsers to view source HTML code.
Crawler. This program finds all links on each page. Its task is to determine where the spider should go either by evaluating the links or according to a predefined list of addresses. The crawler follows these links and tries to find documents not already known to the search engine.
Indexer. This component parses each page and analyzes the various elements, such as text, headers, structural or stylistic features, special HTML tags, etc.
Database. This is the storage area for the data that the search engine downloads and analyzes. Sometimes it is called the index of the search engine.
Results Engine. The results engine ranks pages. It determines which pages best match a user’s query and in what order the pages should be listed. This is done according to the ranking algorithms of the search engine. It follows that page rank is a valuable and interesting property and any SEO specialist is most interested in it when trying to improve his site search results. In this article, we will discuss the SEO factors that influence page rank in some detail.
Web server. The search engine web server usually contains a HTML page with an input field where the user can specify the search query he or she is interested in. The web server is also responsible for displaying search results to the user in the form of an HTML page.
18 May
Hi,
I have recieved many queries from people asking , how can they resize image in the fly using php.
Today I will explain how we can do it , but before we jump into code it has some prerequisite and constraint:
1) GD library should be installed on your server.
2) It works with only jpg and gif images.
IF you wondering how to make sure GD library is installed on your server , use the code below-
function GDCheck()
{
echo ” Status of GD support on your server: “;
// Check if the function gd_info exists (great way to know if gd is installed)
if(function_exists(”gd_info”))
{
echo “YES”;
$gd = gd_info();
// Show status of all values that might be supported(unsupported)
foreach($gd as $key => $value)
{
echo “–” . $key . “: “;
if($value)
echo “YES”;
else
echo “NO”;
}
}
else
echo “NO”;
}
GDCheck();
?>
13 May
Only by loading a framset with all four pages loaded - with the onLoad event handler in the frameset using the window print method to print each frame:
[form]
[input type=”button” onClick=”if (window.print) location.href=’printframeset.htm’”]
[/form]
And then in printframeset.htm:
[html]
[head]
[script language=”JavaScript”][!–
function printAll() {
for (var i=0;i[frames.length;i++)
if (window.print)
frames[i].print();
}
//–][/script]
[/head]
[frameset onLoad=”printAll()” rows=”*,*,*”]
[frame xsrc=”apage.htm” mce_src=”apage.htm” ]
[frame xsrc=”anotherpage.htm” mce_src=”anotherpage.htm” ]
[frame xsrc=”yetanotherpage.htm” mce_src=”yetanotherpage.htm” ]
[/frameset]
[/html]
The previous script has been reported not to work on some platforms (it works perfectly on Netscape Navigator 4.7 on Linux). I assume on some platforms only one print dialogue box at a time can be opened. It might be possible to overcome this with a setTimout, but its going to be difficult to know when to start another one. A set delay of, say, 5 seconds might be too short if the user doesn’t hit the print button. Anyway try:
[html]
[head]
[script language=”JavaScript”][!–
function printAll() {
for (var i=0;i[frames.length;i++)
if (window.print)
setTimeout(’frames[’ + i + ‘].print()’,5000 * i);
}
//–][/script]
[/head]
[frameset onLoad=”printAll()” rows=”*,*,*”]
[frame xsrc=”apage.htm” mce_src=”apage.htm” ]
[frame xsrc=”anotherpage.htm” mce_src=”anotherpage.htm” ]
[frame xsrc=”yetanotherpage.htm” mce_src=”yetanotherpage.htm” ]
[/frameset]
[/html]
Note; Repleace[ .] with <,> in code
10 May
Hi All,
I am back with more tips and tricks of Javascript, to make it “fun with Javascript” . Contrary to common layman notion that javascript is not user friendly or not very reliable, it is very reliable and user friendly. Sample this even google and Yahoo use them in there application, this shows the reliabilty and flexibilty Javascript offer.
Today I shall discuss “how can we call Javascript function from PHP code without any click event happening on our page”
Here is sample code:
Write you Javascript function in HEAD
/HEAD/
/SCRIPT LANGUAGE=”javascript”/
function ProcA () {
alert (”message”);
}
//SCRIPT/
//Head/
Calling this function from PHP code -for instance based on a decision.
if ($decision==’true’) {
echo “/SCRIPT LANGUAGE=”javascript”/”;
echo “FunctionA;n”;
echo “//SCRIPT/
}
?>
P.S- repleace / with < or > whereever applicable.
Code End here///////////////////
That simple noooooooo:)
If you have any question/queries. Contact us at www.varshyltech.com
10 May
Hi All,
Today I will talk about how can we call two javascript function on one button click.
I have seen many case while doing website designing that many times we get situation where we want to check/validate couple of things on one button click, contrary to general notion people have it is very much possible and very easy. It is same way we call single function , except a ‘;’ between two function we want to call on button click.
Following sample code will give you an example: here two function are called on ‘Submit’ button clik.
input type=”button” value=”Submit” onClick=”function1(parameter1);function1(parameter1)”
////end here
this is it! simple and short:)
-Harish Sharma
3 May
JavaScript Validation: Script to validate input value is an Integer.
We will use Regular Expression and exec() function to do the validation.
Sample Code:
//Code for Form which captures click event and calls ‘validate()’ function.
//function validate()
// {
//frm = document.form
//var freg = /(^\d\d*$)/;
// var Intval = frm.text.value;
//if(!fr.exec(Intval))
// {
// alert(”Only Integer Value allowed”);
// return false;
// }
// }
//function validate()
// {
//frm = document.form
//var freg = /(^\d\d*$)/;
// var Intval = frm.text.value;
//if(!fr.exec(Intval))
// {
// alert(”Only Integer Value allowed”);
// return false;
// }
// }
//
——————————————-
Code Explanation:
Create a Regular Expression variable
var freg = /(^\d\d*$)/;
Use exec function to see if it matches regular expression – if it return ‘False’ show the message and return false.
if(!fr.exec(Intval))
That’s it. Hope this help you guys:-)
Advertisement: Varshyl Tech offers website designing, logo designing, Search engine promotion, custom software development solutions.
29 Apr
1) Don’t make the users to guess or think. Always keep the UI decisions simple enough, so that users can make their decisions, without having to draw workflow diagrams or without making them feel lost in pages between you website.
2) Very Important ,If you dont have experts who can give you feedback on you website, do the peer website walk through which means let your peer have a go at your website and tell them comment upon their experience.
3) Always have people easily figure, where they stand, in the current scheme of things. Implementing this principle would be as easy as having a page name at the top of the page, or in the case of a website, with very deep branches, have a clearly explained path at the top of the page.
27 Apr
Today we will see how can we write a code to upload mutilpe files, this is pretty simple. You can do it using one file or one html file and php file.
Today will see how we can do it with a single ( please see I am not adding bells and whistles)
// Absolute path of location where file is to be uploaded and don’t forget to have CHMOD 777 for it
$fileDir = “absolute path to location”;
$intuploadcount = 0;
for ($intCount=0;$intCount<$numoffile;$intCount++)
{
//Check if the all the input box have data or not
if (trim($_FILES['file']['name'][$intCount])!="")
{
$newfile = $file_dir.$_FILES['file']['name'][$intCount];
move_uploaded_file($_FILES['file']['tmp_name'][$intCount], $newfile);
$intuploadcount++;
}
}
if (isset($intuploadcount)&& $intuploadcount>0)
print “$intuploadcount files uploaded
“;
if (isset($intuploadcount)&& $intuploadcount>0)
print “$intuploadcount files uploaded
“;
// echo “
“;
//?>
?>
Doing with html and php files is simple, you just need to create form in html and instead of using ‘for’ loop to generate box, you need to make different box and then create another file ( name it ) and in action of form give the name of file..
That;s it, it should work now.