Search the web
Sign In
New User? Sign Up
ycarousel · Bill Scott's Carousel Component
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
basic javascript referencing   Message List  
Reply | Forward Message #476 of 505 |
I want to have some control buttons above my Carousels that can remove
all the carousel items and replace them with new ones, change the size
and the visibilityNum.

I can see how to do all these things when I load the page initially,
but I don't know how to reference and change them later on.

For example, if I insert an HTML button on the page that says
onclick="carousel.removeItem(0)" I get a javascript error saying what
the heck is a carousel?

I realize that the carousel I want is contained in a div called
Container. But I still can't figure out a way to make something like
this work:
"document.getElementById('container').carousel.removeItem(0)". Again,
it says thet carousel is undefined.

Can you offer some guidance? thanks!

PS - I accidentally posted this on the ydn-javascript forum before I
discovered this list. Sorry about cross-posting!




Fri Dec 5, 2008 1:16 am

craigdscribner
Offline Offline
Send Email Send Email

Forward
Message #476 of 505 |
Expand Messages Author Sort by Date

I want to have some control buttons above my Carousels that can remove all the carousel items and replace them with new ones, change the size and the...
craigdscribner
Offline Send Email
Dec 5, 2008
1:16 am

your javascript is incorrect. document.getElementById('container') returns a dom node (element: https://developer.mozilla.org/en/DOM/document.getElementById)....
billwaynescott
Offline Send Email
Dec 5, 2008
9:51 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help