15/01/2005, 01:15
|
| | Fecha de Ingreso: enero-2005
Mensajes: 1
Antigüedad: 20 años Puntos: 0 | |
Script para copiar al portapapeles <HTML>
<HEAD>
<META name="generator" content="Spider Writer HTML Editor">
<TITLE>Text to clipboard script</TITLE>
<style type="text/css">
.highlighttext{text-align: center; width: 100%; background-color: #F0C060; color: #303080; font-size: 100%; text-decoration: none;}
.highlighttext:hover {background-color: #E6E6FA; color: #B08030;}
</style>
<script type="text/javascript">
<!--
var copytoclip=1;
function HighlightAll(theField) {
var tempval=eval("document."+theField);
tempval.focus();
tempval.select();
if (navigator.appName.indexOf("Microsoft") != -1&©toclip==1){
therange=tempval.createTextRange();
therange.execCommand("Copy");
window.status="Contents highlighted and copied to clipboard!";
setTimeout("window.status=''",1800);
}
}
//-->
</script>
</HEAD>
<body>
<form name="test">
<div align="center">
<textarea name="select1" rows=8 cols=30=no> These are some words that have no meaning. However, when put together they do a pretty good job of filling up the space to demonstrate this little script.</textarea>
<p><a class="highlighttext" href="javascript:HighlightAll('test.select1')">Cop y to clipboard</a></p>
</div>
</form>
</body>
</HTML> Si tienes problemas para aplicar este script, dimelo. Suerte. JM-BARCELONA |