Showing posts with label safety tips for the internet. Show all posts
Showing posts with label safety tips for the internet. Show all posts

Sunday, July 17, 2011

How to Creating an active drop-down list using CGI

So you have to make a JavaScript drop-down list of options on your Web page to navigate your site. What about visitors without Javascript-browser? If you no other way to have to get your site, your visitors without JavaScript can result in a loss.

Here's how to handle the above problem with a server-side CGI script to the drop-down list, instead of solving client-side JavaScript. They wonder why someone would take care of even with a JavaScript solution, when a CGI solution to accommodate others? Now, install unfortunately most internet provider is not new CGI scripts into free space, they offer. The other reason is, even if you have CGI access, installing CGI scripts requires experience and patience, if you've never been a CGI script before installing.

First, look for the CGI script itself. We use the Perl language to the CGI script to write because it is the most common server scripting language for web servers. Do not forget to adapt the following script file extension "*. txt" from the "*. pl" or "*. cgi" on your web server needs. Since there is no standard instructions that operate on any web server when you install CGI scripts in Perl, we are not here at this time. Your internet provider must be able to let you know if you have CGI access and to specific instructions on your web server.


#!/usr/bin/perl

sub xcgi_InitForm
{
  my($h) = '[a-fA-F0-9]';
  my($buff, @params, $param);
  my($param_name, $param_value);
  local(*xcgi_form) = @_ if @_;

  read(STDIN, $buff, $ENV{'CONTENT_LENGTH'});

  @params = split(/&/, $buff);

  foreach $param (@params)
  {
    ($param_name, $param_value) = split(/=/, $param);

    $param_value =~ tr/+/ /;
    $param_value =~ s/%($h$h)/pack("C",hex($1))/eg;

    $xcgi_form{$param_name} = $param_value;
  }
}

{
  my(@form);

  xcgi_InitForm(*form);

  $url = $form{'url'};
  print "Location: $urlnn";
}
Listing #1 : PERL code. Download redir.pl (0.44 KB).
Once you get the above CGI script installed on your server, let's say under "/cgi-bin/redir.pl" on your server, simply create an HTML form with a dorp-down list named "url" as follows:
<form method="POST" action="/cgi-bin/redir.pl">

<SELECT NAME="url">
<OPTION VALUE="http://www.chami.com/tips/">
Select a page to visit and click GO</OPTION>

<OPTION VALUE="http://www.chami.com/tips/html/">
HTML Tips</OPTION>

<OPTION VALUE="http://www.chami.com/tips/windows/">
Windows Tips</OPTION>

</SELECT>

<input type="SUBMIT" value="GO">
</form>
Listing #2 : HTML code. Download dropdown.html (0.35 KB).
Your drop-down list choices should be listed in-between <SELECT ...> and </SELECT> tags. The URL for the choice should be listed under the VALUE attribute and the display name of the choice should be in-between <OPTION ...> and </OPTION> tags. For example, to add a choice named "Chami.com home page" with the web page address "http://www.chami.com/" add the following tags to the above form.
<OPTION VALUE="http://www.chami.com/">
Chami.com home page</OPTION>
Listing #3 : HTML code. Download option.html (0.2 KB).

Your site is a privacy policy?

