SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member jargonbuster's Avatar
    Join Date
    Jul 2008
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation Fx.Scroll Javascript Help

    Hello,
    I was just wondering if anyone could help me with my javascript in Fx.Scroll. My scrolling does not work and i cant figure out whats wrong because i dont know javascript. I know that it might be more than just the javascript but i know css and html coding and it all seems correct. If anyone could tell me where to put the following javascript it would be great.

    Code:
    var scroll = new Fx.Scroll('demo-wrapper', {
    	wait: false,
    	duration: 2500,
    	offset: {'x': -200, 'y': -50},
    	transition: Fx.Transitions.Quad.easeInOut
    });
     
    $('link1').addEvent('click', function(event) {
    	event = new Event(event).stop();
    	scroll.toElement('content1');
    });
     
    $('link2').addEvent('click', function(event) {
    	event = new Event(event).stop();
    	scroll.toElement('content2');
    });
     
    $('link3').addEvent('click', function(event) {
    	event = new Event(event).stop();
    	scroll.toElement('content3');
    });
     
    $('link4').addEvent('click', function(event) {
    	event = new Event(event).stop();
    	scroll.toElement('content4');
    });
    Thanks
    jargonbuster

  2. #2
    SitePoint Guru [Paul Ferrie]'s Avatar
    Join Date
    Oct 2007
    Location
    Glasgow, Scotland, UK
    Posts
    853
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,
    Please dont pm me unless you have something you would like to discuss in private.

    Are you seeing any js errors?
    Can you post a link to the page your working on?
    .:To me AS is like LEGO, Only for the big Kids :.
    - Site - Blog - Glasgow Flasher
    bringmadeleinehome.com

  3. #3
    SitePoint Member jargonbuster's Avatar
    Join Date
    Jul 2008
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    no js errors just that the fx.scroll does not scroll to the text box i needs to go to.
    Jargonbuster
    Domains are like women -
    all the good ones are taken unless you want one from
    some foreign country.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •