keyboard class to slide change.

here you can Request certain custom made Scripts in exchange for something (most likely money)

Moderator: 1.2 Moderators

keyboard class to slide change.

Postby ramya on Thu Dec 31, 2009 1:34 pm

Dear teams,

how to use keyboard class functions to implement slide changes? i saw keyboard class in mootools, but i couldn't able to understand fully.i don't know how to implement those keyboard class functions to slide changes..can u explain me in detail how to use these functions and how to call these functions in html page...
ramya
 
Posts: 9
Joined: Wed Dec 30, 2009 9:33 am

Re: keyboard class to slide change.

Postby wowenkho on Thu Dec 31, 2009 2:23 pm

first of all, how would those "slide" changes be done? if you have existing code for the sliding animation, please paste it so i can take a look and plan on what we can do.
my sword is yours...
http://wowenkho.com

for those who want to talk with me quicker, add me on Yahoo! Messenger through my ID: michaelapeles
User avatar
wowenkho
mootools freak
 
Posts: 1146
Joined: Sat Aug 15, 2009 10:38 am
Location: Antipolo City, Philippines

keyboard class to change the slides

Postby ramya on Sat Jan 02, 2010 7:51 am

Dear teams,

u ask me to send the codings wat i tried using keyboard class to change the slides,

CODES:
  1. window.addEvent('domready', function(){
  2. var data = $('data');   // datas contains 4 slides to change.
  3.  
  4. var myKeyboardEvents = new Keyboard({
  5. eventType: 'keyup',
  6. events: {
  7. 'down': function(){
  8.  //WAT FN SHOULD I WRITE HERE TO CHANGE NEXT SLIDE?
  9. },
  10. 'up': function(){
  11.  //WAT FN SHOULD I WRITE HERE TO CHANGE PREV SLIDE?
  12. },
  13. 'left': function(){
  14.  //WAT FN SHOULD I WRITE HERE TO CHANGE PREV SLIDE?
  15. },
  16. 'right': function(){
  17.  //WAT FN SHOULD I WRITE HERE TO CHANGE NEXT SLIDE?
  18. }
  19. }
  20. }, area);
  21. myKeyboardEvents.activate()
  22. });
  23.  
  24.  
  25. window.addEvent('domready', function() {
  26.  var data = { '1.jpg',   '2.jpg',   '3.jpg',   '4.jpg' };
  27. if(e.key == 'right' || e.key == 'space')
  28. { data.right(); }
  29.  else if(e.key == 'left')
  30. {data.left(); }
  31.   });


what changes to do with the above coding,to change the slides? or the methods wat i m using is not corrct means pls correct it....and explain me how to implement it?
ramya
 
Posts: 9
Joined: Wed Dec 30, 2009 9:33 am

Re: keyboard class to slide change.

Postby wowenkho on Sat Jan 02, 2010 12:47 pm

if that's what you basically want to happen, then why don't you use premade MooTools slideshow scripts out there?
my sword is yours...
http://wowenkho.com

for those who want to talk with me quicker, add me on Yahoo! Messenger through my ID: michaelapeles
User avatar
wowenkho
mootools freak
 
Posts: 1146
Joined: Sat Aug 15, 2009 10:38 am
Location: Antipolo City, Philippines

keyboard class to change the slides

Postby ramya on Sat Jan 02, 2010 2:18 pm

Till i ve seen, there is no premade mootools script for slide changes using keyboard class. that y i m asking,.. do u know the absolute script for the slide show using keyboard class in mootools meas pls mention it else corredt those codings...
ramya
 
Posts: 9
Joined: Wed Dec 30, 2009 9:33 am

Re: keyboard class to slide change.

Postby wowenkho on Sat Jan 02, 2010 5:10 pm

ramya stop making new threads for everytime you want to reply! :x try milkbox. follow the instructions and you'd get your slideshow in no time. though i really can say there are more other slideshow scripts out there. you should just google it.
my sword is yours...
http://wowenkho.com

for those who want to talk with me quicker, add me on Yahoo! Messenger through my ID: michaelapeles
User avatar
wowenkho
mootools freak
 
Posts: 1146
Joined: Sat Aug 15, 2009 10:38 am
Location: Antipolo City, Philippines


Return to Script Request

Who is online

Users browsing this forum: No registered users and 1 guest