If you are a commercial website or a high visibility is a good idea to publish your privacy policy so that your visitors, as you know the information they handle. Here is a list of topics you can cover in your data protection statement:


    
* Automatic Information: When you use Web server logs information about it, see what pages visitors IP address, host name, browser type or other information that is gathered automatically by the software to your visitors, the type of information you collect and how to use them. For example, you can manage using the browser type information to your pages for specific browsers and other information in the web server logs closely and correct technical problems.
     
    
* Cookies: If one of your servers or other software, such as servers use cookies, use the banner, why and how you cookies. For example, you can use cookies in online shopping carts is necessary for the proper functioning of this software. Also explain how visitors can cookies by turning them into their browsers to refuse and, if all parts of your website can be accessed by no more.
     
    
* Personal information: As you collect your personal data use by visitors should be documented here. For example, if the visitor can purchase products online, explain whether you or you share the information you collect to sell to third parties. Also explain why it is necessary to obtain personal information like age, whether your product for adults. The parents may be especially interested if your site request personal information from children without adult supervision.
     
    
* Security: Explain what steps have you taken to secure and protect the information you collect from visitors. For example, if you receive credit card information on the web account if you secure protocols like SSL (Secure Socket Layer) / digital IDs to protect information transmitted between the browser and the Web server.
     
    
* Public Forums: tell visitors that the information that is publicly on several areas of your site. For example, the information on the forums, guest books, forums and newsgroups can be made available to be read by others and you should warn visitors to be cautious when posting personal information about them. Also explains how to manage the information collected from surveys, auctions, electronic newsletters, contests and sweepstakes, you may have on your site.
     
    
* Advertisers: If you display third-party ad company ads on your site, please inform your visitors about it. Also explain how outside ad companies to use cookies and other methods of gathering information to target ads to visitors. Please pass this information even if you only have one free banner exchange on your pages.
     
    
* External Links: Fast recognize not all web site links to external sites, but your visitors, they can be sent to a third party site when they click links to your site. If you have external links that explain that you are not responsible for the content or security of third-party websites.
     
    
Contact *: Finally, can provide information to your visitors to contact you if they have questions about your privacy.
     

 
Need Help? Try the Wizards privacy policy below, but make sure the text read to them and to refine the statement to fit your site. Do not forget a link to your privacy policy on your homepage and other high ranking pages to add visible.


How to create text links in different colors

Would you like to use multiple colors for your text links, rather than using a single link color for the whole page?

You can change the color of the entire page with links to LINK and VLINK following attributes in the BODY tag as a starting point:


<body link="yellow" vlink="yellow">

<a href="/tips/">
This link will be yellow.
</a>

</body>
Listing #1 : HTML code. Download bodyclr.html (0.21 KB).
But, how can you have one link colored in red, another in green and so forth? You may notice how the following method does not work:
<font color="red">
<a href="/tips/internet/">
Internet
</a>
</font>

<br>

<font color="green">
<a href="/tips/windows/">
Windows
</a>
</font>

<br>

<font color="blue">
<a href="/tips/programming/">
Programming
</a>
</font>
Listing #2 : HTML code. Download linkclr1.html (0.25 KB).
Result:
Internet Windows Programming
Now let's try taking above tags and moving FONT tags inside A tags (anchor or link) as follows:
<a href="/tips/internet/">
<font color="red">
Internet
</font>
</a>

<br>

<a href="/tips/windows/">
<font color="green">
Windows
</font>
</a>

<br>

<a href="/tips/programming/">
<font color="blue">
Programming
</font>
</a>
Listing #3 : HTML code. Download linkclr2.html (0.25 KB).

How can Explorer, Netscape Navigator, Mozilla or Opera Standard

A review this browser that your default browser - the browser opens when you click the HTML files, if you have a URL in the Windows "Start | Run" input box, etc?
 
During installation, both Internet Explorer and Netscape Navigator browser will ask if you want to be your default browser. Here's how it could change the default browser when the browser is installed on the system:
 
Internet Explorer 6.x, 5.x, 4.xMozilla Firefox 1.x, Firebird 0.x, Mozilla 1.xNetscpae: 7.x, 4.xOpera 7.x
 
