SiteExperts.com Logo Home | Community | Developer's Paradise
User Groups | Site Tools | Site Information | Search
 Main Menu
 Resource

Mega Scratch Cards

Categories...
Language
JavaScript
Product
IE5
Task
Fun Stuff, Image Manipulation, Rollovers
Technology
Dynamic Style

Sponsored Links
Developer's Paradise : Inside Technique :
Mega Scratch Cards
Submission by JonPerry

Go to the resource:
Mega Scratch Cards

Add to Assistant

Short Description
This latest scratch variant allows you to scratch an image to reveal another image.

Long Description
Create an on-line version of the scratch-off cards where you scratch the surface to see what's underneath. This latest version allows you to scratch off one image to reveal another!

Author
Jon Perry
Date/ Version
4/9/2000
Submission URL
http://www.SiteExperts.com/tips/styles/ts39/page1.asp
Submission Date
Apr 9,2000
Last Update
Apr 9,2000
 

Discussion and Rate this Resource
Overall Rating: 3.9

kieron on Apr 19, 2000 at 6:27:41 AMRating: 3
interesting marketing potential
JonPerry on Apr 14, 2000 at 4:16:36 PMNo Rating

Yes it is.

Add

newImg.attachEvent('onmousedown',clicker);

newImg.attachEvent('onmouseup',clicker);

to the createElement part, and define

function clicker() {

clickon=!clickon;

}

having already defined clickon=false;

And the fade function needs

if (!clickon) return;

as it's first line.

Now we can only scratch when the mouse button is pressed.

 

LazerFX on Apr 14, 2000 at 9:35:19 AMRating: 4
Very Good.  However, is it possible to enable the scratching to start when you actually click?


To rate and comment on a resource, you must first logon.

If you are not registered, please register yourself to become a member of the SiteExperts.community.

User Name
Password

Copyright © 1997-2008 InsideDHTML.com, LLC. All rights reserved.