Javascript Codes

download Javascript Codes

of 2

Transcript of Javascript Codes

  • 8/9/2019 Javascript Codes

    1/2

    Drop Down Box with automatic redirect

    -------Choose a Selection-------HomeWeb DevelopmentHTML TipsHTML Code ChartJavaScript CodesColor Code Chart

    Place this code where you would like the box to appear.

    -------Choose a Selection-------HomeWeb DevelopmentHTML TipsHTML Code ChartJavaScript CodesColor Code Chart

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

    Back to previous page

    Copy and paste this code into your HTML where you would like the button to appear.

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

    Make This Site Your Home Page Button (IE)

    You can place a button on your site that, when clicked on, will make your site your visitor's home page.

    Place the following code where you would like the button to appear.

  • 8/9/2019 Javascript Codes

    2/2

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

    Highlight an Image on Mouseover

    You can use JavaScript to highlight an image when you place your mouse over it.

    Example:

    Place your mouse pointer over the following image.----------

    ----------

    Place the following code between your HEAD tags:

    Place the following code within all of the image tags you'd like the affect to be applied:

    style="filter:alpha(opacity=20);-moz-opacity:0.2" onMouseover="makevisible(this,0)" onMouseout="makevisible(this,1)"

    Here's how your image tag might look:

    Script code provided by:

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