SitePoint Sponsor

User Tag List

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

    Changing text (paragraph) on link/button click

    Hi,

    I've page that has a header image and a paragraph text below it. I want a button or link like "Next" or "Further" which when clicked moves the text further.

    Is it possible with CSS or Javascript?

    Any help greatly appreciated. Thanks.

  2. #2
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,424
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    That's JavaScript.

  3. #3
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,476
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    As John said, that's the use of JavaScript at work there (behavior). HTML defines the structure of a Web page (and holds the content stored inside), CSS defines and handles the presentation of that structure (and content), and JavaScript handles the behavior (though CSS can as well to an extent, see CSS dropdown menus and rollovers for two examples).


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
  •