SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member
    Join Date
    Jan 2000
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is it possible to have text change colour when you place your mouse pointer over it without using java script?

  2. #2
    SitePoint Enthusiast
    Join Date
    Jul 1999
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Frontpage allows you to insert a 'Hover button' that is java and can change the text background or forecolor on mouseover. It requires no programming, only inputing the paramters into a dialog box.

  3. #3
    SitePoint Enthusiast
    Join Date
    Dec 1999
    Location
    Minneapolis, MN, USA
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    doing the Front Page thing would be worse since you need to load the java class...it would take forever for a simple effect.

    Another option is CSS (cascading style sheets). CSS would be relitivly easy, and what you would have to do is put something like...in your head tags.

    <style>
    <!--
    a:hover {
    color: --Color you want it to be--
    }
    -->
    </style>

    That should change the color to whatever color when the mouse goes over the links in your webpage.

    ------------------
    John Schrom
    Webmaster - 4Webmasters


  4. #4
    SitePoint Member
    Join Date
    Jan 2000
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The CSS works but only in IE not netscape.
    I have a simple navigation menu in text which i would like to change colour in both IE and Netscape when the mouse is over the text.
    any ideas??

    Thanks

  5. #5
    Just Blow It bronze trophy
    DaveMaxwell's Avatar
    Join Date
    Nov 1999
    Location
    Mechanicsburg, PA
    Posts
    7,266
    Mentioned
    115 Post(s)
    Tagged
    1 Thread(s)
    There is a script at www.javascripts.com which should do what you need. It is under the "text" section and I think it's called "Netscape Rollover 1.1" or something to that effect.

    ------------------
    Dave Maxwell
    www.keystonecapitalchorus.org
    www.trademarkquartet.com

  6. #6
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You can not change a page dynamically with out using either CSS or some sort of scripting technology. HTML is static, was designed to be Static and always will be static. In the future with XML and XHTML you might find some dynamic functionality but I really doubt it as that would complicate the technology and make it unstable and buggy.

    If you want dynamic effects such as rollovers, faders and such on your webpage your much better off using Javascript or CSS pseudo-classes to achieve this. Java Applets are too cumbersome for the general web population at this time to be used for simple effects such as rollovers.

    ------------------
    Wayne Luke

    The Majormud Encyclopedia - www.bloodquest2.com
    Come Play one of the hottest games on the net.



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
  •