السلام عليكم و رحمة الله و بركاتة
كيف حالكم
انشاء الله بخير
شباب اليوم معنا درس مفصل
تركيب install السلايد شو في مدونة blog بلوجر
الكثير من عندنا يتسائل كيف يتم تركيب installه

الدرس مفصل بسيط جدا
بس المطلوب تركيزك

يلا نبدي

اول شي

تذهب إلى لوحة تحكم مدونتك وتضغط على قالب template ثم تحرير html وتضع العلامة على مربع توسيع قالب template واجهة interface المستخدم ثم تضغط في الكيبورد على ctrl+f وتبحث عن هذا الكود code

رمز PHP:
<code style="white-space:nowrap"> <code> &#93;&#93;></b:skin>
</code> </code>

بعد أن تجده قم بوضع هذا الكود code قبله

رمز PHP:
<code style="white-space:nowrap"> <code> #featured{
margin-bottom:10px;
}
.
sliderwrapper{
position: relative;
border-bottom-width: 6px;
height: 124px;
}
.
sliderwrapper .contentdiv{
visibility: hidden;
position: absolute;
height: 100%;
filter:progid:DXImageTransform.Microsoft.alpha(opacity=100);-moz-opacity: 1;opacity: 1;
padding:15px 15px 15px 0px;
background:#f1f1f1;
border-radius: 5px 5px 5px 5px;
box-shadow: 0 0 3px #ABABAB;
margin-top:10px;
}
.
pagination{
text-align: right;
margin-top: 50px;
padding:5px;
}
.
pagination a{
font:11px Arial;
color:#a3a3a3;
padding:4px 8px 4px 8px;
}
.
pagination a.selected{
color:#4f4f4f;
}
.
pagination .prev,.pagination .next { color:#EAEAEA;
font-size:0px; background:none; padding:0px; }
.
featuredPost{
width:410px;
padding:0px 10px 10px 10px !important;
bottom:0;
float:left !important;
margin-right: 54px;
}
.
featuredPost a{
color:#515151;
font: 18px "Microsoft Sans Serif";
margin:0;
padding:0;
}
.
featuredPost h2{margin:0 0 8px 0;}
.
featuredPost span{font-size:11px; margin:0; color:#797979;}
.featuredPost p{font-size:12px; margin:4px 0 0 0; color:#797979;}
.sliderPostPhoto a img{float: right !important;}
.
sliderPostPhoto{float: right !important; width:100px !important;}
</code> </code>

إبحث عن هذا الكود code

رمز PHP:
<code style="white-space:nowrap"> <code> </head>
</code> </code>

بعد أن تجده قم بوضع هذا الكود code قبله مباشرة

رمز PHP:
<code style="white-space:nowrap"> <code> &lt;script&gt;
/* Script from:http://simplexdesign.blogspot.com/ */
imgr = new Array();
imgr&#91;0&#93; = &quot;http://lh3.ggpht.com/_kViOplhgIHI/TKxBIScZTiI/AAAAAAAAAWE/PM7AQ1lf6ME/noimages.jpg&quot;;
showRandomImg = true;
aBold = true;
summaryPost = 140;
numposts1 =15;
label1 = &quot;معهد ديزاد باتنة العربية&quot;;
function
removeHtmlTag(strx,chop){var s=strx.split(&quot;&lt;&quot;for(var i=0;i&lt;s.length;i++){if(s&#91;i&#93;.indexOf(&quot;&gt;&quot!=-1){s&#91;i&#93;=s&#91;i&#93;.substring(s&#91;i&#93;.indexOf(&quot;&gt;&quot+1,s&#91;i&#93;.length)}}s=s.join(&quot;&quot;s=s.substring(0,chop-1);return s}
function
showrecentposts1(json){j=(showRandomImg)?Math.floor((imgr.length+1)*Math.random()):0;img=new Array();for(var i=0;i&lt;numposts1;i++){var entry=json.feed.entry&#91;i&#93;;var posttitle=entry.title.$t;var pcm;var posturl;if(i==json.feed.entry.length)break;for(var k=0;k&lt;entry.link.length;k++){if(entry.link&#91;k&#93;.rel=='alternate'){posturl=entry.link&#91;k&#93;.href;break}}for(var k=0;k&lt;entry.link.length;k++){if(entry.link&#91;k&#93;.rel=='replies'&amp;&amp;entry.link&#91;k&#93;.type=='text/html'){pcm=entry.link&#91;k&#93;.title.split(&quot;&quot&#91;0&#93;;break}}
if (&
quot;content&quot; in entry) {
var
postcontent = entry.content.$t;}
else
if (&
quot;summary&quot; in entry) {
var
postcontent = entry.summary.$t;}
else var
postcontent = &quot;&quot;;
postdate = entry.published.$t;
if(
j&gt;imgr.length-1) j=0;
img&#91;i&#93; = imgr&#91;j&#93;;
s = postcontent ; a = s.indexOf(&quot;&lt;img&quot; b = s.indexOf(&quot;src=\&quot;&quot;,a); c = s.indexOf(&quot;\&quot;&quot;,b+5); d = s.substr(b+5,c-b-5);
if((
a!=-1)&amp;&amp;(b!=-1)&amp;&amp;(c!=-1)&amp;&amp;(d!=&quot;&quot) img&#91;i&#93; = d;
var
month=&#91;1,2,3,4,5,6,7,8,9,10,11,12&#93;;var month2=&#91;&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;&#93;;var day=postdate.split(&quot;-&quot&#91;2&#93;.substring(0,2);var m=postdate.split(&quot;-&quot&#91;1&#93;;var y=postdate.split(&quot;-&quot&#91;0&#93;;for(var u2=0;u2&lt;month.length;u2++){if(parseInt(m)==month&#91;u2&#93{m=month2&#91;u2&#93;;break;
}}
var
daystr = day+ ' ' + m + ' ' + y ;
var
trtd = '&lt;div class=&quot;contentdiv&quot;&gt;&lt;div class=&quot;sliderPostPhoto&quot;&gt;&lt;a href=&quot;'+posturl+'&quot;&gt;&lt;img width=&quot;155&quot; height=&quot;121&quot; class=&quot;alignnone&quot; src=&quot;'+img&#91;i&#93;+'&quot;/&gt;&lt;/a&gt;&lt;div class=&quot;sliderPostInfo&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;featuredPost&quot;&gt;&lt;h2&gt;&lt;a href=&quot;'+posturl+'&quot;&gt;'+posttitle+'&lt;/a&gt;&lt;/h2&gt;&lt;span&gt;'+daystr+'&lt;/span&gt;&lt;p&gt;'+removeHtmlTag(postcontent,summaryPost)+'...&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;';
document.write(trtd);
j++;
}}
&
lt;/script&gt;
</code> </code>

بعد إضافته قم بتغيير كلمة منتديات ديزاد باتنة العربية باللون الأحمر إلى القسم الذي تريده أن يضهر في السلايد شو

وقم أيضا بتغيير الرقم 15 باللون الأخضر إلى عدد المواضيع التي تريدها أن تظهر على السلايد شو

قم بالبحث مرة أخرى عن هذا الكود code

رمز PHP:
<code style="white-space:nowrap"> <code> </body>
</code> </code>

وقم بإضافة هذا الكود code قبله

رمز PHP:
<code style="white-space:nowrap"> <code> &lt;script src='http://dl.dropbox.com/u/12924430/contentslider.js'&gt;&lt;/script&gt;
&
lt;script&gt;
featuredcontentslider.init({
id: &quot;slider1&quot;, //id of main slider DIV
contentsource: &#91;&quot;inline&quot;, &quot;&quot;&#93;, //Valid values: &#91;&quot;inline&quot;, &quot;&quot;&#93; or &#91;&quot;ajax&quot;, &quot;path_to_file&quot;&#93;
toc: &quot;#increment&quot;, //Valid values: &quot;#increment&quot;, &quot;markup&quot;, &#91;&quot;label1&quot;, &quot;label2&quot;, etc&#93;
nextprev: &#91;&quot;Previous&quot;, &quot;Next&quot;&#93;, //labels for &quot;prev&quot; and &quot;next&quot; links. Set to &quot;&quot; to hide.



enablefade: &#91;true, 0.5&#93;, //&#91;true/false, fadedegree&#93;
autorotate: &#91;true, 6000&#93;, //&#91;true/false, pausetime&#93;
onChange: function(previndex, curindex){ //event handler fired whenever script changes slide
//previndex holds index of last slide viewed b4 current (1=1st slide, 2nd=2nd etc)
//curindex holds index of currently shown slide (1=1st slide, 2nd=2nd etc)
}
})
&
lt;/script&gt;
</code> </code>

*وفي الأخير قم بالبحث عن هذا الكود code

رمز PHP:
<code style="white-space:nowrap"> <code> <div id='main-wrapper'>
</code> </code>

وقم بإضافة هذا الكود code بعده

رمز PHP:
<code style="white-space:nowrap"> <code> <b:if cond='data:blog.pageType == &quot;index&quot;'>
<
div id='featured'>
<
div class='sliderwrapper' id='slider1'>
<
script>
document.write(&quot;&lt;script src=\&quot;/feeds/posts/default/-/&quot;+label1+&quot;?max-results=&quot;+numposts1+&quot;&amp;orderby=published&amp;alt=json-in-script&amp;callback=showrecentposts1\&quot;&gt;&lt;\/script&gt;&quot;
</script>
</div>
<div class='pagination' id='paginate-slider1'>
</div>
</div>
</b:if>
</code> </code>

بعد هذا كله قم بالضغط على حفظ التغييرات ومبروك عليك السلايد شو

في النهاية اتمنى ان يكون الدرس مفصل قد افادكم
تحياتي

منقول من حوحو للمعلوميات






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