Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Need some help with onMouseUp

  1. #11
    Join Date
    Dec 2004
    Posts
    177
    Thanks
    0
    Thanked 18 Times in 17 Posts

    Default

    Simple enough. Get rid of the javascript function stuff I gave you. Ignore the id="link1" part, and simply put onClick="this.className='menulinked'"

    Sooo....delete:
    Code:
    var selected=0
    
    function color(num){
     var name="link"
     var el=""
     if (document.getElementById(name+selected)){
      name="link"+selected
      el=document.getElementById(name)
      if (el.className=="menulinked") el.className="menulink"
     }
     name="link"+num
     el=document.getElementById(name) 
     el.className="menulinked"
     selected=num
    }
    And now the links =
    Code:
    <a href="./myPage.html" target="myFrame" onClick="this.className='menulinked'">Click ME!</a>

  2. #12
    Join Date
    Jan 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you.

    Nec

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
  •