Spotlight

Discussion in 'Web Programming' started by JavaScriptBank, Jan 11, 2010.

Spotlight
  1. Unread #1 - Jan 11, 2010 at 10:18 AM
  2. JavaScriptBank
    Joined:
    Sep 25, 2009
    Posts:
    17
    Referrals:
    0
    Sythe Gold:
    0

    JavaScriptBank Newcomer
    Banned

    Spotlight

    Cast an interactive 'spotlight' on the image of your choice using this DHTML script. Move the light about using your mouse. This cool effect works in IE4+, degrading well with the rest.... detail at JavaScriptBank.com - 2.000+ free JavaScript codes


    How to setup

    Step 1: Use CSS code below for styling the script
    CSS
    Code:
    <style type="text/css">
    <!--
    body{
    background-image : url('none') !important; 
    }
    
    #content{
    background-color : #ffffff;
    position : absolute;
    top : 0px;
    left : 0px;
    padding : 10px;
    visibility : hidden;
    }
    
    #light{
    position : absolute;
    top : 0px;
    left : 0px;
    overflow : hidden;
    }
    //-->
    </style>
    	<!--
        	This script downloaded from www.JavaScriptBank.com
        	Come to view and download over 2000+ free javascript at www.JavaScriptBank.com
    	-->
    
    Step 2: Place HTML below in your BODY section
    HTML
    Code:
    <script type="text/javascript" src="spotlight_part_1.js"></script>
    <script type="text/javascript" src="spotlight_part_2.js"></script>
    <div style="z-index: 110;"></div>
    	<!--
        	This script downloaded from www.JavaScriptBank.com
        	Come to view and download over 2000+ free javascript at www.JavaScriptBank.com
    	-->
    
    Step 3: Download files below
    Files
    spotlight_part_1.js
    spotlight_part_2.js

    spotlight.gif






     
< Windows Live Messenger Status Signature | learn to program >

Users viewing this thread
1 guest


 
 
Adblock breaks this site