Monday, December 22, 2014

marquee code-Creating HTML Marquee Code-marquee code

You can create a scrolling marquee (such as scrolling text or scrolling images) by using the <marquee> tag. You can make the text/images scroll from right to left, left to right, top to bottom, or bottom to top - it's your choice!

examples:

1-

Slide-in text:

Code:


 <marquee behavior="slide" direction="left">Your slide-in text goes here</marquee>


2-

Continuous scrolling text:

Code:

 

 <marquee behavior="scroll" direction="left">Your scrolling text goes here</marquee>

3-

Text bouncing back and forth:

Code:

 <marquee behavior="alternate">Your bouncing text goes here</marquee>

 

4-

Text Scrolling Upwards:

Code:

 <marquee  behavior="scroll" direction="up">Your upward scrolling text goes here</marquee>

 

5-

Change the Scrolling Speed:

Code:

 <marquee behavior="scroll" direction="left" scrollamount="1">Slow scroll speed</marquee>
<marquee behavior="scroll" direction="left" scrollamount="10">Medium scroll speed</marquee>
<marquee behavior="scroll" direction="left" scrollamount="20">Fast scroll speed</marquee>

 

6-

Scrolling Images:

Code:


 Simply replace the src="... part with the location of your own image.

 <marquee behavior="scroll" direction="left"><img src="/pix/smile.gif" width="100" height="100" alt="smile" /></marquee>

 

7-

Images & Text (Both Scrolling):

Code:

 

Simply add your text under the image tag (but still within the marquee tags).

 <marquee behavior="scroll" direction="left">
<img src="/pix/smile.gif" width="100" height="100" alt="smile" />
<p>Sample text under a <a href="/html/codes/scrolling_images.cfm">scrolling image</a>.</p>
</marquee>


wait us for new lessons  


 

 

 

 

Sunday, December 21, 2014

slide show-how can you create simple slide show on your website-slide show

here i explain how can you create simple slide show for your website ...by yourself only

this code you can put it inside body contain
and now you must do this steps to be slide show appear as a good slide show

1- make a new folder by name: images contain subfolder slider in slider folder you will put images with the names ...clear at the code below such as:img_1_blank.jpg
you can put a lot of images
 

          <div  id="slider"  class="nivoSlider templatemo_slider">
            <a href="#"><img src="images/slider/img_1_blank.jpg" alt="slide 1" /></a>              
            <a href="#"><img src="images/slider/img_2_blank.jpg" alt="slide 2" /></a> 
            <a href="#"><img src="images/slider/img_3_blank.jpg" alt="slide 3" /></a>                
            <a href="#"><img src="images/slider/img_4_blank.jpg" alt="slide 4" /></a>                    
        </div>
             <div class="templatemo_caption">
                    <div class="templatemo_slidetitle">Global Security</div>
                                                         

and for more slide show you can visit:

Slideshow

Thursday, December 11, 2014

Html - Very Important Tools For Web Pages- part 1

you can found here at these sites very important tools for web pages (part 1)




 here you can found interactive, virtual pets you can adopt 
to put on your webpage, live journal, xanga, blog, etc... for free




 here you can found Glitter Maker, Myspace Glitter 
Maker, Free Myspace Glitter Maker, Myspace Glitter Graphics
    


 

 here you can found Myspace Comments, Cute Glitter 
Graphics, Summer Quotes,Cute Backgrounds, Cute Myspace
 Graphics, Cartoon Dolls




 here you can found free image hosting, free video
 hosting, image hosting,video hosting, photo image hosting





 here you can found the largest selection of Facebook 
Layouts, Myspace Layouts, Myspace Backgrounds and Myspace 
Codes on the internet. We now offer the Dislike Button for Facebook

wait us for over 200 very important sites for

 very important tools for web pages


how to build PHP HTML Form



PHP HTML Form Example

