[ط´ط±ط*] ط§ظ„ط±ط³ط§ط¦ظ„ ط§ظ„ظ…ظ†ط¨ط«ظ‚ط© ظپظٹ ط§ظ„ط§ظƒط³ط¨ظ„ظˆط±ط§ط± ظ…ط«ظ„ ظ…ظˆظ‚ط¹ megaupload



بسم الله الرحمن الرحيم

----------------------------------------------------------------------

اقدم لكم اليوم يا شباب كود code لنفس الرسالة الي يتخدمها موقع megaupload




طبعاً الأغلبية يعرفون هالموقع خلونا نشوف مثال بالضغط هــنـــا

وطريقة التركيب install كالتالي :-

اضف فى بدايه <HEAD> الكود code التالى :-

رمز Code:
<style type=&quot;text/css&quot;> #dropinboxv2cover{ width: 320px; /*change width to desired */ height: 220px; /*change height to desired. REMOVE if you wish box to be content's natural height */ position:absolute; /*Don't change below 4 rules*/ z-index: 100; overflow:hidden; visibility: hidden; } #dropinboxv2{ width: 300px; /*change width to above width-20. */ height: 200px; /*change height to above height-20. REMOVE if you wish box to be content's natural height*/ border: 2px solid black; /*Customize box appearance*/ background-color: lightyellow; padding: 4px; position:absolute; /*Don't change below 3 rules */ left: 0; top: 0; } </style> <script type=&quot;text/javascript&quot;> var dropboxleft=200 //set left position of box (in px) var dropboxtop=100 //set top position of box (in px) var dropspeed=15 //set speed of drop animation (larger=faster) //Specify display mode. 3 possible values are: //1) &quot;always&quot;- This makes the fade-in box load each time the page is displayed //2) &quot;oncepersession&quot;- This uses ******s to display the fade-in box only once per browser session //3) integer (ie: 5)- Finally, you can specify an integer to display the box randomly via a frequency of 1/integer... // For example, 2 would display the box about (1/2) 50% of the time the page loads. var displaymode=&quot;always&quot; ///Don't edit beyond here/////////// if (parseInt(displaymode)!=NaN) var random_num=Math.floor(Math.random()*displaymode) var ie=********.all var dom=********.getElementById function initboxv2(){ if (!dom&&!ie) return crossboxcover=(dom)?********.getElementById(&quot; dropinboxv2cover&quot : ********.all.dropinboxv2cover crossbox=(dom)?********.getElementById(&quot;dropi nboxv2&quot: ********.all.dropinboxv2 scroll_top=(ie)? truebody().scrollTop : window.pageYOffset crossbox.height=crossbox.offsetHeight crossboxcover.style.height=parseInt(crossbox.heigh t)+&quot;px&quot; crossbox.style.top=crossbox.height*(-1)+&quot;px&quot; crossboxcover.style.left=dropboxleft+&quot;px&quot ; crossboxcover.style.top=dropboxtop+&quot;px&quot; crossboxcover.style.visibility=(dom||ie)? &quot;visible&quot; : &quot;show&quot; dropstart=setInterval(&quot;dropinv2()&quot;,50) } function dropinv2(){ scroll_top=(ie)? truebody().scrollTop : window.pageYOffset if (parseInt(crossbox.style.top)<0){ crossboxcover.style.top=scroll_top+dropboxtop+&quo t;px&quot; crossbox.style.top=parseInt(crossbox.style.top)+dr opspeed+&quot;px&quot; } else{ clearInterval(dropstart) crossbox.style.top=0 } } function dismissboxv2(){ if (window.dropstart) clearInterval(dropstart) crossboxcover.style.visibility=&quot;hidden&quot; } function truebody(){ return (********.compatMode && ********.compatMode!=&quot;BackCompat&quot? ********.********Element : ********.body } function get_******(Name) { var search = Name + &quot;=&quot; var returnvalue = &quot;&quot; if (********.******.length > 0) { offset = ********.******.indexOf(search) if (offset != -1) { offset += search.length end = ********.******.indexOf(&quot;;&quot;, offset) if (end == -1) end = ********.******.length; returnvalue=unescape(********.******.substring(off set, end)) } } return returnvalue; } if (displaymode==&quot;oncepersession&quot; && get_******(&quot;droppedinv2&quot==&quot;&quot; || displaymode==&quot;always&quot; || parseInt(displaymode)!=NaN && random_num==0){ if (window.addEventListener) window.addEventListener(&quot;load&quot;, initboxv2, false) else if (window.attachEvent) window.attachEvent(&quot;onload&quot;, initboxv2) else if (********.getElementById || ********.all) window.onload=initboxv2 if (displaymode==&quot;oncepersession&quot ********.******=&quot;droppedinv2=yes&quot; } </script>
وبعد ذالك اضف الكود code التالى قبل اغلاق تاج ال </body>

رمز Code:
<div id=&quot;dropinboxv2cover&quot;> <div id=&quot;dropinboxv2&quot; style=&quot;background-color: #EDEBE8&quot;> اضف رسالتك هنا <br> <p align=&quot;left&quot;><a href=&quot;#&quot; onClick=&quot;dismissboxv2();return false&quot;>اغلاق</a></p> </div> </div>
للتذكير الموضوع منقول للفائدة.

----------------------------------------------------------------------









©المشاركات المنشورة تعبر عن وجهة نظر صاحبها فقط، ولا تُعبّر بأي شكل من الأشكال عن وجهة نظر إدارة المنتدى©