[?????] ?? ????? CODE ?? ?????? Subsilver
مرسل: الأربعاء أكتوبر 21, 2009 3:02 pm
??? ???? ?????? ??????
??????? : ??? ????? ??? ?? ??????? ?????? ?? ????? ???? ??????? ???????? ???? ????????
????? ?????
????
styles/subsilver2/template/bbcode.html
???? ??
??????? ?
????
styles/subsilver2/template/overall_header.html
???? ??
??? ?????
????
styles/subsilver2/theme/stylesheet.css
???? ??
???????
??? ??? ????? ?????
??????? : ??? ????? ??? ?? ??????? ?????? ?? ????? ???? ??????? ???????? ???? ????????
????? ?????
????
styles/subsilver2/template/bbcode.html
???? ??
كود: تحديد الكل
????<!--?BEGIN?code_open?-->
????<div?class="codetitle"><b>{L_CODE}:</b></div><div?class="codecontent">
????<!--?END?code_open?-->
????<!--?BEGIN?code_close?-->
????</div>
????<!--?END?code_close?-->?
??????? ?
كود: تحديد الكل
????<!--?BEGIN?code_open?-->
????<div?class="codetitle"><b>{L_CODE}:</b>?<a?href="#"?onclick="selectCode(this);?return?false;">{L_SELECT_ALL_CODE}</a></div><div?class="codecontent"><code>
????<!--?END?code_open?-->
????<!--?BEGIN?code_close?-->
????</code></div>
????<!--?END?code_close?-->
?
styles/subsilver2/template/overall_header.html
???? ??
كود: تحديد الكل
????//?]]>
????</script>
??? ?????
كود: تحديد الكل
????function?selectCode(a)
????{
???????//?Get?ID?of?code?block
???????var?e?=?a.parentNode.parentNode.getElementsByTagName('CODE')[0];
???????//?Not?IE
???????if?(window.getSelection)
???????{
??????????var?s?=?window.getSelection();
??????????//?Safari
??????????if?(s.setBaseAndExtent)
??????????{
?????????????s.setBaseAndExtent(e,?0,?e,?e.innerText.length?-?1);
??????????}
??????????//?Firefox?and?Opera
??????????else
??????????{
?????????????var?r?=?document.createRange();
?????????????r.selectNodeContents(e);
?????????????s.removeAllRanges();
?????????????s.addRange(r);
??????????}
???????}
???????//?Some?older?browsers
???????else?if?(document.getSelection)
???????{
??????????var?s?=?document.getSelection();
??????????var?r?=?document.createRange();
??????????r.selectNodeContents(e);
??????????s.removeAllRanges();
??????????s.addRange(r);
???????}
???????//?IE
???????else?if?(document.selection)
???????{
??????????var?r?=?document.body.createTextRange();
??????????r.moveToElementText(e);
??????????r.select();
???????}
????}?
styles/subsilver2/theme/stylesheet.css
???? ??
كود: تحديد الكل
????.codecontent?{
???????direction:?ltr;
???????margin:?0?5px?10px?5px;
???????padding:?5px;
???????border-color:?#A9B8C2;
???????border-width:?0?1px?1px?1px;
???????border-style:?solid;
???????font-weight:?normal;
???????color:?#006600;
???????font-size:?0.85em;
???????font-family:?Monaco,?'Courier?New',?monospace;
???????background-color:?#FAFAFA;
????}?
???????
كود: تحديد الكل
????.codecontent?{
????overflow:?auto;
???????display:?block;
???????height:?auto;
???????max-height:?200px;
???????white-space:?normal;
???????margin:?0?5px?10px?5px;
???????padding:?5px;
???????border-color:?#A9B8C2;
???????border-width:?0?1px?1px?1px;
???????border-style:?solid;
???????font-weight:?normal;
???????color:?#006600;
???????font-size:?0.85em;
???????font-family:?Monaco,?'Courier?New',?monospace;
???????background-color:?#FAFAFA;
????}?