|
Scripts > JavaScript > Tutorials > Mouse Tricks
|
1. Disable right-click
|
Although this is usually a bad idea it can sometimes also be a good idea. This will show you how to disable right clicking on your sites pages.
Hits: 3 Rating: 0.00 Votes: 0
|
| Member Reviews |
 |
Visitor Ratings |
 |
Google PR |
 |
|
|
2. Disable text selection
|
Rippers and content thefts mainly rely on the ability to select text and page content so that they can copy it. This will prevent them from doing so.
Hits: 3 Rating: 0.00 Votes: 0
|
| Member Reviews |
 |
Visitor Ratings |
 |
Google PR |
 |
|
|
3. eLouais Drag and Drop script
|
An extremly simple and useful script for implementing a cross browser drag and drop game (IE 4+, NN 6+, Firefox). Place code in the header and simply append all images that are draggable with the class name (class="dragme"). Thats it!
Hits: 2 Rating: 0.00 Votes: 0
|
| Member Reviews |
 |
Visitor Ratings |
 |
Google PR |
 |
|
|
4. mouse events
|
Mouse-events.html is a template for handling three basic mouse events: Moving, pressing down on a button, and releasing the button. It works in IE 5+ and should also work in NS 6+. When used in conjunction with DHTML, this can be used to create drag and drop web applications. The three handlers return a true value, changing it to false causes some default browser behaviours, like text highlighting, to become disabled.
Hits: 3 Rating: 0.00 Votes: 0
|
| Member Reviews |
 |
Visitor Ratings |
 |
Google PR |
 |
|
|
6. Simple ChalkBoard Example
|
Extremely simple example of turning background colors of the cells of the table on and off with mouse events to simulate a chalkboard. You can add more rows and columns.
Hits: 2 Rating: 0.00 Votes: 0
|
| Member Reviews |
 |
Visitor Ratings |
 |
Google PR |
 |
|
|
7. Simple ChalkBoard Example
|
Extremely simple example of turning background colors of the cells of the table on and off with mouse events to simulate a chalkboard. You can add more rows and columns.
Hits: 2 Rating: 0.00 Votes: 0
|
| Member Reviews |
 |
Visitor Ratings |
 |
Google PR |
 |
|
|
8. Universal JavaScript Rollovers
|
This comprehensive tutorial explains various implementations of JavaScript rollovers. It discusses: How to use the document.images object, How to make your rollovers backward compatible, How to create an instance of the Image object, How to combine several rollovers to create a menu, How to create multiple rollovers, How to ensure maximum "transition" quality, and How to create nested rollovers.
Hits: 3 Rating: 0.00 Votes: 0
|
| Member Reviews |
 |
Visitor Ratings |
 |
Google PR |
 |
|
|
|