|
|
| |
|
A convient way of telling the viewer a message after they click a link (and before they are taken to the page) is to use a JavaScript Alert ... EXAMPLE: It's very easy to do... just add the onClick attribute to your anchor tag and set it's value to the JavaScript ALERT function ...like this: Be SURE all your quotes and spacing is EXACTLY as follows: <a href="URL" onClick="alert('Put your message here')">Link Text Here</a> If you change the onClick to onMouseover... you'll get this: You cannot effectively build web pages without knowing and using the keyboard methods of Cut, Copy and Paste... to learn about Cut, Copy & Paste search Google for " cut copy paste"! Webpages can be significantly enhanced and can become more useful to the viewer by incorporating CGI Scripts in their Source Codes... To understand more about how to use CGI (Common Gateway Interface) Scripts for a webpage, Read This Information For PC Users only, if you Bookmark this page and then Browse away from the page, then Browse back and Refresh, and then if you look up into the
Address Bar on your Browser for this page, you'll see a small
Icon You can make one for your page by using any Image Editor, but it MUST be 16x16 pixels in size and have a file type of .ico You can use IrfanView to convert your Image files to .ico type! Most popular Browsers will find the Icon if you place this HTML Code into your <head> section: <link rel="shortcut icon" href="address_to_your_icon_image" type="image/x-icon"> Read more about Favicons at Favicon.Com ... Good Luck! Forms are useful when you want to Interact with your readers and Forms take on many shapes and styles such as Text Input Boxes, Textarea Input Boxes, Check Boxes, Radio Buttons, Drop Down Menus etc...here's an example: (NOTE: The info will submit but not be processed since we Closed Our Design Contest!) Join Our Webpage Design Contest ... Please Enter Your Info Here ... Please Only ONE Entry Per Webmaster: Forms are created using HTML Form Tags but Forms
need a Script (usually JavaScript) to PROCESS them!
You should take some
time to You should also Read Our Form Mail Tutorial for more information... AND if your server doesn't allow or supply you with CGI Form Mailer Scripts (to Process the Form and Email the input data to you) then try a Remotely Hosted one at Response-O-Matic ... they are Fully Customizable and Reliable! NOTE: Using a simple Form Action of "mailto: ..." to Process a Form is NOT accurate and NOT cross-browser reliable and must NOT be used! Using an FTP (File Transfer Protocol) Program to copy your HTML Documents back and forth from your PC to your online Web Host Server is fairly easy... we have written an FTP Tutorial which you should read to help you along... Microsoft's Gradiant Colors can be used with the following codes, but are only visible if you are using Internet Explorer: style="filter:progid:DXImageTransform. The "gradiantType" can be set to '0' for vertical flow, or to '1' for horizontal flow, and "startColorStr" is the starting color (use color names or hex numbers), and "endColorStr" is the ending color... You can apply the style to any element that has "layout" ie elements that have width and height, but it is best used with table cells or div elements:
<td style="filter:progid:DXImageTransform. If you are using Internet Explorer now, you can see an Example of Gradient Colors in this HTML Table, which has a normal Green background color, but which will flow to Yellow for only IE Browsers! By using the Convient Tool at This Microsoft Site ... you can make Gradient Backgrounds to work in Other Major Browsers! Check this out in Firefox or Chrome: There are a few ways to make Horizontal Lines for a webpage... Use the HTML Tag <HR> with it's attributes: noshade, invertborder, align, width, size and color... NOTE: Some of these attributes are not supported on every browser! Here are some Examples with the code below each: <hr width="50%" align="left"> <hr width="100" noshade> <hr width="150" size="5" align="right"> Another way to make COLORED Horizontal Lines is to use a Table and use a bgcolor in the cell and to keep the cell from "collapsing" and to vary the line HEIGHT put an invisible single pixel gif in the cell and use the image attributes "width" and "height"... <table width="150" cellspacing="0" cellpadding="0" border="0"><tr><td width="150" bgcolor="green"><img src="/images/dotclear.gif" width="150" height="10"></td></tr></table> And still another way is to use single pixel gifs of various colors which you have made and stored in your Image files...
<img src="/images/dotcolor.gif" width="?" height="?"> It's important to understand the process that takes place (in a few seconds) when you request a webpage, by typing the URL into your address box, or by clicking a link etc. Please refer to the diagram below and read the information listed below the diagram...
NOTE: This entire process is repeated for every element on the webpage that has it's own URL... Images, Remote Stylesheets, Remote Javascripts etc. ...however a certain "keep-alive" time period is created which eliminates several of these steps for repeated Requests... If you want to create Links within a specific IMAGE on your page...(This is called Image Mapping)... Put these codes into your source (for "Client Side Image Maps") NOTE: Be advised that Search Engines CANNOT follow Image Map Links: <img
src="URL of Image Here" width="?" height="?"
usemap="#mymap1" alt="image map"> IMPORTANT: The values (x,y) are the upper left corner coordinates for where you want your LINK BOX OUTLINE to appear...and the (X,Y) are the lower right corner coordinates for the box! ["x or X" being the Horizontal cooridinate, and "y or Y" being the Vertical cooridinate] To find these coordinates
on your Image... you can use You can make as many Links as you want within your image (be reasonable)...if you want to Image Map another Image on the same page you must use a different name for the new map such as "mymap2" etc. Want to know how to link from one place on a page...to a different place on the same page... This is called INTERNAL LINKING and is done by "naming" the link at the place where you want the link to goto... To "name" the link, do this at the exact PLACE in the source code, where you want the link to goto: <a name="name1"></a> THEN make a link to that place (from anywhere else on the same page) like this: <a href="#name1">LINK TEXT HERE</a> IN ADDITION: You can now link to that place on the that page FROM ANY OTHER PAGE by putting a link on any other page like this: <a href="URL of THAT PAGE#name1">LINK TEXT HERE</a> Just add #name1 to the very end of the URL...let's say the URL is http://davmagic.com/PAGES38.html then you would write it like this: http://davmagic.com/PAGES38.html#name1 For more links, just change the names to name2, name3 etc. but be sure to match them up correctly...remembering case sensitivety! A simple way to change the color of your link text for a specific link is to insert the SPAN tag within the Anchor Tag and use the STYLE Attribute for the SPAN tag, to indicate a color for the text... this is called using CSS (Cascading Style Sheets) code: <a href="URL"> <span style="color:#??????">Link Text</span></a> A better way is to use the STYLE TAG (CSS code) and create a "class" for the specific link colors ...then assign that link to the class! So in your HEAD Section put: <style
type="text/css"> Use whatever color values you want... then write your link like this in your BODY Section: <a href="URL" class="myname">Link Text</a> The default setting for most Browsers is to have all the text links UNDERLINED... to eliminate the underlining put this CSS code in your HEAD section: <style
type="text/css"> Then if you want to CUSTOMIZE your non-underlined links, with a Custom Underline, when the mouse is over them, or in the static state or both... Read This Information Here's our "cool" example: Mouseover This Link Another KOOL CSS way to underline ANY regular text and control the color and thickness and style of the underline: <span
style="border-bottom:3px dotted green;"> Example: Some of Your Text Here to be custom underlined (just change the thickness, color or style in the CSS to suit your taste!) If you have a one cell table with a link in it, it will look like this:
Notice how you have to point your mouse over the link TEXT to get the link to become active... By using a little CSS (Cascading Style Sheets) code, namely the "display" property, you can make the whole single cell table linkable... Now point your mouse anywhere in the cell below, and the link becomes active:
Just write your link like this: <a style="display:block" href="URL">Link Text</a> Before we discuss real JavaScript MouseOver Effects using Images, here is a method using the STYLE TAG and CSS Coding that will give the effect of having a color change for text or background behind text when the mouse is moved over a text link: Now put your mouse over the Dummy Link below to see the effect: Notice how the color changes and an underline is added... Here is the code that goes into your Head Area: <style type="text/css"> And then write your link like this: <a class="one" href="URL">TEST LINK</a> Find help on CSS AT THESE SITES If you want to have a Form
Box on your page that will show information when you pass your
mouse over a link: First put this JavaScript into your HEAD section: <script type="text/javascript"> <!-- Begin function atext(txt) { document.aform.atext.value = txt return true;} // End --> </script> Now add this Form box to your Body section where ever you want...you can change it's size by changing the variables... <form
name="aform"> Now write your Links like
this: <a href="URL"onMouseover='atext("Text")'target= _top>LINK</a> If you want to have an
Image Change to another Image and then Back...when you Mouseover
and Mouseout First put this code into your HEAD section: <script type="text/javascript"> <!--
Begin function
move_out(img_name,img_src) { // End
--> Then put this code into
your BODY section for each place where you want a mouseover effect
but be sure for each new mouseover effect to give each image a new
name...(name="button2") (name="button3")...and include that name in
the onMouseover/onMouseout tags! <a
href="URL Here" onMouseover="move_in('button','firstimg.gif')"
onMouseout="move_out('button','secondimg.gif')"> SUBSTITUTE your own URL's for the "firstimg.gif" and "secondimg.gif" and make them the same size... OR... you can avoid using a separate script, and make use of the browser's built-in javascript code "this.src" by writing your link like this: <a href="url"><img src="image_1.gif" onmouseover="this.src='image_2.gif'" onmouseout="this.src='image_1.gif'" width="xxx" height="yyy" border="0" alt="Text" /></a> If you want do do the Mouseover Image Effect that we have at the top of our Front Page NOTE: Wait for the Images to load...you can use these codes... Put this into your HEAD SECTION: <script type="text/javascript"> <!--
Begin alarge.src
= "alarge.gif"; function
doButtons(picimage) { // End
--> YOU NEED TO SUBSTITUTE YOUR OWN URL's FOR "alarge.gif", "blarge.gif" and "clarge.gif" (You also need a BLANK image for "blank.gif" to use in the link code To Act As A SPACE Holder) Now write your links like
this: <a href = "URL's Here" onMouseover= "doButtons('alarge.gif')" onMouseout = "doButtons('blank.gif')"> Link Text Here</a> Do the same for the rest of your links but change the image URL's for each one...leave the "blank.gif" the same... Then put this Image Code where you want the Images to SHOW: <img name="picture" src="blank.gif" width="??" height="??" border="0"> MAKE SURE ALL YOUR IMAGES ARE THE SAME SIZE! |