www.webdeveloper.com
Results 1 to 4 of 4

Thread: JavaScript Question

  1. #1
    Join Date
    Aug 2009
    Posts
    7

    JavaScript Question

    okay heres my site (just look at the source for the code):
    http://39webdesign.streamlinenettria...ntitled-1.html
    Is there a way to add some code to that code to make it change between the small and the big smoothly like this one here:
    http://39webdesign.streamlinenettrial.co.uk/test.html
    But with just editing the original code

  2. #2
    Join Date
    Jan 2005
    Location
    Frankfort, KY, USA
    Posts
    6,167
    I'm pretty sure you could achieve that with jquery.
    Examples: http://docs.jquery.com/Tutorials:Liv...ples_of_jQuery
    FYI
    * My screen resolution is set at 1680x1050
    * I'm accessing your site through a T1 line
    * I'm probably viewing it using Firefox (unless browser is specified)

  3. #3
    Join Date
    Aug 2009
    Posts
    13
    If you use jQuery, you can do stuff like that very easily
    Code:
    $("#ButtonId").click(function(){$("#TableCellID").animate({width: "200%"},1500 );});
    Substitute "200%" with any % or px value.
    1500 is time in ms.

    If you are going to do a lot of animation, it's definately worth to go for jQuery, or a similar library.
    Last edited by b3nj4m1n; 08-03-2009 at 12:30 PM.

  4. #4
    Join Date
    Dec 2005
    Location
    FL
    Posts
    7,377
    All the code is already available at: http://39webdesign.streamlinenettrial.co.uk/test.html
    Just do a 'view source'

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles