1 (edited by timmy toad 2012-06-12 14:38:58)

Topic: solved:- newbie STILL doesn't understand the EMBED feature

hi all, i am being a proper dummy i just know i am  :-

<!--START JUICEBOX EMBED-->
<script src="jbcore/juicebox.js"></script>
<script>
new juicebox({
containerId : "juicebox-container",
galleryWidth: "100%",
galleryHeight: "100%",
backgroundColor: "#222222"
});
</script>
<div id="juicebox-container"></div>
<!--END JUICEBOX EMBED-->

the above code has to go in an html page, i can understand that ok, and the page has to be named index.html  ok.

BUT that on it's own doesn't do anything, does it ?

so, please what am i missing please, i will be much happier with juicebox if i could simply understand EMBED even if i didn't actually use it.

I can see how EMBED would be used, i think, it would be used if you wanted to USE the SAME album on your web site but on different page AND a different size

http://juicebox.net/forum/viewtopic.php?id=113
Steven will be saying i have already asked about this before !, but that post was before i actually tried to use it with a published Album :)  I real am a dummy aren't I ?


tim

Re: solved:- newbie STILL doesn't understand the EMBED feature

the above code has to go in an html page

Correct.

the page has to be named index.html

Incorrect. The page into which the embedding code is inserted can be called anything you like.
If embedding using the guide here, just watch out in case the 'index.html' file from the gallery folder overwrites an existing file named 'index.html' which you may already have.

Embedding a gallery means to place the gallery in an existing web page alongside other content, rather than simply opening the gallery on a page of its own (though, technically, the gallery's own 'index.html' file still embeds the gallery but with no other content on the page).
Here is a gallery on its own (opened by loading the gallery's own 'index.html' file): http://juicebox.net/demos/lite/full/
Here is a gallery embedded in a web page: http://juicebox.net/demos/lite/embedded/

Re: solved:- newbie STILL doesn't understand the EMBED feature

Steven, i do now feel really stoopid, thanks for that info, extremely helpful.

I can NOW tell you what i have just done, i do not know why i haven't done it before ?, i actually looked at the html code, that is INSIDE the index.html file

it all makes far more sense now

tim