دهمهوێت سڵاید شۆ دانێم ئهم کارانهم جێبهجێ کردووه بهڵام ههواڵ دهرناکهویت....
ئهم پهڕگانهم داگرتووه و له نێو ڕووتی ماڵپهڕهکهم دامناوه:
http://www.dynamicdrive.com/dynamicindex17/contentslider.css
http://www.dynamicdrive.com/dynamicindex17/contentslider.js
http://www.dynamicdrive.com/dynamicindex17/loading.gif
پاشان ئهم کۆدانهم له نێو تاگی هێد داناوه:
- کۆد: دیاریکردنی هەموو
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<link rel="stylesheet" type="text/css" href="contentslider.css" />
<script type="text/javascript" src="contentslider.js">
/***********************************************
* Featured Content Slider- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/
</script>
ئهم کۆدهشم لهو جێگایهدا داناوه که دهمهوێت سڵایدهکهی تێدا دهربکهوێت:
- کۆد: دیاریکردنی هەموو
<h2>Example 1</h2>
<!--Inner content DIVs should always carry "contentdiv" CSS class-->
<!--Pagination DIV should always carry "paginate-SLIDERID" CSS class-->
<div id="slider1" class="sliderwrapper">
<div class="contentdiv">
Content 1 Here. <br />
<p></p><a href="javascriptfeaturedcontentslider.jumpTo('slider1', 3)">Go to 3rd slide</a></p>
</div>
<div class="contentdiv">
Content 2 Here.
</div>
<div class="contentdiv">
Content 3 Here.
</div>
</div>
<div id="paginate-slider1" class="pagination">
</div>
<script type="text/javascript">
featuredcontentslider.init({
id: "slider1", //id of main slider DIV
contentsource: ["inline", ""], //Valid values: ["inline", ""] or ["ajax", "path_to_file"]
toc: "#increment", //Valid values: "#increment", "markup", ["label1", "label2", etc]
nextprev: ["Previous", "Next"], //labels for "prev" and "next" links. Set to "" to hide.
revealtype: "click", //Behavior of pagination links to reveal the slides: "click" or "mouseover"
enablefade: [true, 0.2], //[true/false, fadedegree]
autorotate: [true, 3000], //[true/false, pausetime]
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)
}
})
</script>
ئێستا نازانم چۆن ههواڵێک که خۆم بمهوێت له سڵایدهکهدا دهربکهوێت.... بۆ ئهمهش ئهم کارانهم کرد:
لهم جێگایهدا
- کۆد: دیاریکردنی هەموو
Content 1 Here. <br />
- کۆد: دیاریکردنی هەموو
<?php query_posts('cat=2&showposts=1&offset=1'); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<h3><?php the_title(); ?></h3>
<?php the_content('درێژهی بابهت'); ?>
<?php endwhile; ?>
<?php endif; ?>
بۆ ههر هاوکارییهک سوپاسی بێ پایانم ههیه
