જ્યારે પહેલા, હું શેરપોઈન્ટ બ્રિફિંગ માટે એક લેખ લખ્યો હતો (www.sharepointbriefing.com) કે શેરપોઈન્ટ એક છબી ચક્રાકાર ફેરવવાનું યંત્ર કે ભાગ બનાવવા માટે કેવી રીતે. અહીં એક સતામણી છે:
અહીં સમગ્ર લેખ વાંચો: http://sharepointbriefing.com/spcode/article.php/3861121/Create-an-Image-Rotator-in-SharePoint-Using-jQuery.htm
</અંત>
મારા બ્લોગ પર સબ્સ્ક્રાઇબ કરો.
Twitter પર મને ખાતે અનુસરો http://www.twitter.com/pagalvin
પોલ,
Now that you’ve migrated your blog, I finally get a chance to comment on this post 😉
jQuery is so easy that it is tempting to overuse it, and it is the case in your post. I read:
$(“#CatImage”).attr(“સ્રોત”,”/jQuery/Cat%20Pictures/cat0″ + i + “.jpg”);
“That one line represents dozens of painstaking plain-old JavaScript code lines”
વાસ્તવમાં, here is the equivalent in plain JavaScript:
document.getElementById(“CatImage”).src =”/jQuery/Cat%20Pictures/cat0″ + i + “.jpg”;
હા, one line too, and no dependency on an external library.
Note that I use jQuery myself to build image rotators, but for different reasons:
– the ability to pull a list of image URLs using cross-browser AJAX
– transition effects between images
As a reference:
– a demo of jQuery rotators:
http://www.pathtosharepoint.com/Pages/Animations.aspx
– my plain JavaScript rotator builder:
http://www.pathtosharepoint.com/sharepoint-user-toolkit/Pages/Image-Rotator-Lite.aspx
ક્રિસ્ટોફે,
આભારદર્શક શબ્દો! That’s a great point and I appreciate the references.
The only problem is that that i have to add similar image name like cat can you provide with better soution