عرض مشاركة مفردة
 
  #3  
قديم 01-03-2008, 04:14 PM
الصورة الشخصية لـ Monetizer
Monetizer Monetizer غير متصل
عضو
 
تاريخ التسجيل: Dec 2007
مشاركة: 101
مستوى تقييم العضوية: 18
Monetizer is on a distinguished road
الافتراضي



الكود على التوالي وهو على خطوتين بنقره واحده يحدد وينسخ

اضف هذا بعد <head>

كود:
<style>
.highlighttext{
background-color:yellow;
font-weight:bold;
}
</style>

<script language="Javascript">
<!--

/*
Select and Copy form element script- By Dynamicdrive.com
For full source, Terms of service, and 100s DTHML scripts
Visit http://www.MaQaNy.com
*/

//specify whether contents should be auto copied to clipboard (memory)
//Applies only to IE 4+
//0=no, 1=yes
var copytoclip=1

function HighlightAll(theField) {
var tempval=eval("dcidcidcidcidocument."+theField)
tempval.focus()
tempval.select()
if (dcidcidcidcidocument.all&&copytoclip==1){
therange=tempval.createTextRange()
therange.execCommand("Copy")
window.status="Contents highlighted and copied to clipboard!"
setTimeout("window.status=''",1800)
}
}
//-->
</script>
<style>
.highlighttext{
background-color:yellow;
font-weight:bold;
}
</style>

<script language="Javascript">
<!--

/*
Select and Copy form element script- By Dynamicdrive.com
For full source, Terms of service, and 100s DTHML scripts
Visit http://www.MaQaNy.com
*/

//specify whether contents should be auto copied to clipboard (memory)
//Applies only to IE 4+
//0=no, 1=yes
var copytoclip=1

function HighlightAll(theField) {
var tempval=eval("dcidcidcidcidocument."+theField)
tempval.focus()
tempval.select()
if (dcidcidcidcidocument.all&&copytoclip==1){
therange=tempval.createTextRange()
therange.execCommand("Copy")
window.status="Contents highlighted and copied to clipboard!"
setTimeout("window.status=''",1800)
}
}
//-->
</script>
اضف هذا بعد <BODY>


كود:
<form name="test">
<a class="highlighttext" href="javascript:HighlightAll('test.select1')">حدد الكل وانسخ</a><br>
<textarea name="select1" rows=10 cols=35 >هنا النص المراد نسخه وتحديده</textarea>
</form>