الويب العربي

الويب العربي (http://www.arabwebtalk.com/index.php)
-   تطويرالمواقع (http://www.arabwebtalk.com/forumdisplay.php?f=47)
-   -   الله يبارك فيكم مطلوب كود تظليل ونسخ تلقائي (http://www.arabwebtalk.com/showthread.php?t=77467)

أبو ذر الشامي 29-02-2008 07:26 PM

الله يبارك فيكم مطلوب كود تظليل ونسخ تلقائي
 
السلام عليكم ورحمة الله وبركاته
اخوتي الاحبة الله يبارك فيكم مطلوب كود تضليل ونسخ تلقائي يعني لما ااشر على الكتبة يقوم الكود بتظليل الكتابة ونسخها تلقائيا

أبو ذر الشامي 01-03-2008 04:25 AM

اين انتم يا اخوة ؟؟؟؟ لحد الآن ولا رد

Monetizer 01-03-2008 04:14 PM



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

اضف هذا بعد <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>


أبو ذر الشامي 06-03-2008 08:07 PM

شكرا لك لكن لم اعرف كيفية استخدامة


جميع الأوقات بتوقيت مكة المكرمة. الساعة الآن » 09:20 AM.

Powered by vBulletin
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © ArabWebTalk.Com 2004-2012