More than one timeline on a page

354 views
Skip to first unread message

Denbi Newton

unread,
Oct 7, 2013, 3:58:35 AM10/7/13
to verite-...@googlegroups.com
I am trying to have multiple timelines on one page

I have tried following:

but was unsuccessful

I have also tried:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<!-- BEGIN TimelineJS -->
<script type="text/javascript" src="TimelineJS-master/build/js/storyjs-embed.js"></script>
<script>
$
(document).ready(
function() {
                createStoryJS
({
                    type
:       'timeline',
                    width
:      '800',
                    height
:     '600',
                    source
:     'exampleTimeLine.jsonp',
                    embed_id
:   'my-timeline'
               
});
           
});
</script>
<script>
$
(document).ready(
function() {
                createStoryJS
({
                    type
:       'timeline',
                    width
:      '800',
                    height
:     '600',
                    source
:     'exampleTimeLine2.jsonp',
                    embed_id
:   'my-timeline2'
               
});
           
});
</script>

<div id="timeline-embed"></div>
<div id="my-timeline"></div> 
<div id="timeline-embed"></div>
<div id="my-timeline2"></div> 


with no success either (both work individually)

I thought of creating two pages then using iframes to embed them on another page, just seems a little messy

Is there a better way?
all help much appreciated 

thanks


mani

unread,
Oct 7, 2013, 4:36:28 AM10/7/13
to verite-...@googlegroups.com
Hi Denbi,

I have tried to do that, there's someone on this list who has kindly provided an example - that method works with a few tweaks. Have a look at these threads:


Hint:  I found if two or more timeline objects are in the same iFrame they tend to take over each others properties - hope this helps.

Thanks.

Cheers,
mani
Reply all
Reply to author
Forward
0 new messages