Inline content

6 messages Options
Embed this post
Permalink
Juan

Inline content

Reply Threaded More More options
Print post
Permalink
(This post was updated on )
Hi.. i have problems with this...
files included...
<link rel="stylesheet" type="text/css" href="shadowbox/shadowbox.css">
<script type="text/javascript" src="shadowbox/shadowbox.js"></script>
<script type="text/javascript" src="js/jquery-1.3.2.js"></script>
<script type="text/javascript">
Shadowbox.init({
    language:   "es",
});

</script>


<div id="inline-sample" style="display:none">
 <div class="inline-sample-content">
         hello!
        </div>
</div>

In <ul tag>
a href="#inline-sample" title="" rel="shadowbox;width=200;height=400">say hello /a

nothign :(

if I put a link to an image if it works
a href="images/house.jpg" title="" rel="shadowbox">say hello /a
gladtobegrey

Re: Inline content

Reply Threaded More More options
Print post
Permalink

You're not starting the appropriate 'inline' player (though looking at the SB code, it seems 'inline' and 'html' are effectively one and the same).
Juan

Re: Inline content

Reply Threaded More More options
Print post
Permalink
sorry i dont understand your reply....

with images no problem.... its okey, the problem is with inline text... any trouble with the code?? i have a div with id and i put this id in href..

:((((((
gladtobegrey

Re: Inline content

Reply Threaded More More options
Print post
Permalink
Check the 'Usage' instructions on the website ... where it says ...

NOTE:
By default, only the image player is loaded. If you need to play other types of content, use the players option to specify which players you'd like to load.
You haven't, so only the default 'img' player is loaded and therefore your images will display, but your 'inline' content won't.  Admittedly, the 3.0b website doesn't mention 'inline' explicitly as a player option, but a quick browse of the forum would turn up several discussions that deal with it.  And, as I mentioned, in the code itself it actually seems to treat 'inline' and 'html' the same way.  I've tried this on my own site, and 'html' works fine for (my) 'inline' content.

I've raised on the forum what I think is a bug in the use of 'inline'; it didn't work unless I also specified the 'html' player, leading me to suspect there's a bug in the 3.0b code somewhere.  So, if 'inline' still doesn't work, try 'html' instead (or as well).

<script type="text/javascript">
Shadowbox.init({
    language:   "es",
    players:    ["html"]
});
</script>




Juan

Re: Inline content

Reply Threaded More More options
Print post
Permalink
oks is perfect now.. sorry... I thought I could show all types by default!!! in the examples I saw did not see that expecificación within Shadowbox.init..

thanks guy!!!!! ;)
Please show the way

Re: Inline content

Reply Threaded More More options
Print post
Permalink
Hi to all,
How did you solve problems, please show the way or code, thanks