Advertisement
i27mad

سلايدر المحترف

Feb 11th, 2015
718
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. <script type="text/javascript" src="http://yourjavascript.com/917824114/slider.js"></script><script>
  2. featuredcontentslider.init({
  3. id: &quot;slider1&quot;, //id of main slider DIV
  4. contentsource: [&quot;inline&quot;, &quot;&quot;], //Valid values: [&quot;inline&quot;, &quot;&quot;] or [&quot;ajax&quot;, &quot;path_to_file&quot;]
  5. toc: &quot;#increment&quot;, //Valid values: &quot;#increment&quot;, &quot;markup&quot;, [&quot;label1&quot;, &quot;label2&quot;, etc]
  6. nextprev: [&quot;Previous&quot;, &quot;Next&quot;], //labels for &quot;prev&quot; and &quot;next&quot; links. Set to &quot;&quot; to hide.
  7. enablefade: [true, 0.5], //[true/false, fadedegree]
  8. autorotate: [true, 6000], //[true/false, pausetime]
  9. onChange: function(previndex, curindex){ //event handler fired whenever script changes slide
  10. //previndex holds index of last slide viewed b4 current (1=1st slide, 2nd=2nd etc)
  11. //curindex holds index of currently shown slide (1=1st slide, 2nd=2nd etc)
  12. }
  13. })
  14. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement