Dirty Web Promotion Tricks #1 - Legitimate and Malicious Javascripts

Written by Michael Bloch


One ofrepparttar best way to get visitors to further explore your site is to convince them to set your home page as their Internet start page, or for them to add you their "Favorites". In this article, we'll examine some ethical and unethical ways this is done.

Many sites include legitimate javascripts that allow visitors to easily add a page to their "Favourites" by clicking on a link. A script to achieve this would look like something alongrepparttar 119126 lines of:

======================================================================= SAMPLE Legitimate "BOOKMARKING" SCRIPT:

========================================================================

This script should work well in most 4+ browsers. It is as simple as I could make it, and was put together using a number of free scripts available as a reference. There are many other scripts available that allow forrepparttar 119129 use of images and status bar text.

In this script:

- When Netscape is detected, it only displays a message suggesting thatrepparttar 119130 visitor usesrepparttar 119131 Ctrl+D command to bookmarkrepparttar 119132 page andrepparttar 119133 scripting will not appear inrepparttar 119134 source code ofrepparttar 119135 page.

- In Internet Explorer, it will add your homepage to this visitor's "Favorites" from any page inrepparttar 119136 site - along with a custom description you specify inrepparttar 119137 script.

- Other types of javascript enabled browsers will only displayrepparttar 119138 suggestion to bookmark (no keyboard commands as this can vary browser to browser), andrepparttar 119139 script will not be displayed inrepparttar 119140 source code.

Unfortunately, some companies do not use ethical methods to gain a valued place in a visitors Favorites or bookmarks.

On visiting a web design resource siterepparttar 119141 other day via a search engine link, my anti-virus program jumped up and alerted me withrepparttar 119142 following:

"real-time protection has found that C:WINDOWSTEMPORARY INTERNET FILESCONTENT.IE5S3QFQF0XADVERTS[1].HTM is JS.IEStart trojan."

Guide to creating simple chromeless popup windows.

Written by Michael Bloch


Popup windows - hate 'em or love 'em; they are a constant companion during our Internet surfing. They can be quite useful, especiallyrepparttar chromeless variety.

A chromeless popup window is one that doesn't showrepparttar 119125 browsers menu or tool bar, but does retainrepparttar 119126 title bar (for easy closing). Some visitors have so many options on their tool bars that they take up over a quarter ofrepparttar 119127 screen height!

Chromeless popup windows are a great way to deliver list information and extra help for filling in forms without bogging down your pages.

There are many scripts available for creating popups, but sometimes you'll just want something simple that won't require you to incorporate 100 lines of JavaScript!

This particular chromeless popup window procedure will work in Netscape and IE Versions 4+. It will create a link activated window of a fixed size, but will allow for scrollbars if necessary.

To view a demo, click onrepparttar 119128 "20 second site survey" link onrepparttar 119129 right hand menu of our home page:

http://wwww.tamingthebeast.net

INSTRUCTIONS:

First, create and save a standard page withrepparttar 119130 information you wish to be displayed inrepparttar 119131 popup window. The elements should be placed within a table structure. Suggested width of table: around 330 - 350 pixels.

And if you want to create a "Close this Window" statement inrepparttar 119132 page:

Close this window< d>

If you choose not to include this snippet, visitors will still be able to closerepparttar 119133 window viarepparttar 119134 popup window title bar controls.

Second,repparttar 119135 script to launchrepparttar 119136 chromeless popup window. Copy and paste this intorepparttar 119137 HTML (betweenrepparttar 119138 and tags) ofrepparttar 119139 page you wish to launchrepparttar 119140 popup from (changerepparttar 119141 properties in capital letters to suit):



Cont'd on page 2 ==>
 
ImproveHomeLife.com © 2005
Terms of Use