Web Analytics Made Easy -
StatCounter need to write more lines to browser - CodingForum

Announcement

Collapse
No announcement yet.

need to write more lines to browser

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

  • need to write more lines to browser

    Hello,

    I want to print stuff in a browser (in short a menu) when I move the mouse over a link but I want to keep the HTML code that is already on that page. I also want the menu to disappear when a mouse out event is detected while maintaining the original HTML.

    This a combined javascript with CSS styles. Here is some of the code

    Code:
    <SCRIPT language="JavaScript">
    <!--
    function SomeFunction
    {
        document.write ("Some Value");
    }
    //-->
    </SCRIPT>
    </HEAD>
    <BODY>
    <A HREF="http://SomeSite/" onMouseOver="SomeFunction()" onMouseOut="OriginalHTML()">Some Link</A>
    </BODY>
    </HTML>
    This is kind of what I want to do but a little more complicated. I want "Some Value" written to the browser while maintaining the original HTML but it will only Print "Some Value" to the browser window. How can I maintain the original HTML?

    Thanks,

    Richard

  • #2
    Try using innerHTML instead of document.write

    .....Willy

    Comment

    Working...
    X