WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDES  |  PHP CLASSES  |  CODE SEARCH  |  ARTICLES SEARCH  |  PHP FORUMS  |  PHP MANUAL  |  PHP FUNCTIONS LIST  |  WEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Submit Your Code
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
WeberDev's Monthly code contest PHP Code Contest
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Index
Web Development Resources
Web Development Content
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
Forex Trading Online forex trading platform

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : copy on click - Copy text to the Clipboard by clicking on an image.
Categories : HTML, Java Script Update Picture
Xam Orpheus
Date : Aug 15th 2003
Grade : 2 of 5 (graded 8 times)
Viewed : 13181
File : 3721.html
Images : No Images for this code example.
Search : More code by Xam Orpheus
Action : Grade This Code Example
Tools : My Examples List

  Submit your own code examples 
 

<html lang=fr>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><Title>Copy on click</title>

<script language=javascript>
function copier(obj)
{
    document.ze_form.ze_texte.value=obj;
    var texteACopier = document.ze_form.ze_texte.createTextRange(); 
        texteACopier.execCommand("Copy"); 
}
</script>
</head>


<body bgcolor=black>
<form name="ze_form">
<input type="hidden" name="ze_texte">
</form>
<center>
<table border = 0 cellpading=0 cellspacing=0 width=800 height=600>
    <td valign=tp><br><br><br><br>
   




<center><font size=4 Face=tahoma color=Red><b>How it work</b>
<b>click in the case and do copy in the notpad for exemple</b></font>
</font>




<center><table border=1 width=100>

<td align=left width="150">

<center><img border=1 src="puicture.gif"width="100" height="100"onClick="copier('Its working u can
configure this text for [img] for exemple');return(false)"><a/>
</td></center></center>



</td></table></center>


</body>

                
Javascript linked dropdowns
Categories : Java Script, HTML, Classes and Objects
Javascript animated menu items
Categories : DHTML, CSS, Java Script, HTML
Bouncing Marquee at Status Bar
Categories : Java Script, HTML, Browsers



Page Loading Message shown during the time your site's page is being loaded.
Categories : HTML, CSS, Java Script
Javascript Background Scroller
Categories : Java Script, CSS, HTML
Prevent Right Mouse steal your graphics
Categories : HTML, Java Script, Security
Clock at Status Bar
Categories : Java Script, HTML, Date Time
complete simply working javascript password generator file. Use letter, vowels, consonants (uppercase and lowercase) arrays to create a really random and secure password. improved security using time functions to initialize random number generator.
Categories : Java Script, HTML, Security, Authentication, Strings
Builds JavaScript that updates the contents of one selector based on another.
Categories : HTML, Java Script, PHP, Complete Programs, General
Table editable dynamic form with edit + selection (select / option) + checkbox.
Categories : Java Script, DHTML, User Interface, CSS, HTML
Mordern Peroidic Table - Science
Categories : Java Script, HTML, Charts and Graphs
Javascript Color Picker
Categories : Java Script, Colors, HTML
Cool tool tip
Categories : Java Script, HTML, Web Design
Java Script Based Navigation
Categories : HTML, Java Script, Navigation
 Laurentiu BOLD wrote : 1012
I wonder if the author really tested THIS submited code...
 
 Boaz Yahav wrote : 1013
I tested it personally and it works great.
I tested it with IE 6.0

berber
 
 Tim Morton wrote :1014
I would expect this will only work on explorer.  It does work (you`ll have to correct some syntax errors [missing spaces] in the coding), but the example would have been more impressive if it did something useful, ie copy a section of text or copy user input.  Even at that, it only saves the user the `hassle` of selecting the text before you right-click and copy it.

I really don`t see the point, although it is interesting trivia.