Results 1 to 9 of 9

Thread: Mouseovers/Rollovers

  1. #1
    ;______; *crie* Sheik's Avatar
    Join Date
    Jan 2002
    Location
    island in the sun
    Posts
    96

    Default Mouseovers/Rollovers

    Where can I get some mouseovers? You know, like the ones EoFF is using, when over a link, two bars show up.

    I'd like to know how to get dotted lines as mouseovers. Where? Help, plz?

    Thanks in advance.

  2. #2
    Newbie Administrator Loony BoB's Avatar
    Join Date
    Aug 2000
    Posts
    52,435
    Articles
    53
    Blog Entries
    19

    FFXIV Character

    Loony Bob (Twintania)

    Default

    I think it's java, although I'm not really sure.
    Bow before the mighty Javoo!

  3. #3
    why Recognized Member Pancaek's Avatar
    Join Date
    May 2001
    Location
    Canuckistan
    Posts
    451
    Contributions
    • Contributions to former EoFF Map

    Default

    They're CSS. Either put this in the head tag of your site:

    <b>&lt;style type="text/css">
    &lt;!--

    a:hover &#123; text-decoration: underline overline; }

    -->
    &lt;/style></b>

    or put this in each link:

    &lt;a href="http://eyesonff.com/forums" <b>style="text-decoration: underline overline;"</b>>

    If underline overline doesn't work, try overline underline. It's been a long time since I've used CSS.

  4. #4

    Default

    I don't think you can get a dotted line using CSS. I'm not sure that you can do it using Javascript either, but I don't know much about Javascript.

    Edit: You can do the dashed underline thing by using the following CSS code:

    a:hover {border: 1 dashed; border-top-width:0; border-left-width:0; border-right-width:0;}
    Last edited by Burtsplurt; 04-07-2003 at 08:02 PM.

  5. #5
    ;______; *crie* Sheik's Avatar
    Join Date
    Jan 2002
    Location
    island in the sun
    Posts
    96

    Default

    Oh right.. CSS, I've come across that before. Anyone know other CSS tricks?

    Btw, thanks again.

  6. #6
    why Recognized Member Pancaek's Avatar
    Join Date
    May 2001
    Location
    Canuckistan
    Posts
    451
    Contributions
    • Contributions to former EoFF Map

    Default

    http://lissaexplains.com is where I started learning CSS. http://htmlgoodies.com is better, though. http://w3.org is the leading authority on all things web design related, but it's very technical.

  7. #7
    ;______; *crie* Sheik's Avatar
    Join Date
    Jan 2002
    Location
    island in the sun
    Posts
    96

    Default

    Thank you so much Skye-chan! The sites you put up were very helpful.

  8. #8

    Default

    (style type="text/css")
    a:hover { border-top: 1; border-left: 1; border-right: 1; border-bottom: 1; border-style: dotted }
    (/style)

    <div style="border-top: 1; border-left: 1; border-right: 1; border-bottom: 1; border-style: dotted">it should look like this.</div>

    You can just say "border-width: 1" instead of all of the "border-top" type things, but I made it that way so you could just ditch the border on certain sides, since i wasn't sure if you wanted just overline underline.

    oh, and of course, change the brackets to triangle-brackets.

  9. #9
    chadmonkey
    Guest

    Default

    You can javascript with css's for a very simple, effecient and powerful way to change looks on a web page. For instance, to change the links in a nav bar(like you mentioned), you would create two different classes in your style sheet, and they would be identical to each other, except that you would have the borders for the top and bottom set in one of the classes(and make sure you name the two classes different, like "navlink" and "navlinkhighlight"). Then in your html, create the table to hold the links, and make sure to name each nav cell individually. Then you would add the :bou::bou::bou::bou::bou::bou::bou:Over and :bou::bou::bou::bou::bou::bou::bou:Out attributes to your table cell. Then you would write two functions, like "highlightCell()" and "noHighlightCell()". In the "highlightCell()" you would change the cell's class to "navlinkHighlight", and do the opposite in the other method. Now, whenever the user puts their mouse over the table cell, it will change the stylesheet class to the highlighted version, and it will go back to normal when the mouse is moved away. You can also create images for all of these and swap images, but it's considered poor web design as the user has to keep downloading these images and there's really no need for it with css's and javascript.

    If you need anymore help please let me know. This is the type of stuff I do for a living and I don't mind lending a hand. And if you need a good resource, check out www.webmonkey.com. They cover everything web related and have very easy to follow tutorials on just about everything web related.

    Hope this helps.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •