#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    Berlin, Germany
    Posts
    2
    Rep Power
    0
    I am trying to show the ratings of a selection of stock exchange on my website. This far I managed to show the images. Now I would like to show to the user if he pulls his mouse over the point of date and rating, the appropriate figures. Is that possible with PHP?
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Posts
    27
    Rep Power
    0
    my 2am-clouded mind says: not possible. the code you're looking to write is client-side, event based, but PHP is server-side... You could surely throw some cut n' paste JavaScript into the page to accomplish the task at hand.

    Could someone verify this? Thanks.

    //ryan
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Posts
    63
    Rep Power
    14
    It will have to be client side.

    Are you using seperate images ore one large image? With seperate iamges, you could use something as simple as the ALT= in your IMG tag and insert the text with PHP.

    eg.

    <IMG SRC="whatever.gif" ALT="<? print("your text"); ?>">

    Otherwise, it would invlove some client side JavaScript, but would still involve passing the data with PHP.
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    Berlin, Germany
    Posts
    2
    Rep Power
    0
    thanks, I am using one large image, in which I show the chart of the ratings according to the datas in a mysql table. The thing I want to do would require access to that table and the datas either showing the rating and the date in a popup window or a new page.
    I guess PHP can't help in this case.
    See at www.film-fernsehen.de/aktien/frankfurt.php3
    Thanks
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Posts
    63
    Rep Power
    14
    The only thing I can think of is an image map linked to another page that will pull the info from your db.

    You would still have to use php to set the points on the image map.

IMN logo majestic logo threadwatch logo seochat tools logo