Use this example as a form walkthrough. We will briefly build an HTML form, and call the form data using PHP. PHP offers several methods for achieving this goal, so feel free to substitute alternative methods as you follow along. Our example will show you a method using a single .php file, combining both PHP and HTML in one simple text file, to retrieve the data and display the results. Below is a quick review of bullets, check boxes, text fields, and input fields and using them to build a form to retrieve some personal information about our user.

Building the HTML Form

Step 1 is to build the form document to retrieve user date

 The code below shows a simple html form document set up to retrieve some personal knowledge about our user.

Input Fields

Input fields are the simplest forms to grasp. As mentioned in the Forms Tutorial, just be sure to place the name attribute within the tags and specify a name for the field. Also be aware that for our form's action we have placed the $PHP_SELF super global to send our form to itself. We will be integrating more PHP code into our form as we continue on so be sure to save the file with a .php extension.

Code:

<html>
<head>
<title>Personal INFO</title>
</head>
<body>
<form method="post" action="<?php echo $PHP_SELF;?>">
First Name:<input type="text" size="12" maxlength="12"
name="Fname">:<br />
Last Name:<input type="text" size="12" maxlength="36"
name="Lname">:<br />

Radios and Checkboxes

The catch with radio buttons lies with the value attribute. The text you place under the value attribute will be displayed by the browser when the variable is called with PHP.
Check boxes require the use of an array. PHP will automatically place the checked boxes into an array if you place [] brackets at the end of each name.

Code:

...
Gender::<br />
Male:<input type="radio" value="Male" name="gender">:<br />
Female:<input type="radio" value="Female" name="gender">:<br />
Please choose type of residence::<br />
Steak:<input type="checkbox" value="Steak" name="food[]">:<br />
Pizza:<input type="checkbox" value="Pizza" name="food[]">:<br />
Chicken:<input type="checkbox" value="Chicken" name="food[]">:<br />

Textareas

In reality, textareas are oversized input fields. Treat them the same way, just be aware of the wrap attribute and how each type of wrap will turn out. PHP relys on this attribute to display the textarea.

Code:

...
<textarea rows="5" cols="20" name="quote" wrap="physical">Enter your favorite quote!</textarea>:<br />

Drop Down Lists & Selection Lists

These two forms act very similar to the already discussed radio and checkbox selections. To name a selection form, place the name attribute within the select tags at the beginning of the form, and then place the appropriate value to fit each option.

Code:

...
Select a Level of Education:<br />
<select name="education">
<option value="Jr.High">Jr.High</option>
<option value="HighSchool">HighSchool</option>
<option value="College">College</option></select>:<br />
Select your favorite time of day::<br />
<select name="TofD" size="3">
<option value="Morning">Morning</option>
<option value="Day">Day</option>
<option value="Night">Night</option></select>:<br />
Be sure to check through your code to double check for bugs or errors especially look at each name attribute to be sure your names are all correct. As far as names go, you can copy the ones shown or simply make up your own, just be sure you remember what they are. Your form should be similar to the one shown here.

Display:


First Name:
Last Name:
Gender:
Male:
Female:
Favorite Food:
Steak:
Pizza:
Chicken:

Select a Level of Education:

Select your favorite time of day:

Submission Button

We mentioned that the submission button was missing. Now's the time to throw it into the existing code. The button is the same as any submission button, the only thing we need to be sure to add is a name to it so we can call it later using PHP.
Code:
...
<input type="submit" value="submit" name="submit"><br />
</form><br />

Retrieving Form Data - Setting up Variables

In PHP there lies an array used to call data from our form. It's a superglobal of PHP and it's one that is great to have memorized. $_POST retrieves our form data and output's it directly to our browser. The best way to do this, is to make variables for each element in our form, so we can output this data at will, using our own variable names. Place the following lines of code at the top of your form file using the correct PHP syntax.

Code:

