jQuery parsing XML to make slideshow

So I have a very long question for my code. Here are my requirements:Using jQuery XML parsing of images Must be a slide show Opacity on hover and show text in whiter full opacity With these piece i built this code.<!DOCTYPE html> atext-decoration:none; color:#fff; .pics img border:0; .pics span{display:none;background:…

via Css Website development » Search Results » ajax:

jQuery parsing XML to make slideshow

So I have a very long question for my code. Here are my requirements:
Using jQuery
XML parsing of images
Must be a slide show
Opacity on hover and show text in whiter full opacity
With these piece i built this code.







And here is the XML to go along with it.




So you can see i use jquery cycle for ease of use with images and it makes it easy to change if the clients requests but because of that i have a settimeout to wait for everything to be pushed to the page then start the cycle plugin. A better way to do this would be awesome . also what i seem to need help with is this isnt functioning 100% perfect. I cant quite seem to get the code any cleaner. Any help on clean and perfectly executing code would be amazing.
…………………………………….

Don’t use setTimeout, the arbitrary 500 milliseconds are, well, arbitrary, so the cycle plugin is not guaranteed to work.
Why don’t you instantiate the plugin at the end of the Ajax success handler?

For more info: jQuery parsing XML to make slideshow

Css Website development » Search Results » ajax

jQuery parsing XML to make slideshow

Share this post:

Related Posts

Leave a Comment