SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot tim@getdim's Avatar
    Join Date
    Jul 2012
    Location
    Detroit
    Posts
    162
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Talking I need a script to auto scroll a page... GO!

    Hello.

    I have posted about this problem previously in an attempt to use JS (found here: http://www.sitepoint.com/forums/show...errerid=533151) but the JS to do this was interfering with (absolutely necessary) JS already on my page.

    Im hoping someone can point me in the direction of a PHP script that will make the page scroll to the top when an existing link is clicked on.

    further details can be found in the thread referenced above.

    OR

    a php script to make videos load in the large player at the top of the page (replacing the existing playback JS so the scrolling JS will work).

    Any takers?

    I have very little php experience.

  2. #2
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    This can only be done with Javascript.
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  3. #3
    SitePoint Zealot tim@getdim's Avatar
    Join Date
    Jul 2012
    Location
    Detroit
    Posts
    162
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by logic_earth View Post
    This can only be done with Javascript.
    first of all, which part?

    secondly, i want a second (and possibly third) opinion bc ive seen the things PHP can do and i dont see php being that limited.

  4. #4
    padawan silver trophybronze trophy markbrown4's Avatar
    Join Date
    Jul 2006
    Location
    Victoria, Australia
    Posts
    4,095
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by tim@getdim View Post
    first of all, which part?

    secondly, i want a second (and possibly third) opinion bc ive seen the things PHP can do and i dont see php being that limited.
    PHP can only generate HTML for the browser, any interaction after the page has loaded(like scrolling) happens in JavaScript.

    I've answered your question in the other thread.


Tags for this Thread

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
  •