html help (quick question)

Discussion in 'OT Technology' started by schmooot, Jan 31, 2005.

  1. schmooot

    schmooot New Member

    Joined:
    May 2, 2004
    Messages:
    3,056
    Likes Received:
    0
    Location:
    BC..Canadia eh
    So I have set up a simple java mouse over thing. When the mouse is rolled over the image (which is also a link) it changes to a different image. Here's my code (everything that is red has been edited for content by me)

    <p align="right"><!--Button Number 1-->
    <a href="http://www.my link.com" target="_self" onmouseover="lighten('name0')" onmouseout="darken('name0')" onmousedown="darken2('name0')" onmouseup="darken('name0') "><img src="http://www.buttonup.jpg" name="name0" alt="Name of link" width="50" height="50" border="0"></a>

    As it stands right now this works perfectly, but I also want other things to happen onmouseover and so on. In this case I am getting text to pop up as well which looks like this (also for button number 1)

    <a href="#" onMouseOver="toggleDiv('div1',1)" onMouseOut="toggleDiv('div1',0)">Link</a>

    Can I not merge the two so that onmouseover=
    "lighten('name0')" as well as "toggleDiv('div1',1)"?

    I tried just putting it in there like this

    onmouseover="lighten('name0') toggleDiv('div1',1)" but it
    wouldn't do it.
    Is there a command to say do ^^this AND do ^^this?

    Thanks in advance if anyone can help, I tried to get right to the point
     
  2. schmooot

    schmooot New Member

    Joined:
    May 2, 2004
    Messages:
    3,056
    Likes Received:
    0
    Location:
    BC..Canadia eh
    never mind, apparently the comma is my very best friend. Yay I got it to work
     
  3. Ryuu Murakami

    Ryuu Murakami New Member

    Joined:
    Nov 27, 2004
    Messages:
    434
    Likes Received:
    0
    Semicolon works
     
  4. WERUreo

    WERUreo Imua!

    Joined:
    Oct 15, 2003
    Messages:
    566
    Likes Received:
    0
    Location:
    Daytona Beach, Florida
    By the way, it's Javascript, not Java... Two completely different things.
     
  5. schmooot

    schmooot New Member

    Joined:
    May 2, 2004
    Messages:
    3,056
    Likes Received:
    0
    Location:
    BC..Canadia eh
    really? thanks I'll remember that
     

Share This Page