<?php
$Fname = $_POST["Fname"];
$Lname = $_POST["Lname"];
$gender = $_POST["gender"];
$food = $_POST["food"];
$quote = $_POST["quote"];
$education = $_POST["education"];
$TofD = $_POST["TofD"];
?>
All we are doing here is making easier variable names for our form output. With the above statements, we can call our data with ease! Any capital letters under the name attribute must match up with your statements above, avoid overly complicated names to simplify your debugging process and it can save you some frustration as well.

$PHP_SELF; - Submission

For the form action, we will call PHP's $PHP_SELF; array. This array is set up to call itself when submitted. Basically, we are setting up the form to call "formexample.php", itself. Here's a glimpse of how to do just that.

Code:

...
$quote = $_POST["quote"];
$education = $_POST["education"];
$TofD = $_POST["TofD"];
?>
<html>
<head>
<title>Personal INFO</title>
</head>
<body>
<form method="post"
action="<?php echo $PHP_SELF;?>">
...
We now have a completed form ready to recieve data and display results. However, we need to adjust things so that once the data has been submitted we are directed to the results. Typically, we have a completely new .php file that recieves our HTML form data. In this scenerio, we will use an if statement to display first our form, and then our form results upon submission. This is a practical method when entering information into databases as you learn more.
For now here's a look at our complted form document thus far.

Code:

<?php
$Fname = $_POST["Fname"];
$Lname = $_POST["Lname"];
$gender = $_POST["gender"];
$food = $_POST["food"];
$quote = $_POST["quote"];
$education = $_POST["education"];
$TofD = $_POST["TofD"];
?>
<html>
<head>
<title>Personal INFO</title>
</head>
<body>
<form method="post" action="<?php echo $PHP_SELF;?>">
First Name:<input type="text" size="12" maxlength="12"
name="Fname"><br />
Last Name:<input type="text" size="12" maxlength="36"
name="Lname"><br />
Gender:<br />
Male:<input type="radio" value="Male" name="gender"><br />
Female:<input type="radio" value="Female" name="gender"><br />
Please choose type of residence:<br />
Steak:<input type="checkbox" value="Steak" name="food[]"><br />
Pizza:<input type="checkbox" value="Pizza" name="food[]"><br />
Chicken:<input type="checkbox" value="Chicken" name="food[]"><br />
<textarea rows="5" cols="20" name="quote" wrap="physical">Enter your favorite quote!</textarea><br />
Select a Level of Education:<br />
<select name="education">
<option value="Jr.High">Jr.High</option>
<option value="HighSchool">HighSchool</option>
<option value="College">College</option></select><br />
Select your favorite time of day:<br />
<select name="TofD" size="3">
<option value="Morning">Morning</option>
<option value="Day">Day</option>
<option value="Night">Night</option></select><br />
<input type="submit" value="submit" name="submit">
</form>

Page Display

At this point we have a completed form with correct action and submission. We now need to do a little programming to achieve what we want displayed before and after a certain event. Before the user submits any information. We need to first direct them to our form (obviously) and second, we will display their results using our variable names.
PHP offers an excellent way to create this effect using an if statement. Place the following lines near the top of your formexample.php file.

Code:

<?php
$Fname = $_POST["Fname"];
$Lname = $_POST["Lname"];
$gender = $_POST["gender"];
$food = $_POST["food"];
$quote = $_POST["quote"];
$education = $_POST["education"];
$TofD = $_POST["TofD"];
if (!isset($_POST['submit'])) { // if page is not submitted to itself echo the form
?>

Echo Back the Results

Here, we echo back the results in a boring, line by line method, just to show some basic syntax.(feel free to be creative here) We use the else clause of our if statement to direct the users to our results section.

Code:

...
<option value="Night">Night</option></select>
<input type="submit" value="submit" name="submit">
</form>
<?
} else {
echo "Hello, ".$Fname." ".$Lname.".<br />";
echo "You are ".$gender.", and you like ";
foreach ($food as $f) {
echo $f."<br />";
}
echo "<i>".$quote."</i><br />";
echo "You're favorite time is ".$TofD.", and you passed ".$education."!<br />";
}
?>
Here's the completed code

