المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : روابط اضافية على الزر الايمن للماوس



said
10-31-2013, بتوقيت غرينيتش 12:22 AM
http://www.dzbatna.com/images/icons/icon30.gif ط±ظˆط§ط¨ط· ط§ط¶ط§ظپظٹط© ط¹ظ„ظ‰ ط§ظ„ط²ط± ط§ظ„ط§ظٹظ…ظ† ظ„ظ„ظ…ط§ظˆط³ (http://www.dzbatna.com/t1282128/)



السلام عليكم انتهيت الان من عمل تصميم بسيط وهو عند الضغط بالزر الايمن يطلع جدول بالروابط

المهمة في المنتدى forum

مثال

http://www.***********/vb

اضغط بالماوس على الزر الايمن ولاحظ الروابط

طريقة التركيب install

اضف هذا الكود code اسفل قالب template header
رمز PHP:

<code style="white-space:nowrap"> <code> <style>
<!--


.skin0{
position:absolute;
width:200px;
border:2px solid black;
background-color:menu;
font-family:Tahoma;
line-height:18px;
cursor:default;
visibility:hidden;
}

.skin1 {cursor: hand; position: absolute; width: 165px; background-color: #7a7979; visibility: hidden; border: 1px; font-variant:normal; font-weight:normal}

.menuitems{
padding-left:15px;
padding-right:10px;
}
-->
</style>
</code> </code>

وهذا الكود code في نهاية قالب template footer
رمز PHP:

<code style="white-space:nowrap"> <code> <script language="JavaScript1.2">
/* Translated By www.***********/
// Visit our site at http://www.***********/ for more code
// This notice must stay intact for use */
//set the skin of the menu (0 or 1, with 1 rendering a default Windows menu like skin)
var menuskin=1

//set this variable to 1 if you wish the URLs of the highlighted menu to be displayed in the status bar
var display_url=0


function showmenuie5(){
//Find out how close the mouse is to the corner of the window
var rightedge=document.body.clientWidth-event.clientX
var bottomedge=document.body.clientHeight-event.clientY

//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<ie5menu.offsetWidth)
//move the horizontal position of the menu to the left by it's width
ie5menu.style.left=document.body.scrollLeft+event. clientX-ie5menu.offsetWidth
else
//position the horizontal position of the menu where the mouse was clicked
ie5menu.style.left=document.body.scrollLeft+event. clientX

//same concept with the vertical position
if (bottomedge<ie5menu.offsetHeight)
ie5menu.style.top=document.body.scrollTop+event.cl ientY-ie5menu.offsetHeight
else
ie5menu.style.top=document.body.scrollTop+event.cl ientY

ie5menu.style.visibility="visible"
return false
}

function hidemenuie5(){
ie5menu.style.visibility="hidden"
}

function highlightie5(){
if (event.srcElement.className=="menuitems"){
event.srcElement.style.backgroundColor="highlight"
event.srcElement.style.color="white"
if (display_url==1)
window.status=event.srcElement.url
}
}

function lowlightie5(){
if (event.srcElement.className=="menuitems"){
event.srcElement.style.backgroundColor=""
event.srcElement.style.color="black"
window.status=''
}
}

function jumptoie5(){
if (event.srcElement.className=="menuitems"){
if (event.srcElement.getAttribute("target")!=null)
window.open(event.srcElement.url,event.srcElement. getAttribute("target"))
else
window.location=event.srcElement.url
}



}
</script><center><font face=tahoma size=2 color=black>
<!--&#91;if IE&#93;>
<div id="ie5menu" class="skin0" onMouseover="highlightie5()" onMouseout="lowlightie5()" onClick="jumptoie5()">
<div class="menuitems" url="http://www."><a href="index.php">الرئيسية</a></div>
<div class="menuitems" url="http://www."><a href="register.php">
<span lang="ar-jo">التسجيل</span></a></div>
<div class="menuitems" url="http://www."><span lang="ar-sa">
<a title="::استرجاع كلمة المرور::" style="text-decoration: none" href="login.php?do=lostpw">
استرجاع كلمة المرور</a></span></div>
<div class="menuitems" url="http://www."><span lang="ar-sa">
<a title="::تفعيل العضوية::" style="text-decoration: none" href="register.php?a=ver">
تفعيل العضوية</a></span></div>
<div class="menuitems" url="http://www."><span lang="ar-sa">
<a title="::طلب كود code تفعيل العضوية::" style="text-decoration: none" href="register.php?do=requestemail">
طلب كود code تفعيل العضوية</a></span></div>
<div class="menuitems" url="http://www."><span lang="ar-jo">لمراسلة الادارة
</span></div>
</div>
<!&#91;endif&#93;--></center></font>
<script language="JavaScript1.2">
if (document.all&&window.print){
if (menuskin==0)
ie5menu.className="skin0"
else
ie5menu.className="skin1"
document.oncontextmenu=showmenuie5
document.body.onclick=hidemenuie5
}
</script>
</code> </code>

انتهى بالتوفيق لي ولكم






ألعاب الأندرويد مجانا و حصريا (http://www.apotox.info/forum)



https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-ash4/482113_236967293114455_1193518507_n.png (http://www.dzbatna.com)
©المشاركات المنشورة تعبر عن وجهة نظر صاحبها فقط، ولا تُعبّر بأي شكل من الأشكال عن وجهة نظر إدارة المنتدى (http://www.dzbatna.com)©

استعمل مربع البحث في الاسفل لمزيد من المواضيع


سريع للبحث عن مواضيع في المنتدى