![]() |
|
JS Help - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: Design (https://sinister.ly/Forum-Design) +--- Forum: Web Design (https://sinister.ly/Forum-Web-Design) +--- Thread: JS Help (/Thread-JS-Help) |
JS Help - unnamed - 07-23-2013 So I know how to work with mouseover event, but can I combine onmouseover and onmouseclick? JS Help - unnamed - 07-23-2013 So I know how to work with mouseover event, but can I combine onmouseover and onmouseclick? JS Help - unnamed - 07-23-2013 So I know how to work with mouseover event, but can I combine onmouseover and onmouseclick? RE: JS Help - The Alchemist - 07-23-2013 Suppose you have two javascript functions named on1_process() and on2_process() Its easy to use both/one together like this : Code: <a href="someaddress" onmouseover="return on1_process()" onclick="return on2_process()"></a>RE: JS Help - The Alchemist - 07-23-2013 Suppose you have two javascript functions named on1_process() and on2_process() Its easy to use both/one together like this : Code: <a href="someaddress" onmouseover="return on1_process()" onclick="return on2_process()"></a>RE: JS Help - The Alchemist - 07-23-2013 Suppose you have two javascript functions named on1_process() and on2_process() Its easy to use both/one together like this : Code: <a href="someaddress" onmouseover="return on1_process()" onclick="return on2_process()"></a>RE: JS Help - unnamed - 07-23-2013 @The Alchemist I'm basically skidding right now, I'm working on a project that requires some JS knowledge and I have none. So I got this code: Code: <span onmouseover="image1.src=loadImage1.src;" onmouseout="image1.src=staticImage1.src;">
<img name="image1" src="images/download1.png" border=0></span>on the body and some JS on the <head>. I'm supposed to add your code where? RE: JS Help - unnamed - 07-23-2013 @The Alchemist I'm basically skidding right now, I'm working on a project that requires some JS knowledge and I have none. So I got this code: Code: <span onmouseover="image1.src=loadImage1.src;" onmouseout="image1.src=staticImage1.src;">
<img name="image1" src="images/download1.png" border=0></span>on the body and some JS on the <head>. I'm supposed to add your code where? RE: JS Help - unnamed - 07-23-2013 @The Alchemist I'm basically skidding right now, I'm working on a project that requires some JS knowledge and I have none. So I got this code: Code: <span onmouseover="image1.src=loadImage1.src;" onmouseout="image1.src=staticImage1.src;">
<img name="image1" src="images/download1.png" border=0></span>on the body and some JS on the <head>. I'm supposed to add your code where? RE: JS Help - The Alchemist - 07-23-2013 Instead of that, do this : Code: <img name="image1" src="images/download1.png" onmouseover="this.src=someimage1.png" onclick="this.src=someimage2.png" border=0 /> |