Code:

<?php
$Fname = $_POST["Fname"];
$Lname = $_POST["Lname"];
$gender = $_POST["gender"];
$food = $_POST["food"];
$quote = $_POST["quote"];
$education = $_POST["education"];
$TofD = $_POST["TofD"];
if (!isset($_POST['submit'])) { // if page is not submitted to itself echo the form
?>
<html>
<head>
<title>Personal INFO</title>
</head>
<body>
<form method="post" action="<?php echo $PHP_SELF;?>">
First Name:<input type="text" size="12" maxlength="12" name="Fname"><br />
Last Name:<input type="text" size="12" maxlength="36" name="Lname"><br />
Gender:<br />
Male:<input type="radio" value="Male" name="gender"><br />
Female:<input type="radio" value="Female" name="gender"><br />
Please choose type of residence:<br />
Steak:<input type="checkbox" value="Steak" name="food[]"><br />
Pizza:<input type="checkbox" value="Pizza" name="food[]"><br />
Chicken:<input type="checkbox" value="Chicken" name="food[]"><br />
<textarea rows="5" cols="20" name="quote" wrap="physical">Enter your favorite quote!</textarea><br />
Select a Level of Education:<br />
<select name="education">
<option value="Jr.High">Jr.High</option>
<option value="HighSchool">HighSchool</option>
<option value="College">College</option></select><br />
Select your favorite time of day:<br />
<select name="TofD" size="3">
<option value="Morning">Morning</option>
<option value="Day">Day</option>
<option value="Night">Night</option></select><br />
<input type="submit" value="submit" name="submit">
</form>
<?
} else {
echo "Hello, ".$Fname." ".$Lname.".<br />";
echo "You are ".$gender.", and you like ";
foreach ($food as $f) {
echo $f."<br />";
}
echo "<i>".$quote."</i><br />";
echo "You're favorite time is ".$TofD.", and you passed ".$education."!<br />";
}
?>

HTML Interview



HTML Interview Questions :

What does HTML stand for?
Answer :
HTML stands for Hyper Text Markup Language. Hyper Text is the organization of information units into connected associations that a user can choose to make. Markup Language is how to display the objects. Therefor, HTML is the organization of data displayed onto a web page.
What are stand-alone procedures?
Answer :

Procedures that are not part of a package are known as stand-alone because they independently defined. A good example of a stand-alone procedure is one written in a SQL*Forms application. These types of procedures are not available for reference from other Oracle tools. Another limitation of stand-alone procedures is that they are compiled at run time, which slows execution.
Was XML created to replace HTML? Or will XML ever replace HTML?
Answer :

It is a fact that the problem with HTML is that combines “data” with the “presentation” details, but XML was not necessarily created to replace HTML, rather it was created with a much broader vision – a universal format to structured data. HTML is, and will remain, the primary backbone of the Web. However, the benefits of XML will soon be seen in HTML as well, which is evolving as XHTML 1.0 (HTML 4.01 in XML syntax). So, to answer the question: No, XML was not created to replace XML and it will not completely replace HTML; however it is being used to update HTML for better Web.
What is an HTML tag?
Answer :
An HTML tag is a syntactical construct in the HTML language that abbreviates specific instructions to be executed when the HTML script is loaded into a Web browser. It is like a method in Java, a function in C++, a procedure in Pascal, or a subroutine in FORTRAN.


What is JSP?
Answer :
Let’s consider the answer to that from two different perspectives: that of an HTML designer and that of a Java Programmer.
If you are an HTML designer, you can look at JSP technology as extending HTML to provide you with the ability to seamlessly embed snippets of Java code within your HTML pages. These bits of Java code generate dynamic content, which is embedded within the other HTML/XML content you author. Even better, JSP technology provides the means by which programmers can create new HTML/XML tags and JavaBeans components, which provide new features for HTML designers without those designers needing to learn how to program.

