Login Register






JS Help filter_list
Author
Message
RE: JS Help #11
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 />
I guess you dont have anything else in the span.
[Image: 2YpkRjy.png]
PM me if you need help.
My pastebin HERE. My URL Shortener HERE.


RE: JS Help #12
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 />
I guess you dont have anything else in the span.
[Image: 2YpkRjy.png]
PM me if you need help.
My pastebin HERE. My URL Shortener HERE.


RE: JS Help #13
(07-23-2013, 06:30 PM)The Alchemist Wrote: 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 />
I guess you dont have anything else in the span.

I tried to insert it to the <span> and it didn't work.
When I removed the <span> it showed only image1


RE: JS Help #14
(07-23-2013, 06:30 PM)The Alchemist Wrote: 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 />
I guess you dont have anything else in the span.

I tried to insert it to the <span> and it didn't work.
When I removed the <span> it showed only image1


RE: JS Help #15
(07-23-2013, 06:30 PM)The Alchemist Wrote: 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 />
I guess you dont have anything else in the span.

I tried to insert it to the <span> and it didn't work.
When I removed the <span> it showed only image1


RE: JS Help #16
Well, i got your point. Here's the code:

in the head section:
Code:
<script type="text/javascript"> function changeImage1() { this.src = 'images/someimage1.png'; } function changeImage2() { this.src = 'images/someimage2.png'; } </script>

now that we have the defined functions, we need to call them in your html body:

Code:
<img name="image1" src="images/download1.png" onmouseover="changeImage1()" onclick="changeImage2()" border=0 />

Hope this helps! Wink
Yar-har Fiddle-dee-dee, being a pirate is alright to be! Do what you want cause a pirate is free, you are a pirate! AHOY!


[Image: tumblr_m7isvt2N171ranhnao1_500.gif]


RE: JS Help #17
Well, i got your point. Here's the code:

in the head section:
Code:
<script type="text/javascript"> function changeImage1() { this.src = 'images/someimage1.png'; } function changeImage2() { this.src = 'images/someimage2.png'; } </script>

now that we have the defined functions, we need to call them in your html body:

Code:
<img name="image1" src="images/download1.png" onmouseover="changeImage1()" onclick="changeImage2()" border=0 />

Hope this helps! Wink
Yar-har Fiddle-dee-dee, being a pirate is alright to be! Do what you want cause a pirate is free, you are a pirate! AHOY!


[Image: tumblr_m7isvt2N171ranhnao1_500.gif]


RE: JS Help #18
Well, i got your point. Here's the code:

in the head section:
Code:
<script type="text/javascript"> function changeImage1() { this.src = 'images/someimage1.png'; } function changeImage2() { this.src = 'images/someimage2.png'; } </script>

now that we have the defined functions, we need to call them in your html body:

Code:
<img name="image1" src="images/download1.png" onmouseover="changeImage1()" onclick="changeImage2()" border=0 />

Hope this helps! Wink
Yar-har Fiddle-dee-dee, being a pirate is alright to be! Do what you want cause a pirate is free, you are a pirate! AHOY!


[Image: tumblr_m7isvt2N171ranhnao1_500.gif]


RE: JS Help #19
I can't understand your question. You can add the JS code in an external script and call it from the HTML page, or embed it using <script> tags like this:

Code:
<script type="text/javascript"> function mySub() { // do the twist here } function click() { // do something onclick } </script> <img src="image.jpg" onmouseover="mySub()" onclick="click()" /> <span onmouseover="mySub()">text</span>

Where are you exactly trying to implement the JS code, on what event and in what element?
My Bitcoin address: 1AtxVsSSG2Z8JfjNy9KNFDUN6haeKr7LiP
Give me money by visiting www.google.com here: http://coin-ads.com/6Ol83U

If you want a Bitcoin URL shortener/advertiser, please, use this referral: http://coin-ads.com/register.php?refid=noize


RE: JS Help #20
I can't understand your question. You can add the JS code in an external script and call it from the HTML page, or embed it using <script> tags like this:

Code:
<script type="text/javascript"> function mySub() { // do the twist here } function click() { // do something onclick } </script> <img src="image.jpg" onmouseover="mySub()" onclick="click()" /> <span onmouseover="mySub()">text</span>

Where are you exactly trying to implement the JS code, on what event and in what element?
My Bitcoin address: 1AtxVsSSG2Z8JfjNy9KNFDUN6haeKr7LiP
Give me money by visiting www.google.com here: http://coin-ads.com/6Ol83U

If you want a Bitcoin URL shortener/advertiser, please, use this referral: http://coin-ads.com/register.php?refid=noize