Web Analytics Made Easy -
StatCounter OnMouseOver - CodingForum

Announcement

Collapse
No announcement yet.

OnMouseOver

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • OnMouseOver

    Hi All,

    I want to have a mouse over script, so when you user rolls over the link, text will appear next to it on the right of the link (text saved as a .html file)

    Any ideas on what code to use for this?

  • #2
    This is the same question you posted in this thread. It's against forum rules to cross post.

    Comment


    • #3
      Are you talking about tooltip??

      Comment


      • #4
        yeah well the guy told to ask here.

        Yeah, never similar to tooltip, but I don't really want to use Jquery. As long as it just opens the text next to the link

        Comment


        • #5
          who told you to ask here?

          Are you wanting to learn how to do this or are you hoping someone will do it for you for free?

          If you want to learn, post the code you have put together so far.

          Comment


          • #6
            Code:
                <iframe name="iframe" src="" width="500px" height="1130px" align=right></iframe>
            
            	<a href="AssociationofGeographicInformation.html" target="iframe"><div class="mod";">
                      <div class="image"><img src="img/agi.jpg" alt="AssociationforGeographicalInformation logo" /><span>Association of Geographic Information</span></a>
                       </div>
                       <br>
            I'm using an Iframe at the mo, so when the using clicks on the link the file appears showing the content of it, but I want to so you just rollover it and it appears

            Comment


            • #7
              now you're changing what you originally asked for. You should've said in your first post you were using an iframe.

              Comment


              • #8
                The idea was that I change to iframe to the rollover, unless I can add the rollover to it.

                Comment


                • #9
                  The idea was that I change to iframe to the rollover
                  As I said - "now you're changing what you originally asked for".

                  Either you're not sure what you really want or you're making this up as you go along. Either way, I'm moving on to another thread. Good luck

                  Comment


                  • #10
                    Following is the sample CSS code..

                    Code:
                    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                    <html xmlns="http://www.w3.org/1999/xhtml">
                    <head>
                    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                    <title>Untitled Document</title>
                    <style type="text/css">
                    ul {
                        list-style:none;
                        font:bold 15px Arial, Helvetica, sans-serif;
                    }
                    ul li {
                        line-height:30px;
                    }
                    ul li a {
                        color:#248074;
                        text-decoration:none;
                        display:block;
                        position:relative;
                    }
                    ul li a:hover span {
                        display:block;
                        width:150px;
                        border:1px solid #A69B1A;
                        background:#EFED98;
                        font:12px Verdana, Geneva, sans-serif;
                        color:#706D1B;
                        padding:5px;
                        position:absolute;
                        left:100px;
                        top:10px;
                        z-index:2;    
                    }
                    ul li a span{
                        display:none;
                    }
                    </style>
                    </head>
                    
                    <body>
                    <ul>
                      <li><a href="#">This is 1st line of the document.<span>This is tooltip 1</span></a></li>
                      <li><a href="#">This is 2nd line of the document.<span>This is tooltip 2</span></a></li>
                      <li><a href="#">This is 3rd line of the document.<span>This is tooltip 3</span></a></li>
                      <li><a href="#">This is 4th line of the document.<span>This is tooltip 4</span></a></li>
                      <li><a href="#">This is 5th line of the document.<span>This is tooltip 5</span></a></li>
                      <li><a href="#">This is 6th line of the document.<span>This is tooltip 6</span></a></li>
                      <li><a href="#">This is 7th line of the document.<span>This is tooltip 7</span></a></li>
                      <li><a href="#">This is 8th line of the document.<span>This is tooltip 8</span></a></li>
                      <li><a href="#">This is 9th line of the document.<span>This is tooltip 9</span></a></li>
                    </ul>
                    </body>
                    </html>

                    Comment


                    • #11
                      ok, I don't see how I'm changing things as I've just given you a script I'm currently using.

                      Thanks @vikram1vicky.

                      I'll give it a go and see what happens

                      Comment


                      • #12
                        Originally posted by Brooksy View Post
                        ok, I don't see how I'm changing things as I've just given you a script I'm currently using.

                        Thanks @vikram1vicky.

                        I'll give it a go and see what happens
                        In your first post you said you just want to show some text next to a link when the link is hovered on. Now you say you really want to change the src of an iframe> when the link is hovered on.

                        btw - I don't see an iframe in vikram1vicky's code.

                        Comment


                        • #13
                          the iframe was my original idea which works perfectly, I just wanted something simlar where I can just hover over rather than clicking on the link...

                          Anyway @vikram1vicky...that code works perfectly, just need to adjust it so it fits my webpage.

                          Many Thanks

                          Comment

                          Working...
                          X