How HTML Works?
Answer :
HTML is made up of a series of tags, which are similar to commands, telling the web browser what to do. These tags can be typed into any normal  text editor such as Notepad or Simple text, and when in the right order, form a web page. Writing HTML then is simply, writing tags. Throughout this tutorial, you will be learning different tags in HTML.
How do I know if my HTML is correct?
Answer :

It’s good to validate your HTML. Just because you can see the Web page ok on your browser doesn’t mean every browser will show it that way, or even be able to access the Web page. Browsers attempt to “work around” HTML errors, and the differences can be subtle or drastic. That’s why the folks at WC3 have worked up the specifications of what works for every browser. Although some may display it a little different, at least you know they can access your page. (The different browser programs have their own set of “whistles and bells” that just won’t do the same… especially Microsoft Internet Explorer and Netscape Navigator.)
What is XHTML?
Answer :

Is simple words, XHTML,  or Extensible HTML, is HTML 4 with XML rules applied to it (each begin tag must have an end tag, attribute values in single/double quotes, etc.). However, the overall vision of XHTML is much more than that. In addition to using XML syntax for HTML, XHTML also encloses specifications such as XHTML Basic (minimal set of modules for devices such as PDAs), XForms (represents the next generation of forms for the Web, and separates presentation, logic, and data), XML Events (provides XML languages with the ability to uniformly integrate event listeners and associated event handlers), etc.

Differences Between XML and HTML
Answer :
Some Differences between XML and HTML:
XML
HTML
User definable tags
Defined set of tags designed for web display
Content driven
Format driven
End tags required for well formed documents
End tags not required
Quotes required around attributes values
Quotes not required
Slash required in empty tags
Slash not required

How do you create tabs or indents in Web pages?
Answer :
There was atag proposed for HTML 3.0, but it was never adopted by any major browser and the draft specification has now expired. You can simulate a tab or indent in various ways, including using a transparent GIF, but none are quite as satisfactory or widely supported as an official tag would be.
Answer :
The Mac and the PC use slighly different color palettes. There is a 216 “browser safe” color palette that both platforms support; the Microsoft color picker page has some good information and links to other resources about this. In addition, the two platforms use different gamma (brightness) values, so a graphic that looks fine on the Mac may look too dark on the PC. The only way to address this problem is to tweak the brightness of your image so that it looks acceptable on both platforms.
What are dimensions?
Answer :
Dimensions are categories by which summarized data can be viewed. E.g. a profit summary in a fact table can be viewed by a Time dimension, Region dimension, Product dimension.


Answer :
Init() When the page is instantiated, Load() - when the page is loaded into server  memory,PreRender () - the brief moment before the page is displayed to the user  as HTML, Unload() - when page finishes loading.
What is the property available to check if the page posted or not?
Answer :
The Page_Load event handler in the page checks for IsPostBack property value, to ascertain whether the page is posted. The Page.IsPostBack gets a value indicating whether the page is being loaded in response to the client postback, or it is for the first time. The value of Page.IsPostBack is True, if the page is being loaded in response to the client postback; while its value is False, when the page is loaded for the first time. The Page.IsPostBack property facilitates execution of certain routine in Page_Load, only once (for e.g. in Page load, we need to set default value in controls, when page is loaded for the first time. On post back, we check for true value for IsPostback value and then invoke server-side code to update data).
Answer :

In situations like, where the copy on write bit of a page is set and that page is shared by more than one process, the Kernel allocates new page and copies the content to the new page and the other processes retain their references to the old page. After copying the Kernel updates the page table entry with the new page number. Then Kernel decrements the reference count of the old pfdata table entry.
 In cases like, where the copy on write bit is set and no processes are sharing the page, the Kernel allows the physical page to be reused by the processes. By doing so, it clears the copy on write bit and disassociates the page from its disk copy (if one exists), because other process may share the disk copy. Then it removes the pfdata table entry from the page-queue as the new copy of the virtual page is not on the swap device. It decrements the swap-use count for the page and if count drops to 0, frees the swap space.
