+ Reply to Thread
Results 1 to 6 of 6

Thread: Sliding content.

  1. #1
    martynball is offline x10Hosting Member martynball is an unknown quantity at this point
    Join Date
    Dec 2007
    Location
    Stoke-on-Trent, UK
    Posts
    60

    Sliding content.

    I am trying to find a way to make a div slide out into the page, slowly. Not just appear. I was think of something like this:

    Code:
    <script type="application/javascript">
    var xmlhttp;
    
    function divBigger(id)
      document.getElementById("moveDiv").style.left="8%";
     </script>
    Then add a php condition to say ++1 (on the left:;) until ==20%. But I don't know how, and I don't know how to make a variable to get the value of left:;. Is there another way.

    I want to enhance that with by making a scrolling div scroll when I put my mouse to the sides... I don't know where to start with any of this .

    Sort of like this: http://www.gapmedics.co.uk/

    Scroll over the word NAMIBIA and the others on that line.

    -----

    Also, to know how this is done would be nice:
    http://bestwebgallery.com/page/3/

    When you mouseover a image it goes darker and a tool tip is displayed, I want to know how its made to go darker.

  2. #2
    Gouri's Avatar
    Gouri is offline Community Paragon Gouri has a brilliant futureGouri has a brilliant futureGouri has a brilliant future
    Join Date
    Oct 2007
    Location
    India
    Posts
    4,502

    Re: Sliding content.

    That effect is done by mootools. Check here same sort of animation -> http://buildinternet.com/2009/01/how...u-with-jquery/

    You can add somany animation effects using mootools. goto their site and check for examples.
    Last edited by Gouri; 12-01-2009 at 08:30 AM.
    If you feel my post is useful then click to give Reputation (bottom left corner of this post)

    X10 Hosting | News and Announcements | Premium Hosting | VPS Hosting | Prime Membership

    Tech Community | Gouri

  3. #3
    diabolo's Avatar
    diabolo is offline Community Advocate diabolo is on a distinguished road
    Join Date
    Nov 2007
    Location
    Jersey Shore
    Posts
    1,683

    Re: Sliding content.

    Quote Originally Posted by gsonline View Post
    That effect is done by mootools. Check here same sort of animation -> http://buildinternet.com/2009/01/how...u-with-jquery/

    You can add somany animation effects using mootools. goto their site and check for examples.
    lol. that link is to a page with jQuery not mooTools.

    but I prefer to work with javascript using jQuery, so you might want to try it out too.
    its really just based on what you're comfortable with.

  4. #4
    martynball is offline x10Hosting Member martynball is an unknown quantity at this point
    Join Date
    Dec 2007
    Location
    Stoke-on-Trent, UK
    Posts
    60

    Re: Sliding content.

    Can PHP do it?

  5. #5
    diabolo's Avatar
    diabolo is offline Community Advocate diabolo is on a distinguished road
    Join Date
    Nov 2007
    Location
    Jersey Shore
    Posts
    1,683

    Re: Sliding content.

    Quote Originally Posted by martynball View Post
    Can PHP do it?
    no.
    PHP is run server-side (ASP too)
    so once the page gets to the user's browser PHP has no longer control over it.
    this is where javascript (run client-side) comes into play, it has full control (as long as the client allows it) over the webpage

    now there are ways for PHP to be executed once the page has been requested (AJAX)

  6. #6
    Gouri's Avatar
    Gouri is offline Community Paragon Gouri has a brilliant futureGouri has a brilliant futureGouri has a brilliant future
    Join Date
    Oct 2007
    Location
    India
    Posts
    4,502

    Re: Sliding content.

    Quote Originally Posted by diabolo View Post
    lol. that link is to a page with jQuery not mooTools.

    but I prefer to work with javascript using jQuery, so you might want to try it out too.
    its really just based on what you're comfortable with.
    Sorry for typing wrong. It is jquery

    Actually after checking that I was also checking the mootools And I saw similar type action so When posting here confused. But I like th mootools too

    check here --> http://mootools.net/

    Last edited by Gouri; 12-02-2009 at 02:37 AM.
    If you feel my post is useful then click to give Reputation (bottom left corner of this post)

    X10 Hosting | News and Announcements | Premium Hosting | VPS Hosting | Prime Membership

    Tech Community | Gouri

+ Reply to Thread

Similar Threads

  1. Replies: 3
    Last Post: 05-12-2009, 03:50 PM
  2. help with float:left; attribute
    By dellerdynamics in forum Programming Help
    Replies: 3
    Last Post: 12-12-2008, 02:03 PM
  3. a content code needs manipulating
    By bunglebrown in forum Programming Help
    Replies: 2
    Last Post: 08-31-2008, 03:15 PM
  4. Replies: 7
    Last Post: 06-22-2008, 05:42 PM
  5. Urgent help please!
    By retro-bliss in forum Free Hosting
    Replies: 2
    Last Post: 10-25-2007, 03:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers