I give you 2 solutions to 2 problems I had recently:
The first is when you are using base 64 images from any database or whatever.
I modified the plugin adding the "base64" option as a boolean, and I added the lines
var b64 = "";
if (options.base64)
b64 = "data:image/jpeg;base64,";
after the options reading and when we need to set the src of images we put b64 var before like this:
...
var o =$("
").attr("src",b64+record).load(function() {
...
pic.attr("src",b64+imgArr[newIndex]);
...
window.setInterval(function() { pic.attr("src", b64+imgArr[++newIndex % imgArr.length])} , speed);
....
this way we can use base 64 encode in this plugin.
The second problem was with Internet Explorer on Windows Phone 8.1 because I want to rotate my images with "click" enabled but it makes the page drag and drop instead of rotate the image.
Then I set in html
and the problem is fixed! 😃
I give you 2 solutions to 2 problems I had recently:
The first is when you are using base 64 images from any database or whatever.
I modified the plugin adding the "base64" option as a boolean, and I added the lines
var b64 = "";
if (options.base64)
b64 = "data:image/jpeg;base64,";
after the options reading and when we need to set the src of images we put b64 var before like this:
").attr("src",b64+record).load(function() {
...
var o =$("
...
pic.attr("src",b64+imgArr[newIndex]);
...
window.setInterval(function() { pic.attr("src", b64+imgArr[++newIndex % imgArr.length])} , speed);
....
this way we can use base 64 encode in this plugin.
The second problem was with Internet Explorer on Windows Phone 8.1 because I want to rotate my images with "click" enabled but it makes the page drag and drop instead of rotate the image.
Then I set in html
and the problem is fixed! 😃