Tweet
Results 1 to 9 of 9
  1. #1
    Junior Member
    Join Date
    May 2007
    Posts
    3
    Rep Power
    0

    Default Need Script...

    I need script:
    When mouse is on the link, link changes color to other... How i can do it?

  2. #2
    Administrator
    Join Date
    Apr 2006
    Location
    MoneyFanClub.com
    Posts
    457
    Rep Power
    10

    Default

    You can do it with CSS. Please read up on that.
    Your friendly MoneyFanClub.com Administrator.

  3. #3
    Junior Member
    Join Date
    Jan 2010
    Posts
    3
    Rep Power
    0

    Default

    Hi everybody
    Control the background image using the links on your site. control the color using on Mouse Over, on Mouse Out, on Click, and a combination of all of them.

    place the code below between the and tags within the HTML page where you want the link to appear. edit the link text provided to point at the page you would like to open.



    Option 1:
    use this to change the background color when user places mouse over the link.


    CODE
    <a href="link.htm" onMouseOver="document.body.background='red.gif'">L ink Text</a>



    Option 2:
    use this to change the background image when user removes mouse from over the link (onMouseOut).

    CODE
    <a href="link.htm" onMouseOut="document.body.background='green.gif'"> Link Text</a>



    Option 3:
    use this to change the background image when user clicks the link (onClick).

    CODE
    <a href="link.htm" onClick="document.body.background='blue.gif'">Link Text</a>




    Option 4:
    use this to change the background image twice, once when the user places the mouse over the link then again when the user takes the mouse off the link (onMouseOver and onMouseOut).

    CODE
    <a href="link.htm" onMouseOver="document.body.background='red.gif'" onMouseOut="document.body.background='green.gif'"> Link Text</a>



    Option 5:
    use this to change the background image three times, once when the user places the mouse over the link, again when the user takes the mouse off the link, and again when the user clicks on the link (onMouseOver, onMouseOut, and onClick).


    CODE
    <a href="link.htm" onMouseOver="document.body.background='red.gif'" onMouseOut="document.body.background='green.gif'" onClick="document.body.background='blue.gif'">Link Text</a>
    [url=http://www.zoombits.de/speicherkarten/sd-hc]buy sd hc[/url]

  4. #4
    MFC Member
    Join Date
    Sep 2008
    Posts
    255
    Rep Power
    16

    Default

    Yes i agree using javascript even onmouseover is the best solution for you.

  5. #5
    Master Member
    Join Date
    Nov 2010
    Location
    http://hyipfactory.com
    Posts
    1,947
    Rep Power
    15

    Default

    I prefer the CSS code .

  6. #6
    Junior Member
    Join Date
    Feb 2012
    Posts
    11
    Rep Power
    0

    Default

    Why not just make life easier and use CSS.

    ie:

    Code:
    a {color:white}
    a:hover {color:grey}
    The following will make links white, when the mouse is scrolled over(hovered) the link, it will change to grey.


    If you are still having troubles do not hesitate to ask.


    Regards,


    BlastForMe

  7. #7
    MFC Member
    Join Date
    Sep 2012
    Posts
    243
    Rep Power
    12

    Default

    This can be done by css and the use of hover function. Best of luck.

  8. #8
    Junior Member Weponz's Avatar
    Join Date
    Oct 2012
    Location
    Sydney, Australia
    Posts
    9
    Rep Power
    0

    Default

    Quote Originally Posted by xuled View Post
    You can do that with css. Css is great programming language to change the options like this.
    CSS is not a programming language, i doubt it is even a scripting language yet cascade style sheeting for a markup language known as HTML.
    www.weponzinc.com | www.showmehowtoblog.com

  9. #9
    MFC Member
    Join Date
    Jan 2013
    Posts
    102
    Rep Power
    12

    Default

    I choose the CSS code .

Posting Permissions

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

Advertisement

Sponsors




Increase your deposit by 30%. Expand your trading opportunities. Earn more profit!