Internet Explorer 5.x and 6.x:

    
* Select "" Tools | Internet Options "," from the main menu in Explorer.
     
    
* The "" Programs "tab change".
     
    
* Check the "" Internet Explorer should check whether the default browser "option".
     
    
* Click "" OK "."
     
    
* Close all Explorer windows and restart the system. Once the system is rebooted, restart Explorer.
     
    
* When "" Do you want to [Internet Explorer] your default browser? "" Appears, click "" Yes "," to make Explorer the default browser.

 
Internet Explorer 4.x:

    
* Select "" View | Internet Options "," from the main menu in Explorer.
     
    
* The "" Programs "tab change".
     
    
* Check the "" Internet Explorer should check whether the default browser "option".
     
    
* Click "" OK "."
     
    
* Close all Explorer windows and restart the system. Once the system is rebooted, restart Explorer.
     
    
* When "" Do you want to [Internet Explorer] your default browser? "" Appears, click "" Yes "," to make Explorer the default browser.

 
Mozilla 1.x:

    
* Select "" Edit | Preferences "," from the main menu of Mozilla.
     
    
* Switch to "" Navigator "," tab / section.
     
    
* Click "" Set Default Browser "" button.
     
    
* Click "" OK "."
     
    
* Connect (Start for best results, the system) all windows Mozilla. Finally, restart Mozilla.

 
Mozilla Firefox 1.x:

    
* Select "" Tools | Options "" in the main menu in Firefox.
     
    
* Switch to "" General "tab" / section.
     
    
* Check "" Firefox should check if the default browser when starting "" option.
     
    
* Click "" OK "."
     
    
* Connect (Start for best results, the system) all Firefox windows. Finally, restart Firefox.
     
    
* When "" Would you do it [Firefox] your default browser? "" Appears, click "" Yes "" to Firefox as my default browser.

 
Mozilla Firebird 0.x:

    
* Select "" Tools | Options "" in the main menu of Firebird.
     
    
* Switch to "" General "tab" / section.
     
    
* Click "" Set Default Browser "" button.
     
    
* Click "" OK "."
     
    
* Connect (Start for best results, the system) all the windows of Firebird. Finally, restart Firebird.

 
Netscape 7.x:

    
* Select "" Edit | Preferences "," from the main menu in Netscape.
     
    
* Switch to "" Navigator "," tab / section.
     
    
* Click "" Set Default Browser "" button.
     
    
* Click "" OK "."
     
    
* Connect (Start for best results, the system) all the windows in Netscape. Finally, restart Netscape.
     
    
* When the "" Netscape 7.x is not currently set as default browser. Would you like to your default browser? "" Appears, click "" Yes "" to Netscape the default browser.

 
Netscape Navigator / Communicator 4.x:

    
* Open the file prefs.js in [Communicator installation directory] \ Users \ [profile name] is located (eg C: \ Program Files \ Netscape \ Users \ prefs.js) with a text editor.
     
    
* Make sure the following line exists and is false. If it does not exist, create it at the end of the file.
     
      
user_pref ("browser.wfe.ignore_def_check", false);
     
    
* Save the changes to the file and close it.
     
    
* Close all windows and restart Communicator.
     
    
* When "" Do you want [Communicator] your default browser? "" Appears, click "" Yes "" Communicator the default browser.

 
Opera 7.x:

    
* Select "" File | Preferences "," from the main menu of the Opera.
     
    
* Switch to "" default application "" button.
     
    
* Check "" Check if Opera is default browser on startup "option".
     
    
* Click "" OK "."
     
    
* Connect (Start for best results, the system) all windows Opera. Finally, restart Opera.
     
    
* When "" Do you want to use Opera as the default application to display web pages? "" Appears, click "" Yes "" at the Opera as default browser.

To show the logo of your website in the address bar and favorites list

You want your site stand out in crowded favorites lists in browsers and address bars? How is it your company logo to the left of your site.
 
You must first create a logo for your website, a logo very small, to be exact. The size of the logo should be 16x16 pixels in size and there should be a Windows icon file stored (logo.ico for example). If your image editor does not support saving files in Windows icon format, you can use the following online or download an icon editor from a shareware site.
 
Source image:

 
Overview:Overview FavIconOverview FavIconOverview FavIconOverview FavIconOverview FavIcon
 
