#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Posts
    322
    Rep Power
    0

    problem with javascript and css


    ok i want to change the glow when the mouse is over it to black how can i do it
    <style type="text/css">
    Code:
    <!--
        div.fLeft {float:left; padding-left:5px; 
    padding-right:5px; padding-top:5px; 
    padding-bottom:5px; filter:glow(color=red);}
        
      </style> 
    <div class="fLeft"><a href="Shawn%20Michaels%20Picture%
    201.jpg" onMouseOut="MM_swapImgRestore()" 
    
    onMouseOver="MM_swapImage('Image1','','Shawn%20Michaels%20Picture%201c.jpg',1)"><img src="Shawn%20Michaels%
    
    20Picture%201g.jpg" alt="Shawn Michaels Pushing the owner of the wwe vince mchmon" name="Image1" width="120" 
    
    height="90" border="0" lowsrc="hbklogo.gif"></a></div>
  2. #2
  3. Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Oct 2001
    Location
    New Zealand
    Posts
    1,774
    Rep Power
    24
    Replace your div code with:

    <div class="fLeft" id='test'><a href="Shawn%20Michaels%20Picture%
    201.jpg" onMouseOut="MM_swapImgRestore();document.getElementById('test').style.filter='glow(color=red)'"

    onMouseOver="MM_swapImage('Image1','','Shawn%20Michaels%20Picture%201c.jpg',1);document.getElementBy Id('test').style.filter='glow(color=black)'"><img src="Shawn%20Michaels%20Picture%201g.jpg" alt="Shawn Michaels Pushing the owner of the wwe vince mchmon" name="Image1" width="120"

    height="90" border="0" lowsrc="hbklogo.gif"></a></div>

IMN logo majestic logo threadwatch logo seochat tools logo