How do I specify page breaks in HTML?
Answer :

There is no way in standard HTML to specify where page breaks will occur when printing a page. HTML was designed to be a device-independent structural definition language, and page breaks depend on things like the fonts and paper size that the person viewing the page is using.


The page looks good on one browser, but not on another.Why?
Answer :
There are slight differences between browsers, such as Netscape Navigator, Mozilla Firefox,Microsoft Internet Explorer, in areas such as page margins. The only real answer is to use standard HTML tags whenever possible, and view your pages in multiple browsers to see how they look.
Answer :

Use the CELLPADDING and CELLSPACING attributes of the table tag.
What does the broken image icon mean?
 Answer :

That means an image should go in that space, and there is a file by the name of the image that is supposed to go there, but the browser cannot display it. Most likely the image has been corrupted in the FTP transfer or is an image format other than .gif or .jpg.
Do I need to have the # mark in front of color hex codes?
Answer :

Not by today’s browser requirements. However, there are still some older level browsers out there and it would be nice to allow them to read your pages with few or no errors.
How do I make a graphic a link?
Answer :
Including the "img" tag between the "a href" tag and the "a" closing tag:
<A xhref="http://www.snowhawk.com/wildlife.html"><IMG xsrc="leopard.jpg"  WIDTH="25" HEIGHT="25" ALIGN="top" BORDER="0" ALT="link to wildlife"></A>






VB Script Interview Questions :
What is VB Script ?
Answer :

VB Script is a scripting language developed by Microsoft. With the help of this scripting language you can make your web pages more dynamic and interactive.
VB Script is a light version of Visual basic and it has an easy syntax.
VB Script is widely used and most popular as a client side scripting language. In html language you use < and > around the tags. But you can use many tags inside one pair of < % and % >. For Printing a variable you can use < % = % >.



What is the scope of a variable ?
Answer :

The scope of a variable defines whether a variable will be accessible in the whole function or will be accessed only to its local instance.I have defined earlier in the tutorials that they can also be deemed as a local variables or can be deemed as a global variables.
For ex.
< script >
Dim name
Sub cmdclickme_OnClick
Dim age
End Sub
< / script >

It is clear from the above example about the scope of the variable that the variable name will be available to the whole script as it is declared outside sub procedure so enhance his behaviour to the global as compared to the variable name age which is defined inside the sub procedure hence making his behaviour local and will be only accessed in this sub procedure only.




How to Assign values to a variable ?
Answer :

Simple you have to declare a variable name and assign any value.
For ex. Name = “Chandra”
Status=False
Age=30

Now all the above variables has been assigned values.This is a simple way to declare and assign related values to a variable.
Answer :

VbScript deals with a single datatype called variant. Datatype means the kind of the data a variable will store.It can be a character data,string data,number data , byte data and a Boolean data. But you don’t have to worry in Vb Script as it only has a datatype of variant to store any type of data.

Sub Type
Description
Boolean
True or False
Integer
Integers between –32768 and 32767
Long
Long data between –2147483648 and 2147483647
String
Character Strings
Single
Large Number with decimal points
Null
No valid data
Currency
Monetary values
Byte
Integers from 0 and 255
Date
Date and time
Double
Large numbers with decimal points

How to Add VB script to web pages ?
Answer :

There are scripting languages like Javascript and Vbscript and they are designed as an extension to html language.The Web browsers like Microsoft Internet Explorer receives the scripts along with the rest of the web page document. It is the browser responsibility to parse and process the scripts. These scripts are widely used as a client side scripting languages.

Total Pageviews