Once you have an icon file with your logo, you are ready to take the final step. The following methods are used in Explorer 5.x and without adverse effects work on other browsers.
 
Method 1

    
This is the easiest method to implement and is independent of the respective part of the work on your site users choose to add their favorites list. Do not worry if you do not have access to the root of your website, take a look at the following method.
   
    
If you have access to the root directory of your website, simply save your icon file as "favicon.ico" there. For example, if your site "www.chami.com", you must keep your icon file to be available "www.chami.com / favicon.ico". The web browser will look for favicon.ico, if your site is added to your favorites and if the root of your site is found, the icon appears next to the link to your site.

 
Method 2

    
If you do not have access to the root of your site, you need the following tag to your web page so the browser knows where your symbol. Unlike in the past, this time, you can save the icon under any name with the suffix ". Ico" We are called "logo.ico" and assume that your website in the directory "~ your_directory".
   
    
Links <"shortcut icon" rel =
           
Href = "/ ~ your_directory / logo.ico">
    
Listing 1: HTML code. Logo.htm Download (0.2 KB).
   
        
NOTE: tag above should be inter-<HEAD> and </ HEAD> inserted.

 
In addition, you can specify multiple logos for multiple pages with the second method. Simply save your icons using unique names as logo1.ico, logo2.ico, logo3.ico for example, and replace "logo.ico" in the HTML code above with the symbol name you use for a particular page. use

How do you can back up your Outlook contacts into an Excel file?

Microsoft Outlook is integrated with Microsoft Office 2000, 2002, 2008 and Microsoft Exchange Server. Outlook is full e-mail manager that lets you e-mail, calendar and contact management. Outlook allows you to integrate the filter and organize e-mails, and manage e-mails from several email accounts, personal and group calendars, contacts, tasks and folders.

With the import and export according to Outlook, you can copy the backup of all Outlook contacts. Yon can lose because no account information e-mail backup at any time due to viruses, power failure and hard drive problem.

Follow the steps to export your Outlook contacts to Excel:

Click the Start button, then go the program, click Microsoft Outlook to export the contacts.

Now go to File menu and click on Import and Export option. Choose Export to a file as show in the below figure then click Next.
Now on next dialog box, choose Microsoft Excel and click Next.
Select the Contacts Folder you want to backup to Excel file as shown below then click Next
Choose a name and location where to save the Excel file by clicking Browse button, then click Next. 
Click Finish to start the back up procedure which may take little time depending on how many contacts you have.

How to change your font size of the site?

When you visit a website or reading an e-mail and there is a problem to read the text on the page because of the color or the font is too small. You can solve the font and color as well as the problem.

       *

         To increase or decrease the size of your font and color of Web page in Internet Explorer, select Tools from the top of the window of your browser and select Internet Options.
       *

         Here are the General and click the Accessibility button at the bottom right corner of the dialog box.
       *

         Now change the status box "Ignore font sizes on Web pages" and ignore the next color on Web pages "on the end with OK
       *

         To change the font size, choose to display the menu bar and go to the Text Size option to change it.

How to you add text in Microsoft Word 2007? new

It is very easy to use functionality of the text boxes in Microsoft Word 2007. You are able to place and manage text fields where you want in a document. You can also format the text boxes with borders, shading, etc. using the various tools available. Many tools are available with options for size, style, etc. provided by color, text boxes in Microsoft Word 2007. Follow these simple steps to add text boxes and format of Microsoft Word 2007:

           * On the Insert tab, click.
           * Select the text box.
           * There are two ways you can add text boxes in Microsoft Word 2007 can. You can choose from the formats provided in a drop-down list available, or you can select the option to make your own box design. Thus the list of data formats such as. You simply select and click a text box in the list.


  • You can see the option of Draw Text Box at the bottom. Click on it if you want to draw your own box
 
Fashion Trend © 2011 | All Rights Reserved | About | Privacy Policy | Contact | Sitemap