Cursor effect in php website

Discussion in 'CSS' started by vmpinheiro, Sep 27, 2006.

  1. #1
    Hi,

    I wanna put a small logo near to the mouse cursor on my website, just like http://www.slbenfica.pt/

    Using a HTML+CSS website, this is simple to do, but I wanna make this using a PHP+CSS website.

    Did anybody know how can i make that?? I'm completly lost...

    Thanks for your help.
    Vitor
     
    vmpinheiro, Sep 27, 2006 IP
  2. Jordash

    Jordash Peon

    Messages:
    181
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    PHP Generates the HTML on the server and then spits it out, e.g. with a PHP file you could make it a complete HTML file

    <html>
    <head>
    </head>
    <body>
    <?php
    php stuff here
    ?>
    </body>
    </html>

    so if you can do it in HTML/CSS you should easily be able to do it in PHP.

    BTW the effect on that site works in IE only, not in Firefox.
     
    Jordash, Sep 27, 2006 IP
  3. penagate

    penagate Guest

    Messages:
    277
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi!

    Custom cursors are part of the CSS spec and work fine in Firefox. The reason they are not effective on that site is because it they have used crap IE-specific Javascript code and messy invalid HTML. Stick to the standards, and everyone will be happy.

    http://www.w3schools.com/css/pr_class_cursor.asp

    As Jordash alluded, your choice of server-side language has absolutely no bearing upon the client-side experience. The user agent neither knows nor cares what language you use to script on the server side.

    Regards
    - P
     
    penagate, Sep 27, 2006 IP