javascriptjqueryimagejquery-pluginsshadowbox

Shadowbox(Image gallery plugin) shows black window only


I'm trying to create an image gallery using Shadowbox plugin(http://www.shadowbox-js.com).
So I got a problem with creating the gallery, That problem is: whenever I click on the link(actually thumbnail) that displays the image it starts loading then no image is displayed only a black window.
The links I use:

<a href="http://localhost/myProject/images/10.jpg" rel="shadowbox"><img src="http://localhost/myProject/thumbnails/10.jpg" class="thumbnails"/></a>

The script/link/init :
These imports are working, I verify it by using(in Chrome) Inspect element->Network.

<link rel="stylesheet" type="text/css" href="shadowbox/shadowbox.css">
<script type="text/javascript" src="shadowbox/shadowbox.js"></script> 
<script type="text/javascript">
        Shadowbox.init();
</script>

notes:
1-I'm using Shadowbox as a jQuery plugin(NOT standalone).
2-jQuery is imported to my website using Google(NOT locally).
3-The real image size is 3000x2400.
Edit:
4- I realized that when right clicking->inspect element(in chrome) , the image is shown(but not in a proper way, only half of it is shown).
5-when setting handleOversize to drag the image is shown(Must click).
6-It is working in IE 9!.


Solution

  • I found the solution, It wasn't in the DOCTYPE or the browser or even my JS code!
    The problem was in the CSS.
    Setting the direction to right to left(rtl)(yes, the website is Arabic).
    caused the images to be hidden, maybe, because the image went right and I cant see it.