You haven't removed:
from the oo gallery script yet. None of it will work if you leave that in.
Once you get rid of that, try:
Code:
<a href="javascript:toggle();"
onclick="animatedcollapse.toggle2('print');
if(!cgals[0].setToRun){
cgals[0].fillup();
cgals[0].setToRun = true;
};return false;">toggle</a>
and:
Code:
<a href="javascript:toggle();"
onclick="animatedcollapse.toggle2('web');
if(!cgals[1].setToRun){
cgals[1].fillup();
cgals[1].setToRun = true;
};return false;">toggle</a>
respectively for your links.
You could even make a separate function (add to the end of the oo gallery script):
Code:
function activateGal(num){
if(!cgals[num].setToRun){
cgals[num].fillup();
cgals[num].setToRun = true;
}
}
Then a link could be:
Code:
<a href="#" onclick="animatedcollapse.toggle2('print');activateGal(0);return false;">toggle</a>
Note: Once you've moved the function calls to the onclick event and return false for that event, the href can be anything, I usually prefer a descriptive dummy 'javascript:' href though (as in my first two examples